|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11468 Cannot execute stored procedures
Submitted: 2001-06-13 12:25 UTC Modified: 2003-08-12 22:30 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: Vladimir dot Michl at seznam dot cz Assigned:
Status: Closed Package: InterBase related
PHP Version: 4.0.5 OS: Win32, Linux
Private report: No CVE-ID: None
 [2001-06-13 12:25 UTC] Vladimir dot Michl at seznam dot cz

when I wrote some scripts that inserting some data to database, I must call stored procedures
for getting some data (typically id from generator). I want
execute stored procedures, that return next row id.

I add some code to interbase PHP module, that support execution of stored procedures.

With my patch, procedure is executed by
$res = ibase_query($db, "execute procedure procedure_name");
$row = ibase_fetch_row($res);

In $row is row returned by procedure.

Patch may be found on

If any question write me.

Vladimir Michl <>
PS: Patch is ported from 4.0.3pl1 where is functional.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-13 12:12 UTC] Vladimir dot Michl at seznam dot cz
Stored procedures may be executed, but if stored procedure return some data, I don't want how to get it.

Yes some way is by select SQL command and SUSPEND in procedure, but it is not ideal way.

May someone tell me how do it?
 [2002-08-13 23:49 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

 [2003-01-03 16:39 UTC] mike at mk-sys dot cz
This feature is still missing in PHP 4.3.0. Patch is available and working (I am using it for more than one year by now). Is there a reason why this should not be implemented?
 [2003-08-12 21:23 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

 [2003-08-12 22:30 UTC]
Fix will be in PHP 5.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 09:01:26 2024 UTC