Ask a Question related to PHP Bugs, Design and Development.
-
engine_no9 at gmx dot net #1
#38057 [Com]: closeCursor method not function with CALL statement
ID: 38057
Comment by: engine_no9 at gmx dot net
Reported By: draeli at draeli dot com
Status: No Feedback
Bug Type: PDO related
Operating System: Windows
PHP Version: 5.1.4
New Comment:
So far i can confirm this improper behaviour with using PDO and stored
procedure calls. I've just updated my PHP version to the latest 5.2.1
release and PDO still won't allow multiple stored procedure calls even
i've closed the cursor with the available method.
// this won't work more than once
$stmt = $db->prepare("CALL spListUsers()");
$stmt->execute();
$data = $stmt->fetchAll(PDO::FETCH_OBJ);
$stmt->closeCursor();
print_r($data);
// while this instead will work fine, even more than once
$stmt = $db->prepare("SELECT * FROM users");
$stmt->execute();
$data = $stmt->fetchAll(PDO::FETCH_OBJ);
$stmt->closeCursor();
print_r($data);
I assuming that this kind of bug is not solved in PHP 5.2.1 so far.
Previous Comments:
------------------------------------------------------------------------
[2006-07-18 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-07-10 12:26:26] [email]tony2001@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
------------------------------------------------------------------------
[2006-07-10 12:24:11] draeli at draeli dot com
Description:
------------
I have this in my construct class :
$result=$this->connexion_bd->query("CALL
ListeGroupeGet($IDGroupe,'$type_sens')");
Result is correctly put with fetch method but after if I try to close
cursor with cluseCursor method nothing is do ...
To confirm this behavior, I have put an other query statement after
closeCursor method :
$test=$this->connexion_bd->query("SELECT '1'");
and do var_dump on result :
bool(false) result of that as if cursor isn"t close.
Expected result:
----------------
Fatal error: Call to a member function fetch() on a non-object
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=38057&edit=1[/url]
engine_no9 at gmx dot net Guest
-
#39612 [NEW]: closeCursor() does not allow SQLite 2 statement to resume
From: randy at rcs-comp dot com Operating system: Windows XP PHP version: 5.2.0 PHP Bug Type: PDO related Bug description: ... -
Can't call method <function> on an undefined value at <module>
I want to reference a variable in a module that was created in the module consuming program. ---------- The module looks like this: #!... -
How do I call an outer function from a class method function?
I'm sorry guys but this is a bad day for me. I tried researching this one and was totally stonewalled (see... -
#25329 [Opn->Ver]: sqlite_create_function cant call method of $this as function kills apache(2)
ID: 25329 Updated by: sniper@php.net Reported By: firepages at firepages dot com dot au -Status: Open +Status:... -
#25329 [NEW]: sqlite_create_function cant call method of $this as function kills apache(2)
From: firepages at firepages dot com dot au Operating system: win XP PHP version: 4.3.3 PHP Bug Type: SQLite related Bug...



Reply With Quote

