RE: [PHP] Seg fault when returning True from shutdown function.
| From: | Corin Rathbone | Date: | Mon, 06 Aug 2001 12:21:58 +0000 |
| Subject: | RE: [PHP] Seg fault when returning True from shutdown function. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61407@lists.php.net to get a copy of this message | ||
On Win98, Apache 1.3.17, PHP4.0.6 As Apache Module, running the code below I
get "APACHE caused an invalid page fault in module MSVCRT.DLL at
015f:7800fd73"
-----Original Message-----
From: William Bailey [mailto:wb@pro-net.co.uk]
Sent: 06 August 2001 12:15
To: PHP General List
Subject: [PHP] Seg fault when returning True from shutdown function.
-----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-----
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net