From: m dot brachner at gmx dot at Operating system: Windows XP PHP version: 5CVS-2004-12-24 (dev) PHP Bug Type: Reproducible crash Bug description: Error: Memory could not be read
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 bug report at http://bugs.php.net/?id=31288&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31288&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31288&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31288&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31288&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31288&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31288&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31288&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31288&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31288&r=support Expected behavior: http://bugs.php.net/fix.php?id=31288&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31288&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31288&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31288&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31288&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31288&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31288&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31288&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31288&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31288&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31288&r=mysqlcfg