1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/Zend/tests/bug78396.phpt
2020-02-03 22:52:20 +01:00

19 lines
381 B
PHP

--TEST--
Bug #78396: Second file_put_contents in Shutdown hangs script
--FILE--
<?php
register_shutdown_function(function () {
file_put_contents(__DIR__ . '/bug78396.txt', '1', FILE_APPEND | LOCK_EX);
file_put_contents(__DIR__ . '/bug78396.txt', '2', FILE_APPEND | LOCK_EX);
echo "Done\n";
});
?>
--CLEAN--
<?php
unlink(__DIR__ . '/bug78396.txt');
?>
--EXPECT--
Done