jani            Sun Aug  5 19:54:42 2007 UTC

  Modified files:              
    /php-src/ext/standard/tests/strings bug42208.phpt 
  Log:
  MFB: Test for bug #42208. Fix is not needed in HEAD, zend_parse_parameters is 
used here
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/bug42208.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/strings/bug42208.phpt
diff -u /dev/null php-src/ext/standard/tests/strings/bug42208.phpt:1.2
--- /dev/null   Sun Aug  5 19:54:42 2007
+++ php-src/ext/standard/tests/strings/bug42208.phpt    Sun Aug  5 19:54:42 2007
@@ -0,0 +1,22 @@
+--TEST--
+Bug #42208 (substr_replace() crashes when the same array is passed more than 
once)
+--FILE--
+<?php
+$a = array(1, 2);
+$c = $a;
+var_dump(substr_replace($a, 1, 1, $c));
+?>
+--EXPECT--
+array(2) {
+  [0]=>
+  string(2) "11"
+  [1]=>
+  string(2) "21"
+}
+--UEXPECT--
+array(2) {
+  [0]=>
+  unicode(2) "11"
+  [1]=>
+  unicode(2) "21"
+}

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

Reply via email to