#33621 [NEW]: Exit code 0377 when calling a non-existant method using a dynamic call

From: Date: Sat, 09 Jul 2005 03:18:00 +0000
Subject: #33621 [NEW]: Exit code 0377 when calling a non-existant method using a dynamic call
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81608@lists.php.net to get a copy of this message
From: davey@php.net Operating system: Ubuntu Linux 5.04 PHP version: 5CVS-2005-07-09 (dev) PHP Bug Type: Reproducible crash Bug description: Exit code 0377 when calling a non-existant method using a dynamic call Description: ------------ I'm using head as of 5 minutes ago, approx: 23:10 EST Calling a non-existant method using the $obj->{$var}() notation causes an unexplained exit of the script with the exit code 0377. Reproduce code: --------------- <?php class foo { function __construct() { $var = "foo"; $this->{$var}(); } } $foo = new foo; ?> Expected result: ---------------- Nothing Actual result: -------------- With --enable-debug all I get this from gdb: (gdb) run -f /var/www/php-cvs/testcase/evil_death_variable_method_call_nonexistant.php Starting program: /var/www/php-cvs/php-src/sapi/cli/php -f /var/www/php-cvs/testcase/evil_death_variable_method_call_nonexistant.php [Thread debugging using libthread_db enabled] [New Thread -1214975328 (LWP 9095)] Program exited with code 0377. -- Edit bug report at http://bugs.php.net/?id=33621&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33621&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33621&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33621&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33621&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33621&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33621&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33621&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33621&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33621&r=support Expected behavior: http://bugs.php.net/fix.php?id=33621&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33621&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33621&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33621&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33621&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33621&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33621&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33621&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33621&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33621&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33621&r=mysqlcfg

« previous php.bugs (#81608) next »