Bug #61446 [NEW]: Can't prepare statement without getting a result
| From: | dasmag at gmail dot com | Date: | Mon, 19 Mar 2012 23:25:43 +0000 |
| Subject: | Bug #61446 [NEW]: Can't prepare statement without getting a result | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-168635@lists.php.net to get a copy of this message | ||
From:
Operating system: ubuntu 11.04
PHP version: 5.3.10
Package: MySQLi related
Bug Type: Bug
Bug description:Can't prepare statement without getting a result
Description:
------------
---
From manual page: http://www.php.net/mysqli.prepare
---
There are an error if I heven't got a result from statement.
Just execute the script with and without commented string.
And there are no description in the documentation.
Test script:
---------------
<?php
$mysqli = new mysqli("localhost");
$st = $mysqli->prepare("SELECT 1");
$st->execute();
// print_r($st->get_result()->fetch_assoc());
$st = $mysqli->prepare("SELECT 2");
$st->execute();
?>
Actual result:
--------------
Fatal error: Call to a member function execute() on a non-objec
--
Edit bug report at https://bugs.php.net/bug.php?id=61446&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61446&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61446&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61446&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=61446&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61446&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=61446&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=61446&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=61446&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=61446&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=61446&r=support
Expected behavior: https://bugs.php.net/fix.php?id=61446&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=61446&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=61446&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=61446&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61446&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61446&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=61446&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=61446&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=61446&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=61446&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=61446&r=mysqlcfg