ID: 44270
Updated by: felipe@php.net
Reported By: stein at visibone dot com
Status: Open
Bug Type: MySQLi related
Operating System: Win2K
PHP Version: 5.2.5
New Comment:
Hi Johannes/Ulf
Whereas the documentation says "empty string" for each string property,
i guess that could be modified the macro responsible for that.
http://felipe.ath.cx/diff/bug44270.diff
What do you think? :)
Previous Comments:
------------------------------------------------------------------------
[2008-02-27 17:55:22] stein at visibone dot com
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 this bug report at http://bugs.php.net/?id=44270&edit=1