mirror of
https://github.com/php/php-src.git
synced 2026-03-27 01:32:22 +01:00
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"
|