mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
9d9dffe60a
One branch did not release tmp_replace_entry_str. Also reduce the scope of some variables.
11 lines
155 B
PHP
11 lines
155 B
PHP
--TEST--
|
|
Bug #79951: Memory leak in str_replace of empty string
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(str_replace([""], [1000], "foo"));
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(3) "foo"
|