ID: 31288 User updated by: m dot brachner at gmx dot at Reported By: m dot brachner at gmx dot at Status: Open Bug Type: Reproducible crash Operating System: Windows XP PHP Version: 5CVS-2004-12-24 (dev) New Comment:
Using CGI Version Internet Information Server Version 5.1 Previous Comments: ------------------------------------------------------------------------ [2004-12-24 17:18:21] m dot brachner at gmx dot at Description: ------------ mysql_fetch_field produces an PHP-Crash. A Modal Window pops up (I have a German XP): php-cgi.exe Error in Application The instruction at '0x1000589c' referenced memory at '0x00000001'. The memory could not be read. Click OK to terminate the program. MySQL Version 4.0.18 Reproduce code: --------------- <?php $conn = mysql_connect('localhost:3306', 'root', ''); mysql_select_db('odb'); $result = mysql_query('select * from classes'); /* get column metadata */ $i = 0; while ($i < mysql_num_fields($result)) { echo "Information for column $i:<br />\n"; $meta = mysql_fetch_field($result, $i); $i++; } mysql_free_result($result); ?> Expected result: ---------------- mysql_fetch_field should do the documented operations. Actual result: -------------- mysql_fetch_field produces an PHP-Crash. A Modal Window pops up (I have a German XP): php-cgi.exe Error in Application The instruction at '0x1000589c' referenced memory at '0x00000001'. The memory could not be read. Click OK to terminate the program. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31288&edit=1