cvs: php4 /ext/standard/tests/array bug23788.phpt
| From: | Jani Taskinen | Date: | Mon, 26 May 2003 03:55:08 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/array bug23788.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-21266@lists.php.net to get a copy of this message | ||
sniper Sun May 25 23:55:08 2003 EDT
Added files:
/php4/ext/standard/tests/array bug23788.phpt
Log:
Added regression test for bug #23788
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)
}