Files
nginx-unit/test/php/open/index.php
Tiago Natel de Moura 80763b3e64 Tests: chdir() and open() for PHP module.
These tests ensure optimizations in the chdir calls don't break
SAPI semantics.
2020-03-03 18:53:26 +00:00

8 lines
104 B
PHP

<?php
if (isset($_GET['chdir'])) {
chdir($_GET['chdir']);
}
echo file_get_contents('test.txt');
?>