From: [EMAIL PROTECTED] Operating system: Windows 2000 PHP version: 5CVS-2003-01-12 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: mysql_fetch_field() segfaults
Reproducing script: <?php mysql_connect('wopr', 'root', '...'); mysql_select_db('test'); $result = mysql_query('SELECT * FROM test'); mysql_fetch_field($result); ?> Stacktrace: php4ts_debug.dll!_object_and_properties_init(_zval_struct * arg=0x00b40420, _zend_class_entry * class_type=0x00b274f0, _hashtable * properties=0x00000000, char * __zend_filename=0x102e40c0, unsigned int __zend_lineno=2118, void * * * tsrm_ls=0x00b22980) Line 603 + 0x13 C php4ts_debug.dll!_object_init_ex(_zval_struct * arg=0x00b40420, _zend_class_entry * class_type=0x00b274f0, char * __zend_filename=0x102e40c0, unsigned int __zend_lineno=2118, void * * * tsrm_ls=0x00b22980) Line 610 + 0x1b C php4ts_debug.dll!_object_init(_zval_struct * arg=0x00b40420, char * __zend_filename=0x102e40c0, unsigned int __zend_lineno=2118, void * * * tsrm_ls=0x00b22980) Line 615 + 0x1b C php4ts_debug.dll!zif_mysql_fetch_field(int ht=1, _zval_struct * return_value=0x00b40420, _zval_struct * this_ptr=0x00000000, int return_value_used=0, void * * * tsrm_ls=0x00b22980) Line 2118 + 0x1d C php4ts_debug.dll!zend_do_fcall_common_helper(_zend_execute_data * execute_data=0x0012fafc, _zend_op_array * op_array=0x00b40388, void * * * tsrm_ls=0x00b22980) Line 2561 + 0x36 C php4ts_debug.dll!zend_do_fcall_handler(_zend_execute_data * execute_data=0x0012fafc, _zend_op_array * op_array=0x00b40388, void * * * tsrm_ls=0x00b22980) Line 2687 + 0x11 C php4ts_debug.dll!execute(_zend_op_array * op_array=0x00b40388, void * * * tsrm_ls=0x00b22980) Line 1213 + 0x13 C php4ts_debug.dll!zend_execute_scripts(int type=8, void * * * tsrm_ls=0x00b22980, _zval_struct * * retval=0x00000000, int file_count=3, ....) Line 958 + 0x21 C php4ts_debug.dll!php_execute_script(_zend_file_handle * primary_file=0x0012ff48, void * * * tsrm_ls=0x00b22980) Line 1691 + 0x1b C php.exe!main(int argc=1, char * * argv=0x00b22580) Line 1431 + 0x11 C php.exe!mainCRTStartup() Line 338 + 0x11 C kernel32.dll!77e8ca90() -- Edit bug report at http://bugs.php.net/?id=21598&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21598&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21598&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21598&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21598&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21598&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21598&r=support Expected behavior: http://bugs.php.net/fix.php?id=21598&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21598&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21598&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21598&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21598&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21598&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21598&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21598&r=gnused