PHP 4.0 Bug #3724 Updated: mysql_connect() return value ?(Integer):(MySQL Resource ID)
| From: | Bug Database | Date: | Sun, 05 Mar 2000 01:53:06 +0000 |
| Subject: | PHP 4.0 Bug #3724 Updated: mysql_connect() return value ?(Integer):(MySQL Resource ID) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16398@lists.php.net to get a copy of this message | ||
ID: 3724
User Update by: ahsiu@ahsiu.xfiles.to
Status: Open
Bug Type: MySQL related
Description: mysql_connect() return value ?(Integer):(MySQL Resource ID)
The following is part of my PHP code
<?php
$linkid=mysql_connect("mysite.domain","name","passwd");
echo $linkid."<br>";
$linkid=(int)$linkid;
echo $linkid."<br>";
?>
The Result is:
Resource id #1
1
What exactly the type of returned type of mysql_connect()
is ??
(prototype of mysql_connect: int mysql_connect(...) )
Full Bug description available at: http://bugs.php.net/?id=3724