#44270 [NEW]: $mysqli->info is NULL, not an empty string, for "not supported situations"
| From: | stein at visibone dot com | Date: | Wed, 27 Feb 2008 17:55:22 +0000 |
| Subject: | #44270 [NEW]: $mysqli->info is NULL, not an empty string, for "not supported situations" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-122753@lists.php.net to get a copy of this message | ||
From: stein at visibone dot com
Operating system: Win2K
PHP version: 5.2.5
PHP Bug Type: MySQLi related
Bug description: $mysqli->info is NULL, not an empty string, for "not supported
situations"
Description:
------------
$mysqli->info is NULL instead of empty string for "not supported
situations" (i.e. queries other than multi-row INSERT, LOAD, ALTER, UPDATE)
The procedural mysqli_info() does return the empty string, as documented.
Reproduce code:
---------------
Query: 'INSERT INTO t (id) VALUES (1),(2),(3)'
mysqli_info(): 'Records: 3 Duplicates: 0 Warnings: 0'
$mysqli->info: 'Records: 3 Duplicates: 0 Warnings: 0'
Query: 'INSERT INTO t (id) VALUES (9)'
mysqli_info(): ''
$mysqli->info: NULL
Expected result:
----------------
(see above)
Actual result:
--------------
the object oriented property $mysqli->info should be the empty string
after "not supported situations", e.g. a single-row insert.
--
Edit bug report at http://bugs.php.net/?id=44270&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44270&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44270&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44270&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44270&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44270&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44270&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44270&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44270&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44270&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44270&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44270&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44270&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44270&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44270&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44270&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44270&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44270&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44270&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44270&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44270&r=mysqlcfg