#33621 [Opn->Asn]: Exit code 0377 when calling a non-existant method using a dynamic call
| From: | wez@php.net | Date: | Sat, 09 Jul 2005 03:29:55 +0000 |
| Subject: | #33621 [Opn->Asn]: Exit code 0377 when calling a non-existant method using a dynamic call | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81609@lists.php.net to get a copy of this message | ||
ID: 33621
Updated by: wez@php.net
Reported By: davey@php.net
-Status: Open
+Status: Assigned
-Bug Type: Reproducible crash
+Bug Type: Scripting Engine problem
Operating System: Ubuntu Linux 5.04
PHP Version: 5CVS-2005-07-09 (dev)
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2005-07-09 05:17:59] davey@php.net
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 this bug report at http://bugs.php.net/?id=33621&edit=1