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"; ?>