From: dan at yes dot lt
Operating system: Windows 2000
PHP version: 5.0.2
PHP Bug Type: MySQLi related
Bug description: mysqli_prepare returns "Unknown command"
Description:
------------
mysqli_prepare() and mysqli->prepare() returns "Unknown command" error.
I have tryed that with MySQL versions 4.1.5, 5.0.0a and 5.0.1. The result
was just the same.
Reproduce code:
---------------
$db = new mysqli(HOSTNAME, USERNAME, PASSWORD, DATABASE);
$st = $db->prepare("SELECT id, name FROM test WHERE name = ?");
if (!$st) echo $db->error; // "Unknown command"
--
Edit bug report at http://bugs.php.net/?id=30656&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30656&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30656&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30656&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30656&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30656&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30656&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30656&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30656&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30656&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30656&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30656&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30656&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30656&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30656&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30656&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30656&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30656&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30656&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30656&r=mysqlcfg