summaryrefslogtreecommitdiffhomepage
path: root/test/php
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2019-03-01 18:30:09 +0300
committerAndrei Belov <defan@nginx.com>2019-03-01 18:30:09 +0300
commit3c3720cba7154bc168cbd00c74817626bb53e140 (patch)
treeda1500f7c6bd5e90ecf45299b6f4b19a29d521cd /test/php
parent315a864c27aa27a48c013c4a1ef67a099ffea894 (diff)
parentdf02b03824065389c73213b19736140442cf63bc (diff)
downloadunit-3c3720cba7154bc168cbd00c74817626bb53e140.tar.gz
unit-3c3720cba7154bc168cbd00c74817626bb53e140.tar.bz2
Merged with the default branch.
Diffstat (limited to '')
-rw-r--r--test/php/date_time/index.php3
-rw-r--r--test/php/highlight_file_exec/index.php4
-rw-r--r--test/php/query_string/index.php4
-rw-r--r--test/php/time_exec/index.php4
4 files changed, 10 insertions, 5 deletions
diff --git a/test/php/date_time/index.php b/test/php/date_time/index.php
index 4e06fdf9..42992c3f 100644
--- a/test/php/date_time/index.php
+++ b/test/php/date_time/index.php
@@ -1,4 +1,5 @@
<?php
-$d = new DateTime('2011-01-01T15:03:01.012345Z');
+date_default_timezone_set('Europe/Moscow');
+$d = new DateTime('2011-01-01T15:03:01.012345');
echo $d->format('u');
?>
diff --git a/test/php/highlight_file_exec/index.php b/test/php/highlight_file_exec/index.php
deleted file mode 100644
index adcd5ed8..00000000
--- a/test/php/highlight_file_exec/index.php
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-highlight_file('index.php');
-exec('pwd');
-?>
diff --git a/test/php/query_string/index.php b/test/php/query_string/index.php
new file mode 100644
index 00000000..5691324d
--- /dev/null
+++ b/test/php/query_string/index.php
@@ -0,0 +1,4 @@
+<?php
+header('Content-Length: 0');
+header('Query-String: ' . $_SERVER['QUERY_STRING']);
+?>
diff --git a/test/php/time_exec/index.php b/test/php/time_exec/index.php
new file mode 100644
index 00000000..05d59d28
--- /dev/null
+++ b/test/php/time_exec/index.php
@@ -0,0 +1,4 @@
+<?php
+echo 'time: ' . time();
+echo 'exec: ' . exec('pwd');
+?>