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