Commit Graph

14 Commits

Author SHA1 Message Date
Andrei Zeliankou
9bd6baefae Tests: fixed opcache detection.
opcache_get_status() returns array, so square brackets
should be used to access "opcache_enabled" value.
2020-06-26 04:23:47 +01:00
Andrei Zeliankou
82471c1dd3 Tests: added tests for "targets" option. 2020-05-15 04:21:25 +01:00
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
Tiago Natel de Moura
117a4f11b9 Tests: check for php extension. 2020-01-23 11:57:15 +00:00
Andrey Zelenkov
4153fad89d Tests: added PHP tests with "script" and "index" options. 2019-07-17 16:50:24 +03:00
Andrey Zelenkov
4ea7d71405 Tests: added PATH_INFO variable test. 2019-07-08 19:23:33 +03:00
Valentin Bartenev
924165c90b PHP: improved response status code handling.
There's no reason to parse "http_status_line"; the PHP interpreter already
does this.  If the line contains a valid status code, it's assigned to
"http_response_code".

This also fixes invalid status line handling, where the nxt_int_parse()
function returned -1; it was cast to unsigned, yielding response code 65535.
2019-07-05 18:42:30 +03:00
Andrey Zelenkov
ae36276cfc Tests: made tests compatible with PHP 5.3. 2019-03-01 18:58:16 +03:00
Andrey Zelenkov
38ea191fbb Tests: fixed PHP "disable_functions" and "disable_classes" tests. 2019-02-28 21:18:33 +03:00
Andrey Zelenkov
f9a3328a25 Tests: more QUERY_STRING tests. 2018-12-24 20:35:18 +03:00
Andrey Zelenkov
37cd6d23b6 Tests: PHP directives "disable_classes" and "disable_functions". 2018-11-28 03:14:38 +03:00
Andrey Zelenkov
96a4f9f032 Tests: more php.ini options tests. 2018-07-11 19:35:46 +03:00
Andrey Zelenkov
2b39ed5dfb Tests: added tests for "precision" option in php.ini. 2018-06-07 21:13:55 +03:00
Andrey Zelenkov
3b7238996a Tests: initial PHP application tests. 2018-05-22 20:20:14 +03:00