summaryrefslogtreecommitdiff
path: root/Zend/tests/bug34879.phpt
blob: 6c422ca26811128a2ed5c4ada60eaebe9e3c52b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit platforms)
--FILE--
<?php
print_r(str_replace('a', 'b', array(-1 =>-1)));
?>
--EXPECT--
Array
(
    [-1] => -1
)