|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-18 13:16 UTC] sniper@php.net
[2005-08-26 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 03:00:01 2025 UTC |
Description: ------------ Sqlite3 database named id.sl3 contains an empty table created by this SQL query: create table id(id INTERGE PRIMARY KEY, txt); Use PDO prepared statment to query the table. Since the table is empty, no rows will return. execute() method of the PDO statment object will cause: 1. Apache to halt if using mod_php 2. CGI/FastCGI to halt, while Apache still working providing static contents, if using CGI/FastCGI Reproduce code: --------------- <?PHP # make a PDO $pdo = new PDO('sqlite:id.sl3'); # select a row that doesn't exist in the table $stmt = $pdo->prepare('SELECT * FROM id WHERE id = 1000'); # if no row found, PDO will cause Apache to halt $stmt->execute(); ?> Expected result: ---------------- execute() should return empty array. not clear if with output binding. Actual result: -------------- nothing in Apache log file recorded for this.