Re: PHP 4.0 Bug #5756 Updated: Invalid sybase connections appearing
| From: | Dean Bennett | Date: | Mon, 24 Jul 2000 23:49:24 +0000 |
| Subject: | Re: PHP 4.0 Bug #5756 Updated: Invalid sybase connections appearing | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-25911@lists.php.net to get a copy of this message | ||
This has been fixed in CVS.
The problem is that the type of the link_id returned from sybase_connect() gets
changed from a Resource to a Long if you reuse an open sybase connection. That
is why adding a sybase_close() call fixes it.
See Bug 5705.
Bug Database wrote:
>
> ID: 5756
> Updated by: lyric
> Reported By: dclark@opsi.co.za
> Status: Open
> Bug Type: Sybase-ct (ctlib) related
> Assigned To:
> Comments:
>
> The code as written will not even give you that. If you're posting a bug report, please
> cut'n'paste the sample code - we can't help if you don't describe your problem
> properly :)
>
> Anyway, your code is broken :
> - the for loop should be seperated by ; not ,
> - The parameter to sybase_fetch_row() should be $result not $row
>
> Your problem is that sybase_select_db fails every second time. I'm looking at why now.
>
> Full Bug description available at: http://bugs.php.net/?id=5756
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net