|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-03 12:55 UTC] tony2001@php.net
[2006-01-03 19:31 UTC] phil dot cartmell at gmail dot com
[2006-01-05 00:56 UTC] sniper@php.net
[2006-01-12 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 06:00:01 2025 UTC |
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