From: webmaster at mif dot it Operating system: Win XP Pro PHP version: 5.0.5 PHP Bug Type: MySQLi related Bug description: Successfully loaded, but cannot use Mysqli functions/class
Description: ------------ Cannot use Mysqli functions, without using references. Reproduce code: --------------- This code: $db = mysqli_connect('localhost','Matteo','teo28273'); and this doesn't works: $db = new mysqli('localhost','Matteo','teo28273'); This code: $db =& mysqli_connect('localhost','Matteo','teo28273'); and this code works: $db =& new mysqli('localhost','Matteo','teo28273'); Expected result: ---------------- The following code (and all mysqli functions) work properly: $db = mysqli_connect('localhost','Matteo','teo28273'); or $db = new mysqli('localhost','Matteo','teo28273'); Actual result: -------------- Produces this error: #Fatal error: Trying to clone an uncloneable object of class mysqli in [***]\index.php on line 4 -- Edit bug report at http://bugs.php.net/?id=35182&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35182&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35182&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35182&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35182&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35182&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35182&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35182&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35182&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35182&r=support Expected behavior: http://bugs.php.net/fix.php?id=35182&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35182&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35182&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35182&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35182&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35182&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35182&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35182&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35182&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35182&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35182&r=mysqlcfg