ID: 20120
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4CVS-2002-10-27
New Comment:
I can't reproduce this either with latest CVS..
Previous Comments:
------------------------------------------------------------------------
[2002-10-27 09:53:48] [EMAIL PROTECTED]
Can you post your configure line, and your php.ini file (the one that's
actually used).
------------------------------------------------------------------------
[2002-10-27 09:51:58] [EMAIL PROTECTED]
Zend Engine 1
------------------------------------------------------------------------
[2002-10-27 09:44:58] [EMAIL PROTECTED]
I can not reproduce this at all, do you run with Zend Engine 1 or Zend
Engine 2?
------------------------------------------------------------------------
[2002-10-27 09:38:19] [EMAIL PROTECTED]
If I try to call a function from a class and the name of the function
is inside a variable php seg faults.
It works fine with php 4.2.3 and if the function isn't inside a class.
Some pear script which use this don't produce a crash but give errors
about an undefined function with a numeric name. (e.g. Fatal error:
Call to undefined function: 138421340() in /usr/lib/php/PEAR.php on
line 512)
Example:
<?php
class bugtest {
function bug() {
echo "test\n";
}
}
$test = new bugtest();
$test1 = "bug";
$test->$test1();
?>
Backtrace:
#0 execute (op_array=0x83b64bc) at
/home/pcgod/php4/Zend/zend_execute.c:1496
1496 tmp = *function_name;
(gdb) bt
#0 execute (op_array=0x83b64bc) at
/home/pcgod/php4/Zend/zend_execute.c:1496
#1 0x0822380b in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/pcgod/php4/Zend/zend.c:839
#2 0x081f26f4 in php_execute_script (primary_file=0x5ffff8f0) at
/home/pcgod/php4/main/main.c:1542
#3 0x0823aa24 in main (argc=2, argv=0x5ffff994) at
/home/pcgod/php4/sapi/cli/php_cli.c:695
#4 0x265dc1eb in __libc_start_main () from /lib/libc.so.6
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20120&edit=1