Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13792 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51698 invoked by uid 1010); 8 Nov 2004 15:46:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51595 invoked from network); 8 Nov 2004 15:46:04 -0000 Received: from unknown (HELO prohost.org) (216.126.86.27) by pb1.pair.com with SMTP; 8 Nov 2004 15:46:04 -0000 Received: (qmail 9812 invoked from network); 8 Nov 2004 15:46:03 -0000 Received: from cpe0050bad46dce-cm000f9f7d6664.cpe.net.cable.rogers.com (HELO ?192.168.1.101?) (@69.196.31.138) by prohost.org with SMTP; 8 Nov 2004 15:46:03 -0000 Message-ID: <418F94B8.6000102@prohost.org> Date: Mon, 08 Nov 2004 10:46:00 -0500 User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Bertheau CC: john@coggeshall.org, internals@lists.php.net, Yasuo Ohgaki References: <1099917871.2648.12.camel@dicaprio.akademie1.de> <1099926291.24517.4.camel@unix-101-34.hq.communityconnect.com> <1099927445.2648.24.camel@dicaprio.akademie1.de> <418F91BE.8080107@prohost.org> <1099928518.2648.26.camel@dicaprio.akademie1.de> In-Reply-To: <1099928518.2648.26.camel@dicaprio.akademie1.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [PATCH] pg_result_sqlstate From: ilia@prohost.org (Ilia Alshanetsky) Same logic is applicable, in the event of failure false or invalid resource maybe returned. Ilia Markus Bertheau wrote: > В Пнд, 08.11.2004, в 16:33, Ilia Alshanetsky пишет: > >>The error functions do so because they are likely to be called if >>creation of a connection fails so there may not always be a valid >>resource. The state checking function would presumably be only run on a >>valid connection and consequently should be strict about the resource >>parameter (IMO). > > > Both function take result resources, not connection resources. > > Markus >