From: ladoo at gmx dot at Operating system: Linux (x86) PHP version: 5.0.3 PHP Bug Type: MySQLi related Bug description: constructor of mysqli is wrong named
Description: ------------ Due to the PHP5 manual the constructor of a class shall be called __construct and the method named after the class is evaluated only for compatibility reasons. The constructor of the mysqli class is mysqli, but it should be __construct. Reproduce code: --------------- $x = new mysqli(); if(method_exists($x, "mysqli")) echo "mysqli exists"; if(method_exists($x, "__construct")) echo "__construct exists"; Expected result: ---------------- __construct exists Actual result: -------------- mysqli exists -- Edit bug report at http://bugs.php.net/?id=32490&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32490&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32490&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32490&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32490&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32490&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32490&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32490&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32490&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32490&r=support Expected behavior: http://bugs.php.net/fix.php?id=32490&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32490&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32490&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32490&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32490&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32490&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32490&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32490&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32490&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32490&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32490&r=mysqlcfg