cvs: php-src /ext/standard/tests/strings bug42208.phpt

From: Date: Sun, 05 Aug 2007 19:54:42 +0000
Subject: cvs: php-src /ext/standard/tests/strings bug42208.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-45723@lists.php.net to get a copy of this message
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" +}

« previous php.cvs (#45723) next »