#32239 [NEW]: ibase_fetch_* can´t work with ibase_execute() result resource
| From: | j-pieper at web dot de | Date: | Tue, 08 Mar 2005 23:13:44 +0000 |
| Subject: | #32239 [NEW]: ibase_fetch_* can´t work with ibase_execute() result resource | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-76765@lists.php.net to get a copy of this message | ||
From: j-pieper at web dot de
Operating system: Windows XP Prof.
PHP version: 5.0.3
PHP Bug Type: InterBase related
Bug description: ibase_fetch_* can´t work with ibase_execute() result resource
Description:
------------
When I am using ibase_execute to execute an query i can´t use one of the
ibase_fetch_* functions. I always get the same error.
-- php.ini: --
extension=php_interbase.dll
-- Database: --
table: FOOBAR
------
| ID |
------
| 1 |
------
Reproduce code:
---------------
<?php
$link = ibase_connect('...', '...', '...');
$sql = "SELECT * FROM FOOBAR";
$query = ibase_prepare($sql);
$result = ibase_execute($query);
// Variant 1
$foo = ibase_fetch_assoc($result);
// Variant 2
$foo = ibase_fetch_object($result);
// Variant 3
$foo = ibase_fetch_row($result);
?>
Expected result:
----------------
Array
(
[0] => 1
)
Actual result:
--------------
Variant 1:
Warning: ibase_fetch_assoc(): 5 is not a valid Firebird/InterBase result
resource
Variant 2:
Warning: ibase_fetch_object(): 5 is not a valid Firebird/InterBase result
resource in
Variant 3:
Warning: ibase_fetch_row(): 5 is not a valid Firebird/InterBase result
resource
--
Edit bug report at http://bugs.php.net/?id=32239&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32239&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32239&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32239&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32239&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32239&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32239&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32239&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32239&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32239&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32239&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32239&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32239&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32239&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32239&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32239&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32239&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32239&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32239&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32239&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32239&r=mysqlcfg