PHP 4.0 Bug #6339: invalid Sybase-link resource - problem with last opened link
| From: | dpetrov at nchcapital dot com | Date: | Thu, 24 Aug 2000 22:01:50 +0000 |
| Subject: | PHP 4.0 Bug #6339: invalid Sybase-link resource - problem with last opened link | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-30564@lists.php.net to get a copy of this message | ||
From: dpetrov@nchcapital.com
Operating system: FreeBSD 3.4
PHP version: 4.0.1pl2
PHP Bug Type: Sybase-ct (ctlib) related
Bug description: invalid Sybase-link resource - problem with last opened link
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).