From: divisor at ad69 dot com
Operating system: FreeBSD 4.10
PHP version: 5.0.0
PHP Bug Type: MySQL related
Bug description: Statement isn't valid anymore warning during executing prepared
mysqi queries
Description:
------------
The problem is in CLI as well as in apache module
I have mysql 4.3.1 and php 5.0.0 installed, use mysqli interface to work
with mysql.
In different scripts in different places (mostly random) I get the
following error:
1) Warning message: Statement isn't valid anymore
2) Statetment result contains no data
Reproduce code:
---------------
appears in randomly different places, all like this:
($DB is mysqli object)
if ($stmt=$DB->prepare("select something from table where name=?")) {
$stmt->bind_param('s',$name);
$stmt->execute();
Expected result:
----------------
The same code worked fine on the second server running FreeBSD 5.2.1
without any problems. The main difference between 2 servers I think that
the first one (where bug appears) is a productional server with many
requests to apache/php/mysql, the second one is a development server with
no usage.
Actual result:
--------------
get Warning: Statement isn't valid anymore message and statetment isn't
executed
--
Edit bug report at http://bugs.php.net/?id=29283&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29283&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29283&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29283&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29283&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29283&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29283&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29283&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29283&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29283&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29283&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29283&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29283&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29283&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29283&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29283&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29283&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29283&r=float