From 3ccc904b066d669ab5a901bc74b0f08fee372c83 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 9 May 2019 07:35:24 +0100 Subject: [PATCH] Fix php pragmas example include path Was not working for out of source builds --- Examples/php/pragmas/example.i | 4 ++-- Examples/php/pragmas/include.php | 2 +- Examples/php/pragmas/runme.php | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Examples/php/pragmas/example.i b/Examples/php/pragmas/example.i index b72828b0e..ea9590b6f 100644 --- a/Examples/php/pragmas/example.i +++ b/Examples/php/pragmas/example.i @@ -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" diff --git a/Examples/php/pragmas/include.php b/Examples/php/pragmas/include.php index e19880a06..11d985d66 100644 --- a/Examples/php/pragmas/include.php +++ b/Examples/php/pragmas/include.php @@ -1,7 +1,7 @@ diff --git a/Examples/php/pragmas/runme.php b/Examples/php/pragmas/runme.php index b99cf37a4..7b2c179cb 100644 --- a/Examples/php/pragmas/runme.php +++ b/Examples/php/pragmas/runme.php @@ -1,6 +1,9 @@ getVersion()); +echo "Version - " . ((new ReflectionExtension('example'))->getVersion()) . "\n"; ?>