Merge pull request #970 from nihal95/master

Adds pragma version directive for php5 and php7.  Fixes #360.
This commit is contained in:
Olly Betts 2017-05-16 17:47:35 +12:00 • committed by GitHub
commit 9a0180c56c
12 changed files with 77 additions and 7 deletions

View file

@ -820,6 +820,15 @@ Results in the following in "example.php"
echo "example.php execution\n";
</pre></div>
<p>
The <b>version</b> pragma can be used to add version to generated PHP extension module. The version is inserted in the zend_module_entry block.
</p>
<div class="code"><pre>
%module example
%pragma(php) version="1.5"
</pre></div>
<p>
The <b>include</b> pragma is a short cut to add include statements to
the example.php file.