First download the latest version of the vld extension:
~/public_html/php-5.3.13/ext> wget /get/vld-0.11.
~/public_html/php-5.3.13/ext> tar zxvf vld-0.11.
~/public_html/php-5.3.13/ext> cd vld-0.11.2/
Next, compile and install the vld extension:
~/public_html/php-5.3.13/ext/vld-0.11.2> phpize
~/public_html/php-5.3.13/ext/vld-0.11.2> ./configure --with-php-config=/usr/local/services/php/bin/php-config --enable-vld
~/public_html/php-5.3.13/ext/vld-0.11.2> make
~/public_html/php-5.3.13/ext/vld-0.11.2> sudo make install
Installing shared extensions: /usr/local/services/php/lib/php/extensions/no-debug-non-zts-20090626/
Finally, copy the generated one to the extension_dir directory:
~/public_html/php-5.3.13/ext/vld-0.11.2> cd /usr/local/services/php/lib/php/extensions/no-debug-non-zts-20090626/
/usr/local/services/php/lib/php/extensions/no-debug-non-zts-20090626> sudo cp /usr/local/services/php/extensions/
Then modify the file and add the following configuration:
extension=
Next create the file:
<?php
$a = "hello world";
echo $a . PHP_EOL;
Use cli to execute and view the generated opcode:
~/public_html> php -=1
Finding entry points
Branch analysis from position: 0
Return found
filename: /home/zhanhailiang/public_html/
function name: (null)
number of ops: 4
compiled vars: !0 = $a
line # * op fetch ext return operands
---------------------------------------------------------------------------------
3 0 > ASSIGN !0, 'hello+world'
5 1 CONCAT ~1 !0, '%0A'
2 ECHO ~1
6 3 > RETURN 1
branch: # 0; line: 3- 6; sop: 0; eop: 3
path #1: 0,
hello world
Copy the codeThe code is as follows:
~/public_html/php-5.3.13/ext> wget /get/vld-0.11.
~/public_html/php-5.3.13/ext> tar zxvf vld-0.11.
~/public_html/php-5.3.13/ext> cd vld-0.11.2/
Next, compile and install the vld extension:
Copy the codeThe code is as follows:
~/public_html/php-5.3.13/ext/vld-0.11.2> phpize
~/public_html/php-5.3.13/ext/vld-0.11.2> ./configure --with-php-config=/usr/local/services/php/bin/php-config --enable-vld
~/public_html/php-5.3.13/ext/vld-0.11.2> make
~/public_html/php-5.3.13/ext/vld-0.11.2> sudo make install
Installing shared extensions: /usr/local/services/php/lib/php/extensions/no-debug-non-zts-20090626/
Finally, copy the generated one to the extension_dir directory:
Copy the codeThe code is as follows:
~/public_html/php-5.3.13/ext/vld-0.11.2> cd /usr/local/services/php/lib/php/extensions/no-debug-non-zts-20090626/
/usr/local/services/php/lib/php/extensions/no-debug-non-zts-20090626> sudo cp /usr/local/services/php/extensions/
Then modify the file and add the following configuration:
Copy the codeThe code is as follows:
extension=
Next create the file:
Copy the codeThe code is as follows:
<?php
$a = "hello world";
echo $a . PHP_EOL;
Use cli to execute and view the generated opcode:
Copy the codeThe code is as follows:
~/public_html> php -=1
Finding entry points
Branch analysis from position: 0
Return found
filename: /home/zhanhailiang/public_html/
function name: (null)
number of ops: 4
compiled vars: !0 = $a
line # * op fetch ext return operands
---------------------------------------------------------------------------------
3 0 > ASSIGN !0, 'hello+world'
5 1 CONCAT ~1 !0, '%0A'
2 ECHO ~1
6 3 > RETURN 1
branch: # 0; line: 3- 6; sop: 0; eop: 3
path #1: 0,
hello world