From:             sb at sebastian-bergmann dot de
Operating system: Windows
PHP version:      5CVS-2004-05-31 (dev)
PHP Bug Type:     Reproducible crash
Bug description:  Segfault in Reflection API

Description:
------------
The code below causes PHP to segfault on Windows but not on Linux.

Reproduce code:
---------------
<?php
class UML_Class extends ReflectionClass {
}

print ReflectionClass::export('UML_Class');
?>


Expected result:
----------------
I expect the code not to cause a PHP segfault.

Actual result:
--------------
php5ts_debug.dll!_class_string(_string * str=0x0012e984, _zend_class_entry
* ce=0x00bb2f20, _zval_struct * obj=0x00000000, char * indent=0x10631249,
void * * * tsrm_ls=0x00a82800)  Zeile 271 + 0x9 C
php5ts_debug.dll!zif_reflection_class___toString(int ht=0, _zval_struct *
return_value=0x00bb1ed8, _zval_struct * this_ptr=0x0012f308, int
return_value_used=1, void * * * tsrm_ls=0x00a82800)  Zeile 2020 + 0x1d  C
php5ts_debug.dll!zend_call_function(_zend_fcall_info * fci=0x0012ed28,
_zend_fcall_info_cache * fci_cache=0x00000000, void * * *
tsrm_ls=0x00a82800)  Zeile 853 + 0x4b   C
php5ts_debug.dll!call_user_function_ex(_hashtable *
function_table=0x00000000, _zval_struct * * object_pp=0x0012ee94,
_zval_struct * function_name=0x00bb1cf8, _zval_struct * *
retval_ptr_ptr=0x0012ee7c, unsigned int param_count=0, _zval_struct * * *
params=0x00000000, int no_separation=0, _hashtable *
symbol_table=0x00000000, void * * * tsrm_ls=0x00a82800)  Zeile 550 +
0xf     C
php5ts_debug.dll!zif_reflection_export(int ht=2, _zval_struct *
return_value=0x00bb1d48, _zval_struct * this_ptr=0x00000000, int
return_value_used=1, void * * * tsrm_ls=0x00a82800)  Zeile 1037 + 0x1f  C
php5ts_debug.dll!zend_call_function(_zend_fcall_info * fci=0x0012f260,
_zend_fcall_info_cache * fci_cache=0x00000000, void * * *
tsrm_ls=0x00a82800)  Zeile 853 + 0x4b   C
php5ts_debug.dll!_reflection_export(int ht=1, _zval_struct *
return_value=0x00bb1c50, _zval_struct * this_ptr=0x00000000, int
return_value_used=1, void * * * tsrm_ls=0x00a82800, _zend_class_entry *
ce_ptr=0x00bed198, int ctor_argc=1)  Zeile 995 + 0x12   C
php5ts_debug.dll!zif_reflection_class_export(int ht=1, _zval_struct *
return_value=0x00bb1c50, _zval_struct * this_ptr=0x00000000, int
return_value_used=1, void * * * tsrm_ls=0x00a82800)  Zeile 1887 + 0x21  C
php5ts_debug.dll!zend_do_fcall_common_helper(_zend_execute_data *
execute_data=0x0012f744, _zend_op * opline=0x00bb18c0, _zend_op_array *
op_array=0x00bb1490, void * * * tsrm_ls=0x00a82800)  Zeile 2699 + 0x32  C
php5ts_debug.dll!zend_do_fcall_by_name_handler(_zend_execute_data *
execute_data=0x0012f744, _zend_op * opline=0x00bb18c0, _zend_op_array *
op_array=0x00bb1490, void * * * tsrm_ls=0x00a82800)  Zeile 2810 + 0x15  C
php5ts_debug.dll!execute(_zend_op_array * op_array=0x00bb1490, void * * *
tsrm_ls=0x00a82800)  Zeile 1391 + 0x17  C
php5ts_debug.dll!zend_execute_scripts(int type=8, void * * *
tsrm_ls=0x00a82800, _zval_struct * * retval=0x00000000, int file_count=3,
...)  Zeile 1061 + 0x21 C
php5ts_debug.dll!php_execute_script(_zend_file_handle *
primary_file=0x0012ff2c, void * * * tsrm_ls=0x00a82800)  Zeile 1627 +
0x1b    C
php.exe!main(int argc=2, char * * argv=0x00a84fc0)  Zeile 943 + 0x13    C
php.exe!mainCRTStartup()  Zeile 398 + 0x11      C
kernel32.dll!77e614c7()         
ntdll.dll!77f844a8()    


-- 
Edit bug report at http://bugs.php.net/?id=28589&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28589&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28589&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28589&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28589&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28589&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28589&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28589&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28589&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28589&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28589&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28589&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28589&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28589&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28589&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28589&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28589&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28589&r=float

Reply via email to