ID:               35881
 Updated by:       [EMAIL PROTECTED]
 Reported By:      phil dot cartmell at gmail dot com
-Status:           Assigned
+Status:           Feedback
 Bug Type:         MySQLi related
 Operating System: Windows XP SP2
 PHP Version:      5.1.1
 Assigned To:      andrey
 New Comment:

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




Previous Comments:
------------------------------------------------------------------------

[2006-01-03 19:31:48] 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-03 12:55:38] [EMAIL PROTECTED]

Assigned to the maintainer.

------------------------------------------------------------------------

[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

Reply via email to