From: cadastro at luciana dot pro dot br Operating system: linux PHP version: 5.2.5 PHP Bug Type: MySQLi related Bug description: Cannot extend built-in classes (mysqli) << WASN'T FIXED AT ALL
Description: ------------ Fixed bug #28430 (Extending mysqli class). (Georg) this fix is SO NOT TRUE !! The bug is STILL THERE THE SAME AS IT WAS 4 YEARS AGO !!! I CAN'T GET THE THREAD_ID VALUE !! AND THAT'S CAUSING A BIG ISSUE : I OPEN CONNECTION, USE AND CLOSE IT. IT ACTUALLY CLOSES (I TESTED), BUT IT LETS AN ORPHAN >>>> THREAD <<<< IN MEMORY - WHICH IS CONSUMING RESOURCES UNTIL MAX THREAD OF MYSQL IS REACHED, MAKING MYSQL GO DOWN WHEN IT HAPPENS. TO FIX IT I NEED TO MANUALLY KILL THE THREAD THAT IS NOT BEEING CLOSED BY MYSQLI! BUT HOW IF THE THING IS BUGGED?! :/ I HOPE IT GETS REALLY FIXED !! THANKS! Reproduce code: --------------- EXAMPLE FOR TESTING THE BUG : -------------------------------------------------------- myclass inherits mysqli { function connect() { parent::connect( <conection stuff> ); } function kill() { parent::kill( parent::thread_id ); // <<<<< BUG!! } } -------------------------------------------- Expected result: ---------------- I expect the thread to be REMOVED FROM MEMORY !!! Actual result: -------------- MYSQLI is letting OPRHAN THREADS in memory, and if mysql limit is 100 and I reload page 100 times, it will take mysql off business :/ -- Edit bug report at http://bugs.php.net/?id=44274&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44274&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44274&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44274&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44274&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44274&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44274&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44274&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44274&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44274&r=support Expected behavior: http://bugs.php.net/fix.php?id=44274&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44274&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44274&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44274&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44274&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44274&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44274&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44274&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44274&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44274&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44274&r=mysqlcfg