Doc #66658 [Asn->Csd]: wrong pg_result_error() result

From: Date: Wed, 09 Jul 2014 05:54:44 +0000
Subject: Doc #66658 [Asn->Csd]: wrong pg_result_error() result
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11357@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66658&edit=1 ID: 66658 Updated by: yohgaki@php.net Reported by: tap3ahchina at gmail dot com Summary: wrong pg_result_error() result -Status: Assigned +Status: Closed Type: Documentation Problem Package: PostgreSQL related Operating System: Fedora Linux 3.12.9-301.fc20.x86 PHP Version: 5.5.9 Assigned To: yohgaki Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2014-07-09 05:54:23] yohgaki@php.net Automatic comment from SVN on behalf of yohgaki Revision: http://svn.php.net/viewvc/?view=revision&revision=334210 Log: Fixed bug #66658 ------------------------------------------------------------------------ [2014-03-15 00:44:32] yohgaki@php.net I didn't know documentation is wrong. Thanks. ------------------------------------------------------------------------ [2014-03-13 18:20:18] tap3ahchina at gmail dot com No reason really. Documentation is incorrect, that's all. Change either behavior or documentation. ------------------------------------------------------------------------ [2014-03-11 03:16:44] yohgaki@php.net I'm not sure if we should change this behavior. Anyone have good reason for it? ------------------------------------------------------------------------ [2014-02-07 09:10:00] tap3ahchina at gmail dot com Description: ------------ Build: PHP 5.5.8 (cli) (built: Jan 9 2014 08:33:30) Documentation for pg_result_error states: "Returns a string if there is an error associated with the result parameter, FALSE otherwise." but empty String ("") is returned. Test script: --------------- $conn = pg_pconnect("host=... port=5432 dbname=myDB user='postgres' password='...'"); pg_send_query($conn, "SELECT count(*) FROM existingTable;"); $ress = pg_get_result($conn); $errmsg = pg_result_error($ress); var_dump($errmsg); Expected result: ---------------- bool(false) Actual result: -------------- string(0) "" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66658&edit=1

« previous php.doc.bugs (#11357) next »