Seg fault when returning True from shutdown function.
| From: | William Bailey | Date: | Mon, 06 Aug 2001 11:14:52 +0000 |
| Subject: | Seg fault when returning True from shutdown function. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-61401@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I am just playing with the the register_shutdown_function()
function and have found a way to cause php to seg fault. Can somebody else
please test the code below this to see if they have the same problem.
Code (8 Lines):
#!/usr/local/bin/php -q
<?php
error_reporting(E_ALL);
function seg_fault(){
return True;
}
register_shutdown_function(seg_fault());
?>
Thanks,
William.
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv
iQA/AwUBO258MK39EoU2VrU1EQLsuACgwA0egpooR3AeRBbZMwp0rqKyCIkAn00U
CDtlVoWinKYPAJgq+JjbEyh1
=FupR
-----END PGP SIGNATURE-----