|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35881 $stmt->bind_result Crashes PHP when run against mySQL 5.0.17-nt
Submitted: 2006-01-03 12:44 UTC Modified: 2006-01-12 01:00 UTC
From: phil dot cartmell at gmail dot com Assigned: andrey (profile)
Status: No Feedback Package: MySQLi related
PHP Version: 5.1.1 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
31 - 5 = ?
Subscribe to this entry?

 [2006-01-03 12:44 UTC] phil dot cartmell at gmail dot com
$stmt->bind_result Crashes PHP when run against mySQL 5.0.17-nt

Reproduce code:
$mysqli = new mysqli("localhost", "username", "password", "database"); 
if ($stmt = $mysqli->prepare("SELECT Code, Name FROM Country ORDER BY Name LIMIT 5")) { 
    $stmt->bind_result($col1, $col2); 
    while ($stmt->fetch()) { 
        printf("%s %s\n", $col1, $col2); 

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 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-03 12:55 UTC]
Assigned to the maintainer.
 [2006-01-03 19:31 UTC] phil dot cartmell at gmail dot com
just tried the same code on PHP 5.1.1 on: mySQL 4.1.16-nt and still crashes.
 [2006-01-05 00:56 UTC]
Please try using this CVS snapshot:
For Windows:

 [2006-01-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 25 05:01:30 2024 UTC