One of the optimizations Zend Optimizer does is to change post-incrementing to pre-incrementing, where possible since pre-incrementing is the faster operation of the two. The Zend Optimizer is capable of performing around 20 different optimizations, some of which are quite complex. Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies The part associated with Zend Optimizer will look like this: This program makes use of the Zend Scripting Language Engine: To ensure that Zend Optimizer is properly running, create a phpinfo.php file and open it with your browser. If the versions of Zend Guard and Zend Optimizer are incompatible, the Optimizer will fail to run the encoded files and will display an error message. When you are not sure about the Zend Guard version, always use the latest version of Zend Optimizer. The encoded files must be compiled with a compatible version of Zend Guard. But an application that uses Zend Optimizer can execute scripts another 40% to 100% faster.Īfter PHP 5.3 Zend Optimizer is included in the standard PHP distribution and there are no additional installations needed for it to work. The standard Zend run-time compiler used by PHP is indeed very fast, generating code that is usually 2 to 10 times faster. The Zend Optimizer is a service that runs the files encoded by the Zend Encoder. Zend Optimizer greatly enhances the performance of PHP applications. #ln -s /usr/local/php54/etc/php.ini /etc/php.ini #添加软链接Ĭp /usr/local/php54/etc/ /usr/local/php54/etc/php-fpm.Zend Optimizer is a free application that allows PHP to run files encoded by Zend Guard. configure -prefix=/usr/local/php54 -with-config-file-path=/usr/local/php54/etc -with-mysql=/usr/local/mysql -with-mysqli=shared -with-mysql-sock=/tmp/mysql.sock -with-pdo-mysql=/usr/local/mysql -with-gd -with-png-dir=/usr/local/libpng -with-jpeg-dir=/usr/local/jpeg -with-freetype-dir=/usr/local/freetype -with-xpm-dir=/usr/ -with-vpx-dir=/usr/local/libvpx/ -with-zlib-dir=/usr/local/zlib -with-t1lib=/usr/local/t1lib -with-iconv -enable-libxml -enable-xml -enable-bcmath -enable-shmop -enable-sysvsem -enable-inline-optimization -with-curlwrappers -enable-mbregex -enable-fpm -enable-mbstring -enable-ftp -enable-gd-native-ttf -with-openssl -enable-pcntl -enable-sockets -with-xmlrpc -enable-zip -enable-soap -without-pear -with-gettext -enable-session -with-mcrypt -with-curl -enable-ctype -enable-mysqlndĬp php.ini-production /usr/local/php54/etc/php.ini #复制php配置文件到安装目录 修改为:disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,escapeshellcmd,dll,popen,disk_free_space,checkdnsrr,checkdnsrr,getservbyname,getservbyport,disk_total_space,posix_ctermid,posix_get_last_error,posix_getcwd, posix_getegid,posix_geteuid,posix_getgid, posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid, posix_getppid,posix_getpwnam,posix_getpwuid, posix_getrlimit, posix_getsid,posix_getuid,posix_isatty, posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid, posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname Mv /usr/local/php55/sbin/php-fpm /usr/local/php55/sbin/php55-fpm
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |