Ticket #204 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

eAccelerator 0.9.5 isn't woking with PHP 5.2.0 (cannot access protected variable)

Reported by: teeroz Assigned to: somebody
Priority: critical Milestone: 0.9.6
Component: eAccelerator Version: 0.9.5
Keywords: protected,php52 Cc:

Description

eAccelerator configuration

;zend_extension_ts="/server/php5/lib/php/extensions/no-debug-zts-20060613/eaccelerator.so"
eaccelerator.shm_size="32"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="300"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

PHP Code

<?php
    class c {
        static protected $a = 'test';

        static public function func() {
            echo self::$a;
        }
    }

    echo c::func();
?>

Result is ...

Fatal error: Cannot access protected property c::$a in /home/teeroz/cyworld/c2/webroot/test2.php on line 6

Change History

11/08/06 13:56:51 changed by bart

  • keywords changed from protected to protected,php52.

11/08/06 15:03:55 changed by bart

When I ported php 5.2 support from trunk to the 0.9.5 branch I forgot this changeset: https://www.eaccelerator.net/changeset/251

This is fixed in revision 284 of the 0.9.5 branch. We'll see if we do a 0.9.5.1 with only this change or release 0.9.6 which already contains some bug fixes, cleanups and a new control panel.

11/08/06 15:06:46 changed by bart

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 0.9.6.