Ticket #204 (closed task: fixed)

Opened 4 years ago

Last modified 1 week ago

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

Reported by: teeroz Assigned to: somebody
Priority: minor Milestone: 1.0
Component: eAccelerator Version: 0.9.6
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.

09/19/09 06:00:05 changed by getagoodbuy

I'm closing it according to the last comment. nike shoes wholesale

(follow-up: ↓ 6 ) 10/11/09 20:49:05 changed by 4insure

(in reply to: ↑ 5 ) 02/11/10 00:33:13 changed by reggiel

02/24/10 10:59:56 changed by sim

decoration Changed 1 year ago by admin

bathtub Changed 1 year ago by admin

solar system Changed 1 year ago by admin

stair parts Changed 1 year ago by admin

solar supply Changed 1 year ago by admin

03/25/10 22:18:48 changed by gittar1122

  • keywords changed from protected,php52 to php52.
  • priority changed from critical to waiting-response.
  • version changed from 0.9.5 to 0.9.6.
  • component changed from eAccelerator to License.
  • milestone changed from 0.9.6 to 1.0.

model ships Changed 1 year ago by Admin

04/15/10 00:15:08 changed by stephen343

  • component changed from License to Optimizer.
  • priority changed from waiting-response to minor.
  • version changed from 0.9.6 to 0.9.4.
  • milestone deleted.
  • keywords changed from php52 to protected, php52.
  • type changed from defect to task.

First you need to download php4-dev package which we need to compile eAccelerator. It is a further development from mm cache PHP Accelerator & Encoder. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. atlanticOptimize Cheers

04/19/10 00:15:02 changed by brikhan5

  • component changed from Optimizer to License.
  • priority changed from minor to waiting-response.
  • version changed from 0.9.4 to trunk.
  • milestone set to 0.9.6.
  • keywords changed from protected, php52 to protected,.
  • type changed from task to regression.

If eAcceleratos is not working then I think you need php4-dev package as a compiler. It is a further development from mm cache PHP Accelerator & Encoder. You will find enhanced performance of PHP scripts by using php4-dev as it cache in compiled stat and that's no extra effort on compiling. wholesale computer components Thanks

04/23/10 14:59:16 changed by lisajack258

  • component changed from License to eAccelerator.
  • priority changed from waiting-response to minor.
  • version changed from trunk to 0.9.6.
  • milestone changed from 0.9.6 to 1.0.
  • keywords changed from protected, to protected, php52.
  • type changed from regression to task.

Installing php4-dev package (as compiler) can solve your problem. It will provide you good performance as there is no extra compiling required if you are using php4-dev. I hope it will help you. Bathroom Furniture Thanks

05/28/10 10:46:33 changed by mkp

Hi, all. I am a regular reader of this forum. The posts here have provided many solutions for my technical problems. I am from India and so internet is my only solution provider. This problem posted here is one of the common problem arises related with PHP and eaccelerator on my websites. And so this is one of the most important post that provides solutions to many readers having same problem. Thank you so much and keep posting more problems and solutions.

06/02/10 10:23:46 changed by swatbolish

Actually, since my long absence from the internet, i just found out about geocities shutting down their services from this. how to get pregnant

06/04/10 06:42:32 changed by jcbrown

The workability of a program is decided by the platform which it runs on. If the platform that software runs is not of the supporting form then there are many problems that arise from it. Similar problem might have reported on the eAccelerator 0.9.5. This won’t work in PHP 5.2.0 if the platforms are different and more over the inconvenience in accessing the protected variable might have been raised by this factor again. Providing a good base of platform may be a solution for this problem. RFID Tags

06/07/10 18:28:49 changed by whome

I will try these tips and let you know how they work out! prom dress | hobo handbag

06/08/10 16:30:34 changed by kakashi

Thank you. I think this configuration should fix the problem, but what about the new versions of the PHP?

P90X | Fat Burning Furnace | Fat Loss

06/15/10 09:55:18 changed by bobmarks

Im still learning php might use it on daily sudoku daily sudoku good to see some sites on it

07/22/10 04:01:39 changed by bobmarks

Php sees to be upgrading a lt at least from my impressions, I might implement some on angular cheilitis project Im working on <a href="http://cheilitistreatment.com">angular cheilitis treatment</a> if I cna find a use for it

07/22/10 04:03:58 changed by bobmarks

Php sees to be upgrading a lt at least from my impressions, I might implement some on angular cheilitis project Im working on angular cheilitis treatment if I can find a use for it