|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-25 18:52 UTC] m dot brachner at gmx dot at
[2005-01-09 19:06 UTC] kurt at indermaur dot com
[2005-02-22 16:00 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
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.