#31288 [Opn]: Error: Memory could not be read
| From: | m dot brachner at gmx dot at | Date: | Sat, 25 Dec 2004 17:54:09 +0000 |
| Subject: | #31288 [Opn]: Error: Memory could not be read | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71065@lists.php.net to get a copy of this message | ||
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-25 18:52:13] m dot brachner at gmx dot at
Using CGI Version
Internet Information Server Version 5.1
------------------------------------------------------------------------
[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