Advertising
advertising
related pastes to tag 'arrayobject'
- 1091668 - rewbs: php arrayobject exchangearray
-
- Index: spl_array.c
- ===================================================================
- RCS file: /repository/php-src/ext/spl/spl_array.c,v
- retrieving revision 1.71.2.17.2.13.2.19
- diff -u -w -p -r1.71.2.17.2.13.2.19 spl_array.c
- --- spl_array.c 26 Jul 2008 12:34:10 -0000 1.71.2.17.2.13.2.19
- +++ spl_array.c 3 Aug 2008 09:59:32 -0000
- @@ -924,50 +924,16 @@ zend_object_iterator *spl_array_get_iter
- 1091667 - rewbs: php arrayobject exchangearray
-
- Index: spl_array.c
- ===================================================================
- RCS file: /repository/php-src/ext/spl/spl_array.c,v
- retrieving revision 1.71.2.17.2.13.2.19
- diff -u -w -p -r1.71.2.17.2.13.2.19 spl_array.c
- --- spl_array.c 26 Jul 2008 12:34:10 -0000 1.71.2.17.2.13.2.19
- +++ spl_array.c 3 Aug 2008 09:59:32 -0000
- @@ -924,50 +924,16 @@ zend_object_iterator *spl_array_get_iter
- 1091266 - rewbs: php arrayobject exchangearray
-
- <?php
- $ao = new ArrayObject();
- $cowRef = $swapIn; // create a copy-on-write ref to $swapIn
- $ao->exchangeArray($swapIn);
- $ao['a'] = 'This affects $swapIn and $cowRef';
- $swapIn['b'] = 'This forces $swapIn to split from its copy-on-write references';
- 1091260 - rewbs: php arrayobject exchangearray
-
- <?php
- $ao = new ArrayObject();
- $ao->exchangeArray($swapIn);
- $ao['a'] = 'This affects $swapIn';
- $swapIn['b'] = 'This forces $swapIn to split from its copy-on-write references';
- $ao['c'] = 'This no longer affects $swapIn';
- 1091256 - rewbs: php arrayobject exchangearray
- 1091254 - rewbs: php arrayobject exchangearray