Re: [PHP4BETA] strange mysql_pconnect return value

From: Date: Sun, 01 Aug 1999 18:44:50 +0000
Subject: Re: [PHP4BETA] strange mysql_pconnect return value
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-3031@lists.php.net to get a copy of this message
At 01:52 PM 8/1/99 +0200, Aleksandar Ivanisevic wrote:
In PHP3 mysql_connect and mysql_pconnect used to return an integer indicating connection ID. Now they return something that returns 'Resource id #xxx" when printed and "unknown type" as the result of gettype. What is it and how do I get an integer from it? Casting and settype doesn't work, neither does substr.
Both of these didn't work in Beta 1. The latest CVS has been fixed (the fixes will be in Beta 2 due out in a couple of days). Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.version4 (#3031) next »