Annotation of embedaddon/php/ext/standard/tests/array/bug23788.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #23788 (*_replace() clobbers referenced array elements)
        !             3: --FILE--
        !             4: <?php
        !             5: $numeric = 123;
        !             6: $bool = true;
        !             7: $foo = array(&$numeric, &$bool);
        !             8: var_dump($foo);
        !             9: str_replace("abc", "def", $foo);
        !            10: var_dump($foo);
        !            11: ?>
        !            12: --EXPECT--
        !            13: array(2) {
        !            14:   [0]=>
        !            15:   &int(123)
        !            16:   [1]=>
        !            17:   &bool(true)
        !            18: }
        !            19: array(2) {
        !            20:   [0]=>
        !            21:   &int(123)
        !            22:   [1]=>
        !            23:   &bool(true)
        !            24: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>