From 80763b3e64cfeae358c521fa563cc9eaa48f4ea2 Mon Sep 17 00:00:00 2001 From: Tiago Natel de Moura Date: Tue, 3 Mar 2020 18:53:26 +0000 Subject: Tests: chdir() and open() for PHP module. These tests ensure optimizations in the chdir calls don't break SAPI semantics. --- test/php/cwd/index.php | 19 +++++++++++++++++++ test/php/cwd/subdir/index.php | 1 + test/php/open/index.php | 7 +++++++ test/php/open/test.txt | 1 + 4 files changed, 28 insertions(+) create mode 100644 test/php/cwd/index.php create mode 100644 test/php/cwd/subdir/index.php create mode 100644 test/php/open/index.php create mode 100644 test/php/open/test.txt (limited to 'test/php') 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 @@ +opcache_enabled; +} + +header('X-OPcache: ' . $opcache); + +print(getcwd()); +?> diff --git a/test/php/cwd/subdir/index.php b/test/php/cwd/subdir/index.php new file mode 100644 index 00000000..597bcac4 --- /dev/null +++ b/test/php/cwd/subdir/index.php @@ -0,0 +1 @@ + diff --git a/test/php/open/index.php b/test/php/open/index.php new file mode 100644 index 00000000..a5bebc54 --- /dev/null +++ b/test/php/open/index.php @@ -0,0 +1,7 @@ + diff --git a/test/php/open/test.txt b/test/php/open/test.txt new file mode 100644 index 00000000..30d74d25 --- /dev/null +++ b/test/php/open/test.txt @@ -0,0 +1 @@ +test \ No newline at end of file -- cgit