ID:               30850
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bugz at nagash dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         Zend Engine 2 problem
 Operating System: linux (gentoo)
 PHP Version:      5.1.dev
 New Comment:

I still cannot reproduce it.
Please, try it under an other system/distribution.


Previous Comments:
------------------------------------------------------------------------

[2004-11-20 15:29:03] bugz at nagash dot org

(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

------------------------------------------------------------------------

[2004-11-20 15:21:22] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30850&edit=1

Reply via email to