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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: k at les dot cz
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 10 13:00:01 2026 UTC