|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-11-20 15:21 UTC] bugz at nagash dot org
Description:
------------
I receive segmentation fall when try to execute following code
backtrace
(gdb) r -f /home/nagash/dotorgc.org/www/test.php
Starting program: /stuff/php/bin/php -f /home/nagash/dotorgc.org/www/test.php
Program received signal SIGSEGV, Segmentation fault.
zend_std_object_get_class (object=0x1) at /root/src/php/php5-200411201130/Zend/zend_object_handlers.c:826
826 return zobj->ce;
Reproduce code:
---------------
class blah {
function tester ($var) {
echo $var;
}
}
$GLOBALS['dbcon'] = new blah;
$dbcon = $GLOBALS['dbcon'];
$dbcon->tester('aaa');
Expected result:
----------------
aaa
Actual result:
--------------
segmentation fall
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 21:00:01 2025 UTC |
(gdb) bt #0 zend_std_object_get_class (object=0x1) at /root/src/php/php5-200411201130/Zend/zend_object_handlers.c:826 #1 0x08210cf7 in zend_get_class_entry (zobject=0x840a224) at /root/src/php/php5-200411201130/Zend/zend_API.c:227 #2 0x08292e0b in zend_assign_to_variable (result=0x8417fd4, op1=0x8413464, op2=0x8417ffc, value=0x8413464, type=4, Ts=0xbfffc40c) at /root/src/php/php5-200411201130/Zend/zend_execute.c:856 #3 0x0827b048 in ZEND_ASSIGN_SPEC_CV_VAR_HANDLER (execute_data=0xbfffc510) at zend_vm_execute.h:21839 #4 0x082321d8 in execute (op_array=0x8413adc) at zend_vm_execute.h:58 #5 0x0821057f in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/src/php/php5-200411201130/Zend/zend.c:1053 #6 0x081d4a5f in php_execute_script (primary_file=0xbfffe910) at /root/src/php/php5-200411201130/main/main.c:1634 #7 0x082949dc in main (argc=3, argv=0xbfffe994) at /root/src/php/php5-200411201130/sapi/cli/php_cli.c:943