From:             jsgoupil at lookstrike dot com
Operating system: WinXP
PHP version:      5.0.0RC2
PHP Bug Type:     Arrays related
Bug description:  Illegal offset type with mySQLi

Description:
------------
When trying to put a ressource of mySQLi in the index of an array, i get
the following error : Warning: Illegal offset type in ...

I'm running PHP5.0.0RC2 and trying to connect a mySQL4.1 server.
When i try to connect the php_mysql.dll (not advanced) to another server,
i don't get the "illegal offset" with the same code. (mysql_connect
function)

Reproduce code:
---------------
<?php
$link =
mysqli_connect("localhost","lookstrike","*****","lookstrike_local");
$query = mysqli_query($link,"SELECT player_id FROM ls_players");
$something = array();
$something[$query] = "1";
mysqli_close($link);
?>

Expected result:
----------------
It supposed to work like mySQL (not avanced)

Actual result:
--------------
Warning: Illegal offset type in ...

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

Reply via email to