David CARLIER
cc2bf11951
zend: introducing ZEND_ELEMENT_COUNT for struct's dynamic arrays. ( #12650 )
...
zend: introducing ZEND_ELEMENT_COUNT for struct's dynamic and flexible arrays.
It is mostly for ubsan and helping array bound checking.
2023-11-13 12:42:45 +00:00
Niels Dossche
299a234eb7
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-12621: browscap segmentation fault when configured in the vhost
2023-11-11 18:36:41 +01:00
Niels Dossche
1fb73463d3
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-12621: browscap segmentation fault when configured in the vhost
2023-11-11 18:36:32 +01:00
Niels Dossche
7353c7ce17
Fix GH-12621: browscap segmentation fault when configured in the vhost
...
The temporary HashTable has a destructor that releases the string held
by the entry's value. However, browscap_intern_str(_ci) only incremented
the refcount for the reference created by the return value. As the
HashTable is only used during parsing, we don't need to manage the
reference count of the value anyway, so get rid of the destructor.
This is triggerable in two cases:
- When using php_admin_value to set the ini at the activation stage
- When running out of space for the opcache-interned strings
Closes GH-12634.
2023-11-11 18:35:57 +01:00
Jakub Zelenka
311cae03e7
Merge branch 'PHP-8.3'
2023-11-10 09:46:25 +00:00
Jakub Zelenka
d02a8f4e87
Separate setting of SO_KEEPALIVE in FPM tests
...
Closes GH-12640
2023-11-10 09:45:19 +00:00
Peter Kokot
d0056d63da
[skip ci] Use GitHub issue tracker link for reporting bugs ( #12612 )
2023-11-06 12:45:12 +00:00
Jakub Zelenka
f288d9c4b0
Merge branch 'PHP-8.3'
2023-11-03 17:18:40 +00:00
Jakub Zelenka
52b13f6ddb
Merge branch 'PHP-8.2' into PHP-8.3
2023-11-03 17:17:52 +00:00
Jakub Zelenka
882cc4f804
Merge branch 'PHP-8.1' into PHP-8.2
2023-11-03 17:17:23 +00:00
Jakub Zelenka
a8c6c6165b
Fix GH-9921: Loading ext in FPM config does not register module handlers
...
Closes GH-12377
2023-11-03 16:53:09 +00:00
Jakub Zelenka
a66c926b68
Merge branch 'PHP-8.3'
2023-11-03 14:08:39 +00:00
Jakub Zelenka
e43438544e
Merge branch 'PHP-8.2' into PHP-8.3
2023-11-03 14:07:36 +00:00
Jakub Zelenka
e3d1beb0f1
Fix bug #76922 : FastCGI terminates conn after FCGI_GET_VALUES
...
Closes GH-12387
2023-11-03 14:06:36 +00:00
Jakub Zelenka
14404ac1fa
Merge branch 'PHP-8.3'
2023-10-14 18:45:31 +01:00
Jakub Zelenka
2913447653
Merge branch 'PHP-8.2' into PHP-8.3
2023-10-14 18:44:26 +01:00
Jakub Zelenka
c776f79578
Merge branch 'PHP-8.1' into PHP-8.2
2023-10-14 18:41:48 +01:00
Jakub Zelenka
0217be4d5b
Fix GH-12232: FPM: segfault dynamically loading extension without opcache
...
Also fixes incorrect assertion in ini init that php_dl is always
temporary.
Closes GH-12277
2023-10-14 18:38:21 +01:00
Peter Kokot
186a07f044
Fix too many arguments in FPM ACL compile check ( #12242 )
...
The AC_COMPILE_IFELSE takes 3 arguments unlike AC_RUN_IFELSE which needs
the 4th argument for cross-compilation.
2023-09-19 18:52:34 +01:00
Christian Clauss
886bf820c9
[skip ci] Fix typos discovered by codespell ( #12228 )
2023-09-18 11:07:17 +01:00
Jakub Zelenka
fe30c5098f
Fix GH-12077: Check lsof functionality in socket on close test
...
Closes GH-12084
2023-08-30 14:28:17 +01:00
Jakub Zelenka
ea87501aee
Fix FPM UDS test for very long name check by extending its length
...
It did not correctly produce error message if run in in a short src path
2023-08-30 12:57:15 +01:00
Jakub Zelenka
99a222cd80
FPM tester FastCGI client transport ( #11764 )
...
This improves FastCGI client by separating transport functions and adding support for more low level socket transport that is useful for debugging in some cases.
In addition to that it introduces an option for delaying of fcgi request writing.
2023-08-26 19:03:59 +01:00
Mikhail Galanin
418cdc0bea
Set CLOEXEC on listened/accepted sockets in the FPM children
...
Closes GH-11708
Co-authored-by: Jakub Zelenka <bukka@php.net >
2023-08-26 15:19:03 +01:00
Joshua Behrens
08b57772b0
Warn when fpm socket was not registered on the expected path
...
This might happen if the UDS length limit is exceeded.
Co-authored-by: Jakub Zelenka <bukka@php.net >
Closes GH-11066
2023-07-15 14:21:58 +01:00
Tim Starling
ea2ee60552
When running FPM tests, pass -n option to php-fpm
...
"make test" was failing for me, because I was running it prior to
install, and there was an old installed version which was incompatible.
The FPM tests were using the installed php.ini which referenced
installed dynamically linked extensions.
So, pass -n to php-fpm.
FPM\Tester::start() has $extensions, $iniEntries and
TEST_FPM_EXTENSION_DIR but they are not actually set by anything. Rather
than rely on the installed php.ini to be correct, it seems safer to pass
-n, and any tests that need specific config can pass $iniEntries.
Closes GH-11373
2023-06-15 18:00:50 +01:00
Jakub Zelenka
1fa5d306d8
Merge branch 'PHP-8.2'
2023-06-15 17:37:35 +01:00
Jakub Zelenka
6877b4f110
Merge branch 'PHP-8.1' into PHP-8.2
2023-06-15 17:37:09 +01:00
Jakub Zelenka
9b18466396
FPM: Add "pcntl" when running another test depending on pcntl
2023-06-15 17:36:00 +01:00
Mikhail Galanin
7ade242e28
sapi/fpm: add "pcntl" when running test depending pcntl_sigprocmask()
...
If "pcntl" is built as a shared module, the extension will not
load automatically when we spawn the FPM
2023-06-15 17:32:02 +01:00
George Peter Banyard
d5ad75108e
More usage of known zend_str instead of C string ( #11381 )
2023-06-08 13:03:29 +01:00
George Peter Banyard
548e0615cd
FPM: refactor fpm_php_get_string_from_table() to better match usage ( #11051 )
...
Pass the key length to improve the existence check for the key
2023-05-20 22:49:41 +01:00
Jakub Zelenka
e5d46b31a1
Merge branch 'PHP-8.2'
2023-05-19 16:31:00 +01:00
Jakub Zelenka
3769505c87
Merge branch 'PHP-8.1' into PHP-8.2
2023-05-19 16:30:36 +01:00
Jakub Zelenka
aa061cd40b
Fix FPM status json encoded value test
...
Closes GH-11276
2023-05-19 16:20:21 +01:00
Ilija Tovilo
8d0345d94e
Merge branch 'PHP-8.2'
...
* PHP-8.2:
[skip ci] Mark frequently failing fpm test as XFAIL
2023-05-17 17:42:46 +02:00
Ilija Tovilo
69d41cc7fc
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[skip ci] Mark frequently failing fpm test as XFAIL
2023-05-17 17:42:39 +02:00
Ilija Tovilo
e31fe111a5
[skip ci] Mark frequently failing fpm test as XFAIL
...
Reported here: https://github.com/php/php-src/pull/11050#issuecomment-1546990346
2023-05-17 17:42:05 +02:00
Jakub Zelenka
03f64b7853
Merge branch 'PHP-8.2'
2023-05-14 12:29:19 +01:00
Jakub Zelenka
1129046482
Merge branch 'PHP-8.1' into PHP-8.2
2023-05-14 12:28:52 +01:00
Jakub Zelenka
4294e8d448
FPM: Fix memory leak for invalid primary script file handle
...
Closes GH-11088
2023-05-14 12:27:38 +01:00
Jakub Zelenka
a225f6ab6b
Merge branch 'PHP-8.2'
2023-05-13 18:54:16 +01:00
Jakub Zelenka
90553af15c
Merge branch 'PHP-8.1' into PHP-8.2
2023-05-13 18:53:35 +01:00
Jakub Zelenka
5e64ead64a
Fix bug #64539 : FPM status - query_string not properly JSON encoded
...
Closes GH-11050
2023-05-13 18:43:30 +01:00
Jakub Zelenka
7034263f6e
Merge branch 'PHP-8.2'
2023-05-13 14:15:17 +01:00
Jakub Zelenka
bda28eb649
Merge branch 'PHP-8.1' into PHP-8.2
2023-05-13 14:14:23 +01:00
Jakub Zelenka
102953735c
Fix GH-10461: Postpone FPM child freeing in event loop
...
This is to prevent after free accessing of the child event that might
happen when child is killed and the message is delivered at that same
time.
Also fixes GH-10889 and properly fixes GH-8517 that was not previously
fixed correctly.
2023-05-13 14:11:42 +01:00
Calvin Buckley
3af5f47ce6
http_response_code should warn if headers were already sent
...
This would previously fail silently. We also return false to indicate the error.
Fixes GH-10742
Closes GH-10744
2023-05-05 15:24:56 +02:00
Michael Voříšek
f89fe830f2
Minor conditions simplify ( #10397 )
2023-04-26 15:12:01 +02:00
Sjon Hortensius
581e729e8d
fpm: remove 2 unneeded newlines from zlog call
2023-04-16 11:39:00 +01:00