mirror of
https://github.com/php/php-src.git
synced 2026-04-18 05:21:02 +02:00
RFC: https://wiki.php.net/rfc/implicit-float-int-deprecate Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
19 lines
301 B
PHP
19 lines
301 B
PHP
--TEST--
|
|
Bug #78612 (strtr leaks memory when integer keys are used and the subject string shorter).
|
|
--FILE--
|
|
<?php
|
|
|
|
$find_replace = [];
|
|
$_a = 333000001;
|
|
$_b = 5000001;
|
|
|
|
for ($j=0; $j<10; $j++) {
|
|
$find_replace[$_a + $j] = $_b + $j;
|
|
}
|
|
|
|
echo strtr('Hello', $find_replace), "\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
Hello
|