Ticket #204 (closed task: fixed)
eAccelerator 0.9.5 isn't woking with PHP 5.2.0 (cannot access protected variable)
| Reported by: | teeroz | Owned by: | 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
comment:2 Changed 4 years ago 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.
comment:3 Changed 4 years ago by bart
- Status changed from new to closed
- Resolution set to fixed
- Milestone set to 0.9.6
comment:4 Changed 12 months ago by getagoodbuy
comment:7 Changed 6 months ago 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
comment:8 Changed 5 months ago by gittar1122
- Keywords php52 added; protected,php52 removed
- 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
comment:9 Changed 5 months ago 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 1.0 deleted
- Keywords protected, added
- 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
comment:10 Changed 5 months ago 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 php52 removed
- 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
comment:11 Changed 4 months ago 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 php52 added
- 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
comment:12 Changed 3 months ago 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.
comment:13 Changed 3 months ago 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
comment:14 Changed 3 months ago 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
comment:15 Changed 3 months ago by whome
I will try these tips and let you know how they work out! prom dress | hobo handbag
comment:16 Changed 3 months ago by kakashi
Thank you. I think this configuration should fix the problem, but what about the new versions of the PHP?
comment:17 Changed 3 months ago by bobmarks
Im still learning php might use it on daily sudoku daily sudoku good to see some sites on it
comment:18 Changed 2 months ago by jodoreps
comment:19 Changed 6 weeks ago by bobmarks
Php sees to be upgrading a lot at least from my impressions, I might implement some on a killer sudoku project I'm working on killer sudoku if I can find a use for sudoku and php
comment:20 Changed 6 weeks ago 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
comment:21 Changed 2 weeks ago by rlarsion
comment:22 Changed 13 days ago by ornela
in my opinion it´s always better to use newest version of php to avoid many problems. Ornela from cheap host| justhost review| fatcow review | bluehost review
comment:23 Changed 9 days ago by josephmorris90
comment:24 Changed 41 hours ago by miriam8
Token? Private Krankenversicherung Vergleich Wie man ein kostenloses Girokonto eröffnet.
Eine Lebensversicherung abschliessen.
comment:25 Changed 41 hours ago by miriam8
Wie man eine Kreditkarte beantragen möchte. Ein Girokonto eröffnen. Eine Wohngebäudeversicherung beantragen.