Page 1 of 1

Zend Optimizer 3.3.9

Posted: Sun Dec 13, 2009 3:42 pm
by faris
I can't seem to find the right place to download Zend Optimizer from there days on the Zend site.

I keep getting pointed to ZendGuard and an Optimizer extension for it, which is missing the auto-installer and most of the files.

The filename seems right: ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz but it it way too small and like I say, doesn't contain the full set of files.

Have they made some significant change in the way things are done since 3.3.3 or have they goofed with the downloads? The 64-bit version is the same as the 32-bit one -- again missing most of the files.

Edit: Here's where I am pointed to: http://www.zend.com/products/zend_optimizer on the website. Selecting the Free Download gets you a page where you have to select the Optimizer option. And that's when things go wrong and I get this silly file with half the contents missing.

Edit again: There are indications on the forum that the auto-installer is not provided anymore.
OK, fine, but the only file provided in the "new style" package is ZendOptimizer.so

My php.ini contains the following

Code: Select all

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend333/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend333/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
zend_extension =/usr/local/ioncube/ioncube_loader_lin_5.1.so
zend_extension=/usr/local/Zend333/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend333/lib/ZendExtensionManager_TS.so
What am I supposed to do about the extension_manager, and the "_ts" etc etc?
(I install each version of Zend in its own directory so that I can easily roll back, hence the Zend333 rather than just Zend)

Faris.

Re: Zend Optimizer 3.3.9

Posted: Mon Feb 01, 2010 4:43 pm
by faris
I take it that ...

Code: Select all

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend333/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend333/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
zend_extension =/usr/local/ioncube/ioncube_loader_lin_5.1.so
zend_extension=/usr/local/Zend333/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend333/lib/ZendExtensionManager_TS.so
just needs to be replaced with

Code: Select all

[Zend]
zend_extension=/path/to/correct/version/of/ZendOptimizer.so
zend_extension =/usr/local/ioncube/ioncube_loader_lin_5.1.so
?

What was the purpose of the TS and ZendExtensionManager .so's? Anybody know?

Faris.

Re: Zend Optimizer 3.3.9

Posted: Tue Feb 02, 2010 5:51 am
by BruceLee
After some research the *_ts files are used in TSRM (Thread Safe Resource Management) abstraction layer, sometimes referred to as ZTS (Zend Thread Safety).
Due to the article http://kb.zend.com/index.php?View=entry&EntryID=424
of how to install ZEND manually I think the _ts files are not needed under LINUX anymore because a non-thread safe based mode is only available in older versions.

Global Values
Frequently, an extension will need to track a value through a particular request, keeping that value independent from other requests which may be occurring at the same time. In a non-threaded SAPI that might be simple: just declare a global variable in the source file and access it as needed. The trouble is, since PHP is designed to run on threaded web servers (such as Apache 2 and IIS), it needs to keep the global values used by one thread separate from the global values used by another. PHP greatly simplifies this by using the TSRM (Thread Safe Resource Management) abstraction layer, sometimes referred to as ZTS (Zend Thread Safety).

Re: Zend Optimizer 3.3.9

Posted: Tue Feb 02, 2010 8:46 am
by scott
and ZTS was merged into core PHP in 5.2.11 I think (package name php-zts), so that would explain why it was deprecated. Thanks for the follow up on that, I didn't know what was going on there either

Re: Zend Optimizer 3.3.9

Posted: Tue Feb 02, 2010 8:47 am
by faris
Thanks BruceLee!

Faris.

Re: Zend Optimizer 3.3.9

Posted: Tue Feb 02, 2010 12:31 pm
by BruceLee
Your're welcome! Happy, that I can help :)