cvs: php4(PHP_4_3) /ext/standard/tests/array bug23788.phpt
| From: | Jani Taskinen | Date: | Mon, 26 May 2003 04:01:12 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/standard/tests/array bug23788.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21267@lists.php.net to get a copy of this message | ||
sniper Mon May 26 00:01:12 2003 EDT
Added files: (Branch: PHP_4_3)
/php4/ext/standard/tests/array bug23788.phpt
Log:
MFH
Index: php4/ext/standard/tests/array/bug23788.phpt
+++ php4/ext/standard/tests/array/bug23788.phpt
--TEST--
Bug #23788 (*_replace() clobbers referenced array elements)
--FILE--
<?php
$numeric = 123;
$bool = true;
$foo = array(&$numeric, &$bool);
var_dump($foo);
str_replace("abc", "def", $foo);
var_dump($foo);
?>
--EXPECT--
array(2) {
[0]=>
&int(123)
[1]=>
&bool(true)
}
array(2) {
[0]=>
&int(123)
[1]=>
&bool(true)
}