Zend Optimizer v3.3.9 적용 패치

PHP를 소스 컴파일 하고 Zend Optimizer v3.3.9를 extension 모듈로 불러와도 아래처럼 적용이 되지 않을때 패치를 적용 해주면 됩니다.

[root@ruo91 ~]# /usr/local/php5/bin/php -v
PHP 5.2.16 (cli) (built: Dec 25 2010 19:04:40)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

패치 파일은 FreeBSD Ports에서 따왔습니다. :D

[root@ruo91 ~]# cd /usr/local/src/php-5.2.16
[root@ruo91 ~]# wget http://mirror.yongbok.net/linux/patch/php-zend-optimizer.patch
[root@ruo91 ~]# patch -p0 < php-zend-optimizer.patch
(Stripping trailing CRs from patch.)
patching file Zend/zend.h
Hunk #1 succeeded at 184 with fuzz 2 (offset 6 lines).
(Stripping trailing CRs from patch.)
patching file Zend/zend_list.c
Hunk #4 succeeded at 349 (offset -1 lines).
(Stripping trailing CRs from patch.)
patching file Zend/zend_list.h

이제 PHP를 재컴파일 하고 붙었나 확인 해보시면 됩니다.

[root@ruo91 ~]# lsb_release -a | grep Description
Description: CentOS release 5.5 (Final)

[root@ruo91 ~]# tail -n 4 /usr/local/php5/php.ini
[Zend]
zend_optimizer.version=3.3.9
zend_extension=/usr/local/php5/ZendOptimizer.so

[root@ruo91 ~]# /usr/local/php5/bin/php -v
PHP 5.2.16 (cli) (built: Dec 25 2010 19:04:40)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

Loading Disqus Comments ...
Loading Facebook Comments ...

No Trackbacks.