ID: 35881
Updated by: [EMAIL PROTECTED]
Reported By: phil dot cartmell at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: MySQLi related
Operating System: Windows XP SP2
PHP Version: 5.1.1
-Assigned To:
+Assigned To: andrey
New Comment:
Assigned to the maintainer.
Previous Comments:
------------------------------------------------------------------------
[2006-01-03 12:44:11] phil dot cartmell at gmail dot com
Description:
------------
$stmt->bind_result Crashes PHP when run against mySQL 5.0.17-nt
Reproduce code:
---------------
<?php
$mysqli = new mysqli("localhost", "username", "password", "database");
if ($stmt = $mysqli->prepare("SELECT Code, Name FROM Country ORDER BY
Name LIMIT 5")) {
$stmt->execute();
$stmt->bind_result($col1, $col2);
while ($stmt->fetch()) {
printf("%s %s\n", $col1, $col2);
}
$stmt->close();
}
$mysqli->close();
?>
Expected result:
----------------
print the database values
Actual result:
--------------
CLI has encountered a problem and needs to close. We are sorry for the
inconvenience.
If i run this code via Apache it crashes Apache
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35881&edit=1