#42368 [Opn->Asn]: Incorrect error message displayed by pg_escape_string

From: Date: Tue, 21 Aug 2007 23:51:52 +0000
Subject: #42368 [Opn->Asn]: Incorrect error message displayed by pg_escape_string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-116439@lists.php.net to get a copy of this message
ID: 42368 Updated by: iliaa@php.net Reported By: vesselin at awcreator dot com -Status: Open +Status: Assigned Bug Type: PostgreSQL related Operating System: Linux PHP Version: 5CVS-2007-08-21 (snap) -Assigned To: +Assigned To: iliaa Previous Comments: ------------------------------------------------------------------------ [2007-08-21 23:05:23] vesselin at awcreator dot com Description: ------------ pg_escape_string() displays an incorrect error message Reproduce code: --------------- pg_escape_string (array ()); Expected result: ---------------- Warning: pg_escape_string() expects parameter 1 to be string, array given in Command line code on line 1 Actual result: -------------- Warning: pg_escape_string() expects exactly 2 parameters, 1 given in Command line code on line 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42368&edit=1

« previous php.bugs (#116439) next »