ID: 21598
Updated by: [EMAIL PROTECTED]
-Summary: mysql_fetch_field() segfaults
-Reported By: [EMAIL PROTECTED]
+Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Verified
Bug Type: Zend Engine 2 problem
-Operating System: Windows 2000
+Operating System: RHL7.3
-PHP Version: 5CVS-2003-01-12 (dev)
+PHP Version: 4.3.0-pre2
Previous Comments:
------------------------------------------------------------------------
[2003-01-12 08:34:35] [EMAIL PROTECTED]
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 this bug report at http://bugs.php.net/?id=21598&edit=1