Re: apc breaks pear::mdb2
| From: | Michael A. Peters | Date: | Fri, 03 Jul 2009 11:00:27 +0000 |
| Subject: | Re: apc breaks pear::mdb2 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294858@lists.php.net to get a copy of this message | ||
Michael A. Peters wrote:
php 5.2.10 apc 3.0.19 With apc enabled, pear package mdb2 breaks with following error: <b>Fatal error</b>: Class 'PEAR' not found in <b>/usr/share/pear/MDB2/Driver/mysql.php</b> on line <b>876</b><br /> disabling apc and site works just dandy again. ; Enable apc extension module extension = apc.so ; Options for the apc module apc.enabled=1 apc.shm_segments=1 apc.optimization=0 apc.shm_size=64 apc.ttl=7200 apc.user_ttl=7200 apc.num_files_hint=1024 apc.mmap_file_mask=/tmp/apc.XXXXXX apc.enable_cli=1 apc.cache_by_default=1 apc.stat=0Changing apc.cache_by_default to 0 also fixes it, so it seems it has a problem with how it caches pear/mdb2 stuff.