summaryrefslogtreecommitdiff
path: root/sapi
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Add many missing closing PHP tags to testsMáté Kocsis2020-08-091-0/+1
| | | | | | | | | | | | Closes GH-5958
* | | Accept zend_object* in zend_update_propertyNikita Popov2020-08-071-3/+2
| | |
* | | Accept zend_object* in zend_get_exception_baseNikita Popov2020-08-071-11/+8
| | |
* | | Accept zend_object in zend_read_propertyNikita Popov2020-08-072-11/+9
| | |
* | | Add more argument types to stubsMáté Kocsis2020-08-071-3/+1
| | | | | | | | | | | | Closes GH-5943
* | | Merge branch 'PHP-7.4'Nikita Popov2020-08-051-1/+6
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.4: Check ps -p availability in process title test Add privilege check in pcntl_unshare test
| * | Check ps -p availability in process title testNikita Popov2020-08-051-1/+6
| | |
* | | FPM: Prevent warning with raising pm.max_children for shared poolJakub Zelenka2020-08-043-13/+5
| | |
* | | XFAIL status-listen FPM testNikita Popov2020-08-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Has frequent intermittent failures with: ERROR: The NOTICE does not match expected message: - PATTERN: /^\[\d\d-\w\w\w-\d{4} \d\d:\d\d:\d\d\] NOTICE: Terminating ...$/ - MESSAGE: [04-Aug-2020 08:15:37] WARNING: [pool unconfined_status] server reached max_children setting (2), consider raising it - EXPECT: 'Terminating ...' - ACTUAL: '2020 08:15:37] WARNING: [pool unconfined_status] server reached max_children setting (2), consider raising it'
* | | FPM: Add pm.status_listen optionJakub Zelenka2020-08-0310-6/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option allows getting status from different endpoint (e.g. port or UDS file) which is useful for getting status when all children are busy with serving long running requests. Internally a new shared pool with ondemand process manager is used. It means that the status requests have reserved resources and should not be blocked by other requests.
* | | Make http stream wrapper advertise HTTP/1.1 by defaultRowan Tommins2020-08-032-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In practice, we always act as an HTTP/1.1 client, for compatibility with servers which ignore protocol version. Sending the version in the request will avoid problems with servers which don't ignore it. HTTP/1.0 can still be forced using a stream context option. Closes GH-5899.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-07-291-2/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Prevent test case from stalling
| * | Prevent test case from stallingChristoph M. Becker2020-07-291-2/+4
| | | | | | | | | | | | | | | | | | | | | If the CTRL-C event can't be sent to the child for whatever reason, the test will never terminate, because `proc_close()` waits for an infinite amount of time. Therefore, we `proc_terminate()` the child instead, after explicitly closing the pipes.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-07-271-2/+11
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #77932: File extensions are case-sensitive
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-07-271-2/+11
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #77932: File extensions are case-sensitive
| | * Fix #77932: File extensions are case-sensitiveChristoph M. Becker2020-07-271-2/+11
| | | | | | | | | | | | | | | | | | The file extension to mime type mapping *must* not depend on the file extension's case for case-insensitive file systems, and *should* not for case-sensitive file systems.
* | | Address some compiler warnings.George Wang2020-07-232-5/+8
| | |
* | | Merge branch 'PHP-7.4'George Wang2020-07-233-14/+234
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.3' into PHP-7.4George Wang2020-07-233-14/+234
| |\ \ | | |/
| | * Merge branch 'PHP-7.2' into PHP-7.3George Wang2020-07-233-14/+234
| | |\
| | | * Security: update to LiteSpeed SAPI v7.7 to address an buffer overflow, and ↵George Wang2020-07-233-14/+234
| | | | | | | | | | | | | | | | some log message tunings.
* | | | Disable JIT for PHPDBGDmitry Stogov2020-07-211-0/+12
| | | |
* | | | Skip upload_2G.phpt if disk_free_space() <= 2GBTyson Andre2020-07-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test failed when the free disk space is close to 2.15GB. I see the file size in the .out file as 0. PHP has to save the full file contents to disk (the path is in `$_FILES`) Related to GH-5283 Closes GH-5873
* | | | Review the usage of apostrophes in error messagesMáté Kocsis2020-07-102-3/+3
| | | | | | | | | | | | | | | | Closes GH-5590
* | | | Add stubs for SAPIsMáté Kocsis2020-07-1011-45/+81
| | | | | | | | | | | | | | | | Closes GH-5295.
* | | | Fix warning in embed sapiNikita Popov2020-07-101-1/+1
| | | |
* | | | Use ZPP string|array union check in PCRE extensionGeorge Peter Banyard2020-07-091-8/+8
| | | |
* | | | Remove no_separation flagNikita Popov2020-07-071-1/+0
| | | |
* | | | Remove proto comments from C filesMax Semenik2020-07-068-114/+61
| | | | | | | | | | | | | | | | Closes GH-5758
* | | | Use zend_string_equals API in a couple placesNikita Popov2020-07-031-1/+1
| | | |
* | | | Extract some common fuzzer codeNikita Popov2020-06-305-53/+45
| | | |
* | | | Add unserializehash fuzzer.Eddie Kohler2020-06-305-0/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Unlike the straight unserialize fuzzer, this runs only on HashContexts, and it does an update and finalize on the contexts it creates. Co-authored-by: Nikita Popov <nikic@php.net>
* | | | Replace EXPECTF when possibleFabien Villepinte2020-06-291-1/+1
| | | | | | | | | | | | | | | | Closes GH-5779
* | | | Make exit() unwind properlyNikita Popov2020-06-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exit() is now internally implemented by throwing an exception, performing a normal stack unwind and a clean shutdown. This ensures that no persistent resource leaks occur. The exception is internal, cannot be caught and does not result in the execution of finally blocks. This may be relaxed in the future. Closes GH-5768.
* | | | Fixed bug #79737 (Building embed as static fails during install step).Dmitry Stogov2020-06-292-0/+6
| | | |
* | | | Simplify and fix php-cgi detectionNikita Popov2020-06-261-14/+11
| | | | | | | | | | | | | | | | Make it work for installed PHP binaries.
* | | | Better leak fix for cgi -s / -wNikita Popov2020-06-261-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | We also need to go through request shutdown. The naming is a bit confusing, but it's fine to go through fastcgi_request_done even if not using fastcgi. Whether we loop or not is checked separately.
* | | | Fix leaks in cgi strip/highlight modeNikita Popov2020-06-251-5/+2
| | | |
* | | | Sort extensions alphabeticallyNikita Popov2020-06-242-847/+851
| | | | | | | | | | | | | | | | This makes it easier to compare mime data from different sources.
* | | | Generate tabs in generate_mime_type_map.phpNikita Popov2020-06-241-7/+15
| | | | | | | | | | | | | | | | | | | | The PHP file is space indented, but we need the C file to be tab indented.
* | | | Merge branch 'PHP-7.4'Nikita Popov2020-06-241-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Fixed bug #79030 Use usec from apache request time
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-06-241-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.3: Fixed bug #79030 Use usec from apache request time
| | * | Fixed bug #79030 Use usec from apache request timeHerbert2562020-06-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Don't unnecessarily truncate to milliseconds. Closes GH-5760.
* | | | Mark phpdbg test as XFAIL on Windows with JIT enabledChristoph M. Becker2020-06-241-0/+6
| | | | | | | | | | | | | | | | The test fails as of commit 8b12ea04ee405f746ca2394672f8372c57fd05b2.
* | | | Include stub hash in generated arginfo filesNikita Popov2020-06-244-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necessary. This ensures that release artifacts will never try to regenerate stubs and thus fetch PHP-Parser, as long as you do not modify any files. Closes GH-5739.
* | | | Remove unnecessary initialization in phpdbg webhelperNikita Popov2020-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | This whole code is very dubious and should possibly be dropped. For now just fix the build warning.
* | | | Merge branch 'PHP-7.4'Nikita Popov2020-06-231-0/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Restore XFAIL on fpm test
| * | | Restore XFAIL on fpm testNikita Popov2020-06-231-0/+2
| | | | | | | | | | | | | | | | Still fails intermittently.
* | | | Fix test wrt. commit 1a2732f9a8b3d62471b360f772b5458f78046f80Christoph M. Becker2020-06-221-1/+1
| | | |
* | | | sapi/fpm/config.m4: add a new --with-fpm-apparmor configure flag.Michael Orlitzky2020-06-211-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing AC_FPM_APPARMOR macro (which is always run when FPM is enabled) checks for the existence of libapparmor, and adds it to $LIBS if found. The result is an "automagic" dependency on libapparmor that depends not only on the user's configuration, but also on the build host's environment. In particular, this can cause problems if the user just happens to have libapparmor installed (for testing or development) when he builds PHP. Later, he may remove libapparmor, not realizing that PHP depends on it. At that point, FPM will cease to work due to the missing library. This commit adds a new configure flag called "--with-fpm-apparmor", defaulting to "no", that enables or disables the feature. The new flag is used to signal the user's intent; whether or not he wants to use AppArmor. If he does, then we still check for the existence and usability of libapparmor; however, it is now an error for the library to be missing when --with-fpm-apparmor is requested. Gentoo-bug: https://bugs.gentoo.org/637402 PHP-bug: https://bugs.php.net/bug.php?id=75519