Opcodes生成器

488 查看

查看生成的Opcode,vld扩展下载地址 http://pecl.php.net/package/vld

rz
tar zxvf vld-0.13.0.tgz

cd vld-0.13.0
/usr/local/webserver/php/bin/phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config
make
make install
vim /etc/php.ini (add extension="/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20100525/vld.so" )
php-fpm reload
php test.php | grep vld(查看phpinfo())
php -dvld.active=1 test1.php