Jakub Zelenka
014b1b3aad
Store zlog stream in each child so it can be reused
...
This change results in using the same buffer for multiple
stdio events which should fix inconsistencies of handling
messages that are not ended with a new line and possibly
very long messages that are split to multiple events.
2018-08-27 14:58:39 +01:00
Jakub Zelenka
f9d9c5ebd9
Fix FPM logging when log pipe is closed
2018-08-05 20:35:40 +01:00
Dmitry Stogov
ad2719cf9c
Fixed test
2018-07-09 12:49:19 +03:00
Jakub Zelenka
3e5afbf0a8
Refactore FPM logging
2018-07-07 13:01:44 +01:00
Jakub Zelenka
f86f3edeef
Migrate fpm_get_status test
2018-07-07 12:48:16 +01:00
Till Backhaus
140def4ac7
Implement fpm_get_status
2018-07-07 12:33:11 +01:00
Remi Collet
0ea4013f10
Fixed bug #62596 add getallheaders (apache_request_headers) missing function in FPM add sapi_add_request_header in public API (was add_request_header) fix arginfo for fastcgi_finish_request fucntion
2018-07-05 06:30:58 +02:00
Nikita Popov
44f4d2be01
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-20 12:30:19 +02:00
Nikita Popov
69dee5c732
Fixed bug #73342
...
Directly listen on socket, instead of duping it to STDIN and
listening on that.
2018-06-20 12:28:15 +02:00
Jakub Zelenka
dd622f9ca9
Port FPM test 023 and 024 to the new FPM testing
2018-06-12 18:09:27 +01:00
Jakub Zelenka
bc58ba750f
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-12 18:03:01 +01:00
Jakub Zelenka
ea592e6b6c
Rewrite FPM tests
2018-06-12 17:59:28 +01:00
Remi Collet
ee84f34344
rename test
2017-09-19 07:26:53 +02:00
Remi Collet
cfc6c4d297
Fixed Bug #75212 php_value acts like php_admin_value
2017-09-18 18:08:51 +02:00
Sara Golemon
d316ba2d65
Remove user=foo from FPM test config
...
This setting has nothing to do with what's being tested,
and on any system without a "foo" user we'll get a spurious error.
2017-05-24 15:07:24 -07:00
Sara Golemon
d8d1c78ed0
Skip FPM tests when running as root (unless requested)
...
FPM must be configured as a user.
Normally it defaults to the current user,
but if that's root it'll fail to startup
unless the --run-as-root option is provided.
Extend that logic into the test runner so that
we don't fail for stupid reasons.
If you're running `make test` as root and you want
FPM tests to run anyway, set TEST_FPM_RUN_AS_ROOT=1
in your environment.
2017-05-24 13:58:18 -07:00
Sara Golemon
b63c45c69e
Try fallback on IPv4 ANYADDR when IPv6 ANYADDR fails
...
https://bugs.php.net/bug.php?id=74166
A host system with no/limited IPv6 support will fail at binding
the IPv6 ANYADDR address (::) as the address family is unsupported.
Deal with this by handling failure to implicitly bind to ::
as a soft failure, falling back to 0.0.0.0.
If binding to :: failed for some other reason (e.g. port in use)
then binding to 0.0.0.0 will likely fail as well, but we'll
get appropriate warnings for that.
2017-03-08 11:02:54 -08:00
Jakub Zelenka
df16579642
Try fpm path for testing in sbin as it is default target
2017-01-29 20:43:58 +00:00
Mitch Hagstrand
fd92b91188
Increase wait time for tests involving sockets to improve Travis relability
...
1. Increased sleep time from 25ms to 50ms
2. Added sleep to shutdown handlers
2017-01-13 06:45:04 +00:00
Remi Collet
eb02876e74
improve FPM tests (mostly for systemd build)
2017-01-08 19:02:50 +00:00
Mitch Hagstrand
3401f553b9
Fixes for session and fpm tests in PHP7.0 branch
...
1. Increased the timeout on sapi/fpm tests to match the cli server
2. Disabled session GC in session_set_save_handler_basic.phpt
3. Fixed GC in save_handler.inc to delete files based on age
2017-01-06 19:55:57 -08:00
Dmitry Stogov
3817a2e6d5
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed test
Updated NEWS
Improvement for bug73297
Simplify ext/standard/tests/http/bug73297.phpt
http_fopen_wrapper.c - bug#73297 Skip past "100 Continue" responses
Add failing test for bug#73297
2016-11-17 15:58:38 +03:00
Dmitry Stogov
c2d6ffb85f
Fixed test
2016-11-17 15:57:40 +03:00
Remi Collet
9622f973a5
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
FPM: add test for CVE-2016-5385
2016-07-22 09:36:36 +02:00
Remi Collet
fb4a6dc0f1
FPM: add test for CVE-2016-5385
2016-07-22 09:35:09 +02:00
Ferenc Kovacs
8f35ee49ee
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
mark frequent intermittent fpm test with XFAIL
2016-04-18 09:04:55 +02:00
Ferenc Kovacs
3a16f511d9
mark frequent intermittent fpm test with XFAIL
2016-04-18 09:04:27 +02:00
Xinchen Hui
d7ff107654
Fixed bug #70540 (sapi/fpm/tests/008.phpt and 016.phpt should be skipped on some platforms)
2015-11-02 16:43:28 +08:00
Xinchen Hui
8dd5e1c2b5
Add test_fpm_conf to skip some tests ranth than mark --xfail--
2015-11-02 16:42:11 +08:00
Xinchen Hui
460e2e6a04
Fixed test in some cases(for more children, needs more time)
2015-05-07 19:25:04 +08:00
Rasmus Lerdorf
50c721a623
These tests all assume that IPV6 is available.
2015-01-09 17:24:48 -08:00
Remi Collet
744ada7d9d
Fix bug #68526 Implement POSIX Access Control List for UDS
...
- add --with-fpm-acl build option which allow to manage ACL
on Unix Domain Socket
- add listen.acl_users pool option
- add listen.acl_groups pool option
Keep old behavior (chmod) if option not used or not supported.
2014-12-10 08:15:21 +01:00
Remi Collet
cb1a297bf4
XFAIL as catch_workers_output = yes seems not reliable
2014-12-01 07:28:49 +01:00
Remi Collet
3a3f67f79b
minor typo in test
2014-11-22 10:29:51 +01:00
Remi Collet
fd5c421a00
add test for global / pool prefix and bug #68478
2014-11-22 10:29:05 +01:00
Remi Collet
1e14f805f9
add test for fastcgi_finish_request()
2014-11-21 11:28:20 +01:00
Remi Collet
5234c2941f
add test for #68391
2014-11-21 07:36:34 +01:00
Remi Collet
6e1e113b91
adapt test for error message introduce in fix for #68463
2014-11-20 15:15:54 +01:00
Remi Collet
7ef559ff80
run a few request in this test
2014-11-20 14:45:17 +01:00
Remi Collet
1939097ede
Fixed #68458 Change pm.start_servers default warning to notice
...
Add another test
014 checks that no "notice" are traced when log_level=warning
015 checks that "notice" are traced when log_level=notice
2014-11-20 08:12:27 +01:00
David Zuelke
a128cbad57
fix test description
2014-11-20 08:11:44 +01:00
David Zuelke
49be4af42b
tests for #895
2014-11-20 08:11:44 +01:00
Remi Collet
f164df0b7b
add test for bug #68381
2014-11-18 17:45:50 +01:00
Remi Collet
ec26d7a80f
simplify fpm tests
2014-11-18 13:11:53 +01:00
Remi Collet
51394dff3f
Add test for bug #68442
...
Add another helper function fpm_display_log
Restore change from c996a989 badly reverted in 8c0cc49
2014-11-18 11:08:49 +01:00
Remi Collet
8c0cc49b9b
Add various tests for FPM
...
- covering recent bugs (68420, 68421, 68423, 68428)
- for UDS
- for ping and status URI
- for multi pool and multi mode
2014-11-18 08:07:45 +01:00
Remi Collet
a740f9e783
Include small MIT FastCGI client library from
...
https://github.com/adoy/PHP-FastCGI-Client
Add run_request function to easily run a FastCGI call,
which is needed for new tests.
2014-11-18 08:01:18 +01:00
Remi Collet
d8868b654e
Add new FPM test for IPv4/IPv6
...
Use 9000+PHP_INT_SIZE as poprt
- to avoid using default 9000
- to allow multipole 32/64 bits simultaneous run
2014-11-17 15:22:04 +01:00
Ferenc Kovacs
200e407b24
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
NEWS entry for previous commit
add IPv6 support to php-fpm
2014-10-03 11:39:09 +02:00
Robin Gloster
15ba757a2b
add IPv6 support to php-fpm
2014-10-03 11:35:27 +02:00