Fix php pragmas example include path

Was not working for out of source builds
This commit is contained in:
William S Fulton 2019-05-09 07:35:24 +01:00
commit 3ccc904b06
3 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,9 @@
<?php
# For finding include.php
set_include_path(realpath(dirname(__FILE__)) . PATH_SEPARATOR . get_include_path());
require "example.php";
echo "Version - " . ((new ReflectionExtension('example'))->getVersion());
echo "Version - " . ((new ReflectionExtension('example'))->getVersion()) . "\n";
?>