ID: 29504
Updated by: [EMAIL PROTECTED]
Reported By: sq6elt at zp dot amsnet dot pl
-Status: Open
+Status: No Feedback
Bug Type: Sybase-ct (ctlib) related
Operating System: Linux - Debian, sarge
PHP Version: 4.3.8
Previous Comments:
------------------------------------------------------------------------
[2004-08-17 13:40:25] alex dot kiesel at document-root dot de
I cannot reproduce this:
Example code:
<?php
$sybase= sybase_connect(SYBASE_HOST, SYBASE_USER, SYBASE_PASS);
// Retrieves 2 rows
var_dump(sybase_query('select * from master..currentpeople'));
// Retrieves 0 rows
var_dump(sybase_query('select * from master..currentpeople where
person = "foobar"'));
?>
Output:
resource(5) of type (sybase-ct result)
resource(6) of type (sybase-ct result)
I assume this is due to your (quite old) FreeTDS version. I am running
freetds v0.63.dev.20040814 (though there are several stable versions
between our two).
------------------------------------------------------------------------
[2004-08-03 10:20:05] sq6elt at zp dot amsnet dot pl
Description:
------------
If resultset returned by sybase_query is empty,
following message appears:
Warning: sybase_fetch_row(): supplied argument is not a valid Sybase
result resource in file.php
Expected to sybase_fetch_row to return false.
Tested on:
Debian Sarge, php 4.3.8, libct1 0.61-5, freetds-dev 0.61-5
With regards,
Paul
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29504&edit=1