#23783 [Opn->Asn]: NULL value in function indirection segfaults
| From: | derick@php.net | Date: | Fri, 23 May 2003 16:48:37 +0000 |
| Subject: | #23783 [Opn->Asn]: NULL value in function indirection segfaults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-40303@lists.php.net to get a copy of this message | ||
ID: 23783
Updated by: derick@php.net
Reported By: leon at leonatkinson dot com
-Status: Open
+Status: Assigned
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 5CVS-2003-05-23 (dev)
-Assigned To:
+Assigned To: derick
Previous Comments:
------------------------------------------------------------------------
[2003-05-23 11:47:19] leon at leonatkinson dot com
The following example results in a segfault in PHP 5. It's OK in
4.3.0.
<?
function f($v)
{
print("$v\n");
}
//OK (control)
$Function = "f";
$Function("success");
//OK (fatal error)
//$Function = "f2";
//$Function("success");
//Segfault (should be fatal error)
$Function = NULL;
$Function("success");
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23783&edit=1