Add documentation and examples for php version pragma.

Pragma version to specify versions for PHP5 and PHP7 extensions.
See issue #360.
This commit is contained in:
Nihal 2017-05-08 12:02:53 +05:30
commit 21108781a7
5 changed files with 13 additions and 0 deletions

View file

@ -27,5 +27,6 @@
# This code is inserted into example.php
echo \"this was php code\\n\";
"
%pragma(php) version="1.5"
%pragma(php) phpinfo="php_info_print_table_start();"

View file

@ -2,4 +2,5 @@
require "example.php";
echo "Version - " . ((new ReflectionExtension('example'))->getVersion());
?>