php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3419 undefined function call in registered shutdown function crashes php
Submitted: 2000-02-06 15:10 UTC Modified: 2000-02-11 22:16 UTC
From: k at les dot cz Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Beta 3 OS: RedHat 6.0 (Linux 2.2.5)
Private report: No CVE-ID: None
 [2000-02-06 15:10 UTC] k at les dot cz
Following code crashes PHP with "Illegal instruction"
in error_log:

<?php

function test() {
        undefined_function();
}
register_shutdown_function('test');

?>

BTW if I try to register undefined function as 
a shutdown function, it doesn't crash, but it
doesn't even warn, IMHO it's a bug too (but of
course a small one :)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-06 15:17 UTC] k at les dot cz
Just a note - if your script uses sessions, PHP crashes 
before session is saved, that's why I think this bug is
quite important even through it supposes a mistake in
your PHP script.
 [2000-02-11 22:16 UTC] andrei at cvs dot php dot net
Should be fixed in CVS - thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 19:01:29 2024 UTC