mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
19 lines
381 B
PHP
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
|