1--TEST--
2Bug #79951: Memory leak in str_replace of empty string
3--FILE--
4<?php
5
6var_dump(str_replace([""], [1000], "foo"));
7
8?>
9--EXPECT--
10string(3) "foo"
11