1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/spl/tests/bug77359.phpt
Lauri Kenttä 89bf3df67d Fix #77359: spl_autoload causes segfault
Use the correct function to free the string.
2018-12-27 15:28:25 +01:00

15 lines
185 B
PHP

--TEST--
Bug #77359: spl_autoload causes segfault
--FILE--
<?php
$str = "foo";
$str .= "bar";
spl_autoload($str);
spl_autoload($str);
var_dump($str);
?>
--EXPECT--
string(6) "foobar"