#60 incompatibility with pcntl in >=2.4.4?

closed-fixed
nobody
None
5
2003-11-05
2003-11-01
No

When using mmcache >=2.4.3 along with the CLI-
Version of php I get the following error:

--
PHP Fatal error: [Turck MMCache] Turck MMCache
2.4.4 is incompatible with pcntl 1.0 in Unknown on line 0
--

With releases <2.4.3 it did work fine.

My setup:
- Dual Xeon, 3GB RAM, high load Web/Mysql-Server. Part
of a 3 Server Cluster
- Linux www5 2.4.18-14bigmem
- httpd-2.0.40-11.7
- php-4.2.3

[root@www]# grep mmcache /etc/php.ini
extension="mmcache.so"
mmcache.shm_size="16"
mmcache.cache_dir="/tmp/mmcache"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter=""
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.compress="1"

Discussion

  • Logged In: YES
    user_id=895706

    A mistake:

    The problem appears with release 2.4.4 and 2.4.5, but NOT
    with 2.4.3.

     
    • summary: incompatibility with pcntl in >=2.4.3? --> incompatibility with pcntl in >=2.4.4?
     
  • Dmitry Stogov
    Dmitry Stogov
    2003-11-03

    Logged In: YES
    user_id=124551

    This error can occur only with old PHP versions. PHP-4.3.3
    works fine.

    Try to edit mmcache.c. Find the line
    5063: } else if (strcmp(ext->name, "DBG") == 0) {
    and insert the following line above
    } else if (strcmp(ext->name, "pcntl") == 0) {

    Let me know if it helps.
    I will add this line in the next release.

     
  • Logged In: YES
    user_id=895706

    ok, works perfectly. great!

     
  • Dmitry Stogov
    Dmitry Stogov
    2003-11-03

    Logged In: YES
    user_id=124551

    The BUG is fixed in development version of MMCache.

     
  • Dmitry Stogov
    Dmitry Stogov
    2003-11-05

    • status: open --> closed-fixed
     
  • Dmitry Stogov
    Dmitry Stogov
    2003-11-05

    Logged In: YES
    user_id=124551

    Fixed in Turck MCache 2.4.6.