|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-27 21:20 UTC] tony2001@php.net
[2005-11-27 23:25 UTC] marcing at smlw dot pl
[2005-11-27 23:28 UTC] tony2001@php.net
[2005-11-28 01:22 UTC] marcing at smlw dot pl
[2005-11-28 01:25 UTC] sniper@php.net
[2005-11-28 12:29 UTC] marcing at smlw dot pl
[2005-11-28 12:33 UTC] tony2001@php.net
[2005-11-28 12:53 UTC] marcing at smlw dot pl
[2005-11-28 12:55 UTC] marcing at smlw dot pl
[2005-11-28 13:06 UTC] tony2001@php.net
[2005-11-28 13:15 UTC] marcing at smlw dot pl
[2005-11-28 13:18 UTC] tony2001@php.net
[2005-11-28 13:18 UTC] marcing at smlw dot pl
[2005-11-28 13:20 UTC] tony2001@php.net
[2005-11-28 13:20 UTC] marcing at smlw dot pl
[2005-11-28 13:24 UTC] tony2001@php.net
[2005-11-28 14:32 UTC] marcing at smlw dot pl
[2005-11-28 14:40 UTC] marcing at smlw dot pl
[2005-11-28 15:20 UTC] marcing at smlw dot pl
[2005-11-28 15:21 UTC] marcing at smlw dot pl
[2005-11-28 15:27 UTC] marcing at smlw dot pl
[2005-11-28 16:11 UTC] tony2001@php.net
[2005-11-28 18:00 UTC] marcing at smlw dot pl
[2005-11-29 01:54 UTC] sniper@php.net
[2005-11-29 01:55 UTC] sniper@php.net
[2005-11-30 14:02 UTC] sniper@php.net
[2005-11-30 14:45 UTC] marcing at smlw dot pl
[2005-11-30 14:47 UTC] sniper@php.net
[2005-11-30 14:49 UTC] tony2001@php.net
[2005-11-30 15:49 UTC] marcing at smlw dot pl
[2005-11-30 15:56 UTC] iliaa@php.net
[2005-12-01 10:27 UTC] marcing at smlw dot pl
[2005-12-01 10:37 UTC] tony2001@php.net
[2005-12-01 12:16 UTC] marcing at smlw dot pl
[2005-12-01 12:23 UTC] marcing at smlw dot pl
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 01:00:01 2025 UTC |
Description: ------------ Env: Windows XP SP2 Apache 2.0.48 / 2.0.55 (not relevant) MySQL 5.0.16 PHP 5.0.3 /5.1 (not relevant) MySQLi Important: Problem is related to MySQLi when using MySQL version 5 only, it doesn't occur with version 4. Reproduce code: --------------- <?php $db = new mysqli(...); if($stmt = $db->prepare('SELECT SUM(visitors) FROM core_stats')) { $stmt->execute(); $stmt->bind_result($total); $stmt->close(); } ?> The problem occurs when using SUM() in query, endless loop seems to start when $stmt->bind_result($total) is invoked and as a result Apache crashes. Database reproduction code: ---------------------------------- CREATE TABLE `core_stats` ( `id` int(10) unsigned NOT NULL auto_increment, `day_of_week` int(1) unsigned NOT NULL default '0', `day_of_month` int(2) unsigned NOT NULL default '0', `m` int(2) unsigned NOT NULL default '0', `y` int(4) unsigned NOT NULL default '0', `visitors` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `core_stats` VALUES (1, 2, 5, 7, 2005, 1); INSERT INTO `core_stats` VALUES (2, 3, 6, 7, 2005, 6); INSERT INTO `core_stats` VALUES (3, 4, 7, 7, 2005, 7); INSERT INTO `core_stats` VALUES (4, 5, 8, 7, 2005, 1); Expected result: ---------------- It should work as it worked on MySQL 4. Actual result: -------------- Internal Server Error