Fix php pragmas example include path
Was not working for out of source builds
This commit is contained in:
parent
f06330e720
commit
3ccc904b06
3 changed files with 7 additions and 4 deletions
|
|
@ -21,11 +21,11 @@
|
|||
zend_printf("This was %%rshutdown\n");
|
||||
}
|
||||
|
||||
%pragma(php) include="./include.php";
|
||||
%pragma(php) include="include.php";
|
||||
|
||||
%pragma(php) code="
|
||||
# This code is inserted into example.php
|
||||
echo \"this was php code\\n\";
|
||||
echo \"This was php code\\n\";
|
||||
"
|
||||
%pragma(php) version="1.5"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
# This code is inserted into example.php
|
||||
echo "this is include.php\n";
|
||||
echo "This is include.php\n";
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue