PHP 4.0 Bug #3419: undefined function call in registered shutdown function crashes php

From: Date: Sun, 06 Feb 2000 20:10:36 +0000
Subject: PHP 4.0 Bug #3419: undefined function call in registered shutdown function crashes php
Groups: php.dev 
Request: Send a blank email to php-dev+get-15261@lists.php.net to get a copy of this message
From: k@les.cz Operating system: RedHat 6.0 (Linux 2.2.5) PHP version: 4.0 Beta 3 PHP Bug Type: Reproduceable crash Bug description: undefined function call in registered shutdown function crashes php 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 :)

« previous php.dev (#15261) next »