diff options
Diffstat (limited to 'test/php/cwd/index.php')
-rw-r--r-- | test/php/cwd/index.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/php/cwd/index.php b/test/php/cwd/index.php new file mode 100644 index 00000000..24ae3a21 --- /dev/null +++ b/test/php/cwd/index.php @@ -0,0 +1,19 @@ +<?php + +if (isset($_GET['chdir']) && $_GET['chdir'] != "") { + if (!chdir($_GET['chdir'])) { + echo "failure to chdir(" . $_GET['chdir'] . ")\n"; + exit; + } +} + +$opcache = -1; + +if (function_exists('opcache_get_status')) { + $opcache = opcache_get_status()->opcache_enabled; +} + +header('X-OPcache: ' . $opcache); + +print(getcwd()); +?> |