Tests: chdir() and open() for PHP module.

These tests ensure optimizations in the chdir calls don't break
SAPI semantics.
This commit is contained in:
Tiago Natel de Moura
2020-03-03 18:53:26 +00:00
parent 293b0da520
commit 80763b3e64
6 changed files with 161 additions and 6 deletions

7
test/php/open/index.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
if (isset($_GET['chdir'])) {
chdir($_GET['chdir']);
}
echo file_get_contents('test.txt');
?>