[PHP-DEV] PHP 4.0 Bug #6339 Updated: invalid Sybase-link resource - problem with last opened link From: Bug Database (php-dev <email protected>)
Date: 09/29/00

ID: 6339
User Update by: dpetrov <email protected>
Status: Open
Bug Type: Sybase-ct (ctlib) related
Description: invalid Sybase-link resource - problem with last opened link

This confirmed to be a problem in version 4.0.2 as well

Previous Comments:
---------------------------------------------------------------------------

[2000-08-24 18:01:50] dpetrov <email protected>
I am giving the simplest example possible:

sybase_connect("abc","def","jkl"); // or die("Can't connect!");
$res=sybase_query("Select * FROM Companies");

I always get this:

Warning: 1 is not a valid Sybase-Link resource in ...

Yet, if I replace 1st line with this:

$somevariable = sybase_connect("abc","def","jkl"); // or die("Can't connect!");

then everything works just fine (even though I do not really use $somevariable anywhere).

This probably means that the link it not being registered properly internally.

I did not have this problem with Sybase-dblib (yet there is a big problem wirg sybase_fetch_row - it core dumps PHP/Apache).

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=6339

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>