summaryrefslogblamecommitdiffhomepage
path: root/test/php/cwd/index.php
blob: 24ae3a21837fbc7aca88570ab8b374a65f831589 (plain) (tree)


















                                                          
<?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());
?>