Re: [PHP4BETA] mysql-pconnect
| From: | Zeev Suraski | Date: | Tue, 21 Dec 1999 21:13:03 +0000 |
| Subject: | Re: [PHP4BETA] mysql-pconnect | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-8341@lists.php.net to get a copy of this message | ||
At 23:08 21/12/1999 , rasmus@php.net wrote:
<? $linkdb=mysql_pconnect(...); echo "Link: $linkdb"; ?> I get: Link: Resource id #1. Why $linkdb not integer??? It sort of is, but it is marked as a resource identifier internally and that's what PHP is telling you here.I think it would be good to say that it's not an integer at all. Today 'it sort of is', but you cannot and must not rely on it. It doesn't behave like an integer today already, and the underlying implementation is subject to change (with notice, but still). Functions that return handles no longer return integers in PHP 4.0, but resource handles. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/