php.net |  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
Votes:1
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
Hello,

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 http://www.penguin.cz/~michlv/software/phpibase/

If any question write me.

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] iliaa@php.net
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 http://www.php.net/downloads.php

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] abies@php.net
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 http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net 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] sniper@php.net
Fix will be in PHP 5.

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 15 16:05:46 2022 UTC