php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phil dot cartmell at gmail dot com
New email:
PHP Version: OS:

 

 [2006-01-03 12:44 UTC] 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 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-03 12:55 UTC] tony2001@php.net
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] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip


 [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 Dec 21 13:01:31 2024 UTC