diff options
author | Valentin Bartenev <vbart@nginx.com> | 2020-10-06 18:12:05 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2020-10-06 18:12:05 +0300 |
commit | 2821b3347c026ae171228146c5ccd0bd7408358f (patch) | |
tree | 9d2ce042131e0ec239f669f35eab971e952a3d40 /test/php/post_variables/index.php | |
parent | 6ec0ff35964c7805712d978625949f72ff5a63bc (diff) | |
download | unit-2821b3347c026ae171228146c5ccd0bd7408358f.tar.gz unit-2821b3347c026ae171228146c5ccd0bd7408358f.tar.bz2 |
PHP: compatibility with 8.0.0 RC1.
This closes #474 PR on GitHub.
Diffstat (limited to 'test/php/post_variables/index.php')
-rw-r--r-- | test/php/post_variables/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/php/post_variables/index.php b/test/php/post_variables/index.php index 5ea17324..8981d54d 100644 --- a/test/php/post_variables/index.php +++ b/test/php/post_variables/index.php @@ -1,6 +1,6 @@ <?php header('Content-Length: 0'); header('X-Var-1: ' . $_POST['var1']); -header('X-Var-2: ' . $_POST['var2'] . isset($_POST['var2'])); -header('X-Var-3: ' . $_POST['var3'] . isset($_POST['var3'])); +header('X-Var-2: ' . (isset($_POST['var2']) ? $_POST['var2'] : 'not set')); +header('X-Var-3: ' . (isset($_POST['var3']) ? $_POST['var3'] : 'not set')); ?> |