logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: ZendEngine2(PHP_5_2) /tests array_append_COW.phpt array_unshift_COW.ph: msg#00009

Subject: cvs: ZendEngine2(PHP_5_2) /tests array_append_COW.phpt array_unshift_COW.phpt
zoe             Mon Jul  9 13:23:37 2007 UTC

  Added files:                 (Branch: PHP_5_2)
    /ZendEngine2/tests  array_unshift_COW.phpt array_append_COW.phpt 
  Log:
  array copy on write tests
  

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/array_unshift_COW.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/array_unshift_COW.phpt
+++ ZendEngine2/tests/array_unshift_COW.phpt
--TEST--
 Tests that array unshift code is correctly dealing with copy on write and
 splitting on  reference.
--FILE--
<?php
        $a=array();
        $b=1;
        $c=&$b;
        array_unshift ($a,$b);
        $b=2;
        var_dump ($a);
?>
--EXPECT--
array(1) {
  [0]=>
  int(1)
}
--EXPECT--
array(1) {
  [0]=>
  int(1)
}
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/array_append_COW.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/array_append_COW.phpt
+++ ZendEngine2/tests/array_append_COW.phpt
--TEST--
 Tests that array manipulation code is correctly dealing with copy on write and
 splitting on  reference.
--FILE--
<?php
        $a=array();
        $b=1;
        $c=&$b;
        $a[]=$b;
        $b=2;
        var_dump ($a);
?>
--EXPECT--
array(1) {
  [0]=>
  int(1)
}
--UEXPECT--     
array(1) {
  [0]=>
  int(1)
}

-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>