|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-26 10:04 UTC] sniper@php.net
[2006-01-26 15:35 UTC] edrozenberg at pobox dot com
[2006-01-29 19:33 UTC] sniper@php.net
[2006-01-30 16:49 UTC] edrozenberg at pobox dot com
[2006-02-01 17:55 UTC] iliaa@php.net
[2006-02-09 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 06:00:01 2025 UTC |
Description: ------------ Since upgrading PHP from 5.1.1 to 5.1.2, running a simple prepared statement SELECT fails. Error info from print_r($stmt->errorInfo()): Array ( [0] => 00000 ) I have experienced no such problems on Linux 2.4 with PHP 5.1.2 compiled from source. Reproduce code: --------------- private function dbSel($query, $values) { $stmt = $this->dbh->prepare($query); if ( ! $stmt->execute($values) ) { print_r($stmt->errorInfo()); $this->dbErrorGet($stmt); return(0); } $this->rows = $stmt->fetchAll(PDO::FETCH_ASSOC); return(1); } ---------------------------------------------------------- $query: "SELECT * \n FROM t_workfile" $values: array of <blank> Expected result: ---------------- $stmt->execute($values) should return TRUE and there should be rows that can be fetched Actual result: -------------- $stmt->execute($values) returns false and the print_r($stmt->errorInfo()) statement prints "Array ( [0] => 00000 )"