aboutsummaryrefslogtreecommitdiff
path: root/Examples/php/pragmas/runme.php
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/php/pragmas/runme.php')
-rw-r--r--Examples/php/pragmas/runme.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Examples/php/pragmas/runme.php b/Examples/php/pragmas/runme.php
index 538548b6f..7b2c179cb 100644
--- a/Examples/php/pragmas/runme.php
+++ b/Examples/php/pragmas/runme.php
@@ -1,5 +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()) . "\n";
?>