Zend Optimizer for PHP 5.3

General discussion on Zend Guard / Optimizer
laurin1
Posts: 26
Joined: Thu Mar 05, 2009 3:35 pm

Re: Zend Optimizer for PHP 5.3

Post by laurin1 » Thu Sep 23, 2010 3:06 pm

Or in my case, my host won't upgrade to 5.3 because Zend Guard is not available. I have rewrite scripts for it. Sucks

flash866
Posts: 10
Joined: Fri Jul 23, 2010 7:29 am

Re: Zend Optimizer for PHP 5.3

Post by flash866 » Wed Sep 29, 2010 2:28 am

It was a day in late september ,how about the zend optimizer for php 5.3 ?

flash866
Posts: 10
Joined: Fri Jul 23, 2010 7:29 am

Re: Zend Optimizer for PHP 5.3

Post by flash866 » Wed Sep 29, 2010 2:29 am

where to download ?

maximcherny2
Posts: 2
Joined: Wed Oct 06, 2010 1:11 am

Re: Zend Optimizer for PHP 5.3

Post by maximcherny2 » Wed Oct 06, 2010 1:21 am

Sadly:

http://www.zend.com/en/products/server-ce/

Zend Server CE that comes with PHP 5.3.x has got ZendOptimizer+ included - surely this does not look like this is a technical challenge, as you've already got a working extension for 5.3.x.

Come on guys, please release the stand-alone ZendOptimizer for 5.3!

jeffshead
Posts: 8
Joined: Fri Aug 27, 2010 4:38 am

Re: Zend Optimizer for PHP 5.3

Post by jeffshead » Fri Oct 15, 2010 2:10 am

We need it too. Can't upgrade to 5.3.3 until there is a working version of Optimizer.

Come on Zend, help us out.

nightchilller
Posts: 2
Joined: Tue Oct 19, 2010 4:48 pm

Re: Zend Optimizer for PHP 5.3

Post by nightchilller » Tue Oct 19, 2010 4:55 pm

Hello,

here a little instruction.

copy the ZendOptimizerPlus.so from ZendServer CE 5.3 to /your/own/path/ZendOptimizerPlus.so

and copy the following code in your php.ini:

Code: Select all


[zend]
zend_extension=/your/own/path/ZendOptimizerPlus.so

; Optimizer+ On/Off switch. When set to Off, code is not optimized.
zend_optimizerplus.enable=1

; If set to On, use the current directory as a part of the script key
zend_optimizerplus.use_cwd=1

; If enabled, the Optimizer+ checks the file timestamps and updates the cache accordingly.
zend_optimizerplus.validate_timestamps=1

; How often to check file timestamps for changes to the shared memory storage allocation. (units: seconds)
zend_optimizerplus.revalidate_freq=2

; Enables or disables file search in include_path optimization
zend_optimizerplus.revalidate_path=0

; The verbosity of the Optimizer+ log
zend_optimizerplus.log_verbosity_level=1

; The Optimizer+ shared memory storage size. The amount of memory for storing precompiled PHP code in Mbytes. (units: MBytes)
zend_optimizerplus.memory_consumption=64

; The maximum number of keys (scripts) in the Optimizer+ hash table
zend_optimizerplus.max_accelerated_files=2000

; The maximum percentage of "wasted" memory until a restart is scheduled (units: %)
zend_optimizerplus.max_wasted_percentage=5

; Check the cache checksum each N requests
zend_optimizerplus.consistency_checks=0

; How long to wait (in seconds) for a scheduled restart to begin if the cache is not being accessed (units: seconds)
zend_optimizerplus.force_restart_timeout=180

; The location of the Optimizer+ blacklist file
zend_optimizerplus.blacklist_filename=

; If enabled, a fast shutdown sequence is used for the accelerated code
zend_optimizerplus.fast_shutdown=0

; A bitmask, where each bit enables or disables the appropriate Optimizer+ passes
zend_optimizerplus.optimization_level=0xfffffbbf

; Enables or disables the optimization passes that may take significant time, based on an internal runtime calculation
zend_optimizerplus.enable_slow_optimizations=1
and now, restart php!

done!

in example, in my phpinfo() i can see now:

PHP Version 5.3.2-1ubuntu4.5ppa5~lucid1
...

Code: Select all

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Zend Optimizer+ v4.1, Copyright (c) 1999-2010, by Zend Technologies
    with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH
and

Code: Select all

Zend Optimizer+
Opcode Caching 	Up and Running
Optimization 	Enabled
Startup 	OK
Shared memory model 	mmap

Directive	Local Value	Master Value
zend_optimizerplus.blacklist_filename	no value	no value
zend_optimizerplus.consistency_checks	0	0
zend_optimizerplus.dups_fix	Off	Off
zend_optimizerplus.enable	On	On
zend_optimizerplus.enable_file_override	Off	Off
zend_optimizerplus.enable_slow_optimizations	1	1
zend_optimizerplus.fast_shutdown	0	0
zend_optimizerplus.force_restart_timeout	180	180
zend_optimizerplus.inherited_hack	On	On
zend_optimizerplus.log_verbosity_level	1	1
zend_optimizerplus.max_accelerated_files	2000	2000
zend_optimizerplus.max_wasted_percentage	5	5
zend_optimizerplus.memory_consumption	64	64
zend_optimizerplus.optimization_level	0xfffffbbf	0xfffffbbf
zend_optimizerplus.preferred_memory_model	no value	no value
zend_optimizerplus.revalidate_freq	2	2
zend_optimizerplus.revalidate_path	Off	Off
zend_optimizerplus.save_comments	1	1
zend_optimizerplus.use_cwd	On	On
zend_optimizerplus.validate_timestamps	On	
good luck

laurin1
Posts: 26
Joined: Thu Mar 05, 2009 3:35 pm

Re: Zend Optimizer for PHP 5.3

Post by laurin1 » Tue Oct 19, 2010 5:02 pm

You are saying that this works with PHP 5.3?

nightchilller
Posts: 2
Joined: Tue Oct 19, 2010 4:48 pm

Re: Zend Optimizer for PHP 5.3

Post by nightchilller » Tue Oct 19, 2010 5:10 pm

Yes, at least in my nginx + php5.3-fpm environment

jeffshead
Posts: 8
Joined: Fri Aug 27, 2010 4:38 am

Re: Zend Optimizer for PHP 5.3

Post by jeffshead » Wed Oct 20, 2010 2:32 pm

nightchilller wrote:...copy the ZendOptimizerPlus.so from ZendServer CE 5.3...
What about Windows installation? The only download for Windows is an exe.

pk_fr_pk
Posts: 21
Joined: Wed Oct 20, 2010 4:07 pm

Re: Zend Optimizer for PHP 5.3

Post by pk_fr_pk » Wed Oct 20, 2010 4:10 pm

didn't work on mandriva 2010 spring...

got the following error in the log file:
ZendOptimizerPlus.so : undefined symbol: shm_open
has somebody a solution?
thx

Locked