From:             [EMAIL PROTECTED]
Operating system: Windows XP Pro SP2
PHP version:      5.0.5
PHP Bug Type:     MySQLi related
Bug description:  new mysqli_result($mysql); doesn't return expected instance

Description:
------------
new mysqli_result($mysql); doesn't return expected instance

Reproduce code:
---------------
$mysql = new mysqli('localhost', 'root', '', 'test');

$mysql->query('SELECT * FROM `test`');

$result = new mysqli_result($mysql);

$row = $result->fetch_row();

$result->close();
$mysql->close();

var_dump($row);

Expected result:
----------------
array

Actual result:
--------------
NULL

+ Warning messages:

Warning: Couldn't fetch mysqli_result in test.php on line 4
Warning: Couldn't fetch mysqli_result in test.php on line 6

-- 
Edit bug report at http://bugs.php.net/?id=34828&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34828&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34828&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34828&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34828&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34828&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34828&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34828&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34828&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34828&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34828&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34828&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34828&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34828&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34828&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34828&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34828&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34828&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34828&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34828&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34828&r=mysqlcfg

Reply via email to