summaryrefslogtreecommitdiff
path: root/sapi/apache2handler
Commit message (Collapse)AuthorAgeFilesLines
* Change Zend Stream API to use zend_string* instead of char*.Dmitry Stogov2021-03-161-0/+2
| | | | | This allows to eliminate re-calculation of string lenght and hash value. See the detailed list of changes in UPGRADING.INTERNALS.
* Improve class entry generationMáté Kocsis2021-02-161-1/+0
| | | | Related to GH-6701
* Enable class entry generation for sapi extensionsMáté Kocsis2021-02-142-2/+3
|
* Replace zend_bool uses with boolNikita Popov2021-01-153-6/+6
| | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* Fix UNKNOWN default value of apache_note()Máté Kocsis2020-09-193-4/+4
| | | | Closes GH-6167
* Remove proto comments from C filesMax Semenik2020-07-061-16/+8
| | | | Closes GH-5758
* Fixed bug #79737 (Building embed as static fails during install step).Dmitry Stogov2020-06-291-0/+3
|
* 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.
* | | Include stub hash in generated arginfo filesNikita Popov2020-06-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Constify char * arguments of APIstwosee2020-06-081-3/+3
| | | | | | | | | | | | Closes GH-5676.
* | | Fix MSVC level 1 (severe) warningsChristoph M. Becker2020-06-054-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We fix (hopefully) all instances of: * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4005> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4024> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4028> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4047> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4087> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4090> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4273> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4312> `zend_llist_add_element()` and `zend_llist_prepend_element()` now explicitly expect a *const* pointer. We use the macro `ZEND_VOIDP()` instead of a `(void*)` cast to suppress C4090; this should prevent accidential removal of the cast by clarifying the intention, and makes it easier to remove the casts if the issue[1] will be resolved sometime. [1] <https://developercommunity.visualstudio.com/content/problem/390711/c-compiler-incorrect-propagation-of-const-qualifie.html>
* | | Implement #47074: phpinfo() reports "On" as 1 for the some extensionsChristoph M. Becker2020-06-041-3/+3
| | | | | | | | | | | | What is modified as boolean, should also be displayed as boolean.
* | | Add stubs for some SAPIsMáté Kocsis2020-05-143-15/+30
| | | | | | | | | | | | | | | For apache2handler, fpm, litespeed, phpdbg, specifically. Partially implements GH-5295
* | | Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-2/+2
| | | | | | | | | | | | | | | | | | | | | Closes GH-5353. From now on, PHP will have reflection information about default values of parameters of internal functions. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* | | Use RETURN_THROWS() during ZPP in main, sapi, win32, and ZendMáté Kocsis2019-12-301-7/+7
| | |
* | | Convert apache2handler arginfo to php stubsCraig Duncan2019-11-183-48/+69
| | |
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-255-10/+0
| | | | | | | | | | | | Closes GH-4732.
* | | Merge branch 'PHP-7.4'Nikita Popov2019-07-161-5/+1
|\ \ \ | |/ /
| * | Introduce zend_stream_init_filename()Nikita Popov2019-07-161-5/+1
| | | | | | | | | | | | Avoid more ad-hoc initialization of zend_file_handle structures.
* | | Merge branch 'PHP-7.4'Peter Kokot2019-07-071-6/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Remove some more Apache 1 left overs
| * | Remove some more Apache 1 left oversPeter Kokot2019-07-071-6/+4
| | | | | | | | | | | | | | | - warning in configure.ac is relevant for the sapi/apache - errors output redirected to /dev/null when checking Apache version
* | | Merge branch 'PHP-7.4'Peter Kokot2019-06-091-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | * PHP-7.4: Extend wildcard files section in EditorConfig [ci skip] Simplify LiteSpeed SAPI module version Use PHP_VERSION for zend modules
| * | Use PHP_VERSION for zend modulesPeter Kokot2019-06-091-1/+1
| | | | | | | | | | | | Closes #4147
* | | Merge branch 'PHP-7.4'Peter Kokot2019-05-121-8/+5
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Normalize comments in *nix build system m4 files
| * | Normalize comments in *nix build system m4 filesPeter Kokot2019-05-121-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Normalization include: - Use dnl for everything that can be ommitted when configure is built in favor of the shell comment character # which is visible in the output. - Line length normalized to 80 columns - Dots for most of the one line sentences - Macro definitions include similar pattern header comments now
* | | Merge branch 'PHP-7.4'Peter Kokot2019-04-281-75/+0
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: [ci skip] Remove outdated and redundant Apache README
| * | [ci skip] Remove outdated and redundant Apache READMEPeter Kokot2019-04-281-75/+0
| | | | | | | | | | | | | | | PHP manual includes more information and a bit more updated than this README.
* | | Merge branch 'PHP-7.4'Dmitry Stogov2019-03-141-2/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Implemented a faster way to access predefined TSRM resources - CG(), EG(), etc.
| * | Implemented a faster way to access predefined TSRM resources - CG(), EG(), etc.Dmitry Stogov2019-03-141-2/+1
| | |
* | | Merge branch 'PHP-7.4'Dmitry Stogov2019-03-121-0/+4
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.c
| * | Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.cDmitry Stogov2019-03-121-0/+4
| | |
* | | Merge branch 'PHP-7.4'Peter Kokot2019-03-071-3/+6
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Add AS_HELP_STRING to *nix build configure options
| * | Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | The Autoconf's default AS_HELP_STRING macro can properly format help strings [1] so watching out if columns are aligned manually is not anymore. [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-02-221-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #77648: BOM in sapi/apache2handler/php_functions.c
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-02-221-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #77648: BOM in sapi/apache2handler/php_functions.c
| | * Fix #77648: BOM in sapi/apache2handler/php_functions.cChristoph M. Becker2019-02-221-1/+1
| | |
| | * Sync leading and final newlines in source code filesPeter Kokot2018-10-142-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| | * Trim trailing whitespace in source code filesPeter Kokot2018-10-131-11/+11
| | |
* | | Remove major version from apache moduleNikita Popov2019-02-056-16/+16
|/ /
* | Remove local variablesPeter Kokot2019-02-035-40/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | Remove yearly range from copyright noticeZeev Suraski2019-01-305-5/+5
| |
* | Stop Apache if PHP wasn't started successful.Dmitry Stogov2018-10-291-1/+3
| |
* | Sync leading and final newlines in source code filesPeter Kokot2018-10-142-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | Trim trailing whitespace in source code filesPeter Kokot2018-10-131-11/+11
|/
* Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2018-09-301-1/+8
|\
| * Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-09-301-1/+8
| |\
| | * Fixed bug #75479Nikita Popov2018-09-301-1/+8
| | | | | | | | | | | | Wrap the zend_signal_init() call, so the hook arguments line up.
* | | Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2018-09-091-0/+1
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.2: Update NEWS Fix for bug #76582