#23783 [NEW]: NULL value in function indirection segfaults

From: Date: Fri, 23 May 2003 16:47:19 +0000
Subject: #23783 [NEW]: NULL value in function indirection segfaults
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40301@lists.php.net to get a copy of this message
From: leon at leonatkinson dot com Operating system: Linux PHP version: 5CVS-2003-05-23 (dev) PHP Bug Type: Reproducible crash Bug description: NULL value in function indirection segfaults 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 bug report at http://bugs.php.net/?id=23783&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23783&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23783&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23783&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23783&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23783&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23783&r=support Expected behavior: http://bugs.php.net/fix.php?id=23783&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23783&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23783&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23783&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23783&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23783&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23783&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23783&r=gnused

« previous php.bugs (#40301) next »