xref: /PHP-8.0/Zend/tests/bug34879.phpt (revision d679f022)
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