From: jmdoren at ok dot cl Operating system: Fedora release 13 (Goddard) PHP version: 5.4.10 Package: MySQLi related Bug Type: Bug Bug description:From time to time "PHP Fatal error: Class 'MySQLi' not found"
Description: ------------ >From time to time i recive the error " PHP Fatal error: Class 'MySQLi' not found in.....", the script runs several times each minute but the error is generated only 1 or 2 times in an hour. Php was generated liske this: System Linux db2 2.6.34.7-66.fc13.x86_64 #1 SMP Wed Dec 15 07:04:30 UTC 2010 x86_64 Build Date Dec 27 2012 21:26:02 Configure Command './configure' '--with-mysqli' '--with-mysql' '--with- apxs2=/usr/local/apache2/bin/apxs' '--with-config-file-path=/etc' '--enable- calendar' '--disable-simplexml' '--enable-libxml' '--with-curl' '--enable- mbstring' '--with-mysqli=mysqlnd' '--with-gd' '--with-jpeg-dir=/usr/lib64/' '-- with-t1lib' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local' '--with- zlib' Server API Apache 2.0 Handler Virtual Directory Support enabled PHP API 20100412 PHP Extension 20100525 Zend Extension 220100525 Zend Extension Build API220100525,TS PHP Extension Build API20100525,TS ***************************************** eAccelerator Version 1.0-dev Caching Enabled true Optimizer Enabled true Check mtime Enabled true Memory Size 33,554,368 Bytes Memory Available 33,350,888 Bytes Memory Allocated 203,480 Bytes Cached Scripts 9 Removed Scripts 0 mysqli **************************************** Client API library version mysqlnd 5.0.10 - 20111026 - $Id: b0b3b15c693b7f6aeb3aa66b646fee339f175e39 $ Active Persistent Links 0 Inactive Persistent Links 0 Active Links 0 Directive Local Value Master Value mysqli.allow_local_infile On On mysqli.allow_persistent On On mysqli.default_host no value no value mysqli.default_port 3306 3306 mysqli.default_pw no value no value mysqli.default_socket /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock mysqli.default_user no value no value mysqli.max_links Unlimited Unlimited mysqli.max_persistent Unlimited Unlimited mysqli.reconnect Off Off Test script: --------------- <?php // call this several times form web and it will trigger an error some few times $p = new cl_ok_MySQL(); echo "sip"; class cl_ok_MySQL extends MySQLi{} ?> Expected result: ---------------- No error Actual result: -------------- look the time, the script is called several times per minute ( more than 200 ) but it only generates this error from time to time...: [27-Dec-2012 22:08:03] PHP Fatal error: Class 'MySQLi' not found in /ssd0/cl/ok/src/produccion/cl/ok/MySQL.class.php on line 11 [27-Dec-2012 23:08:03] PHP Fatal error: Class 'MySQLi' not found in /ssd0/cl/ok/src/produccion/cl/ok/MySQL.class.php on line 11 [28-Dec-2012 00:03:04] PHP Fatal error: Class 'MySQLi' not found in /ssd0/cl/ok/src/produccion/cl/ok/MySQL.class.php on line 11 [28-Dec-2012 00:23:04] PHP Fatal error: Class 'MySQLi' not found in /ssd0/cl/ok/src/produccion/cl/ok/MySQL.class.php on line 11 -- Edit bug report at https://bugs.php.net/bug.php?id=63864&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63864&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63864&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63864&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63864&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63864&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63864&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63864&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63864&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63864&r=support Expected behavior: https://bugs.php.net/fix.php?id=63864&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63864&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63864&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63864&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63864&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63864&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63864&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63864&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63864&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63864&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63864&r=mysqlcfg