summaryrefslogtreecommitdiff
path: root/main
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant continue in for loopsRijnard van Tonder2018-11-201-2/+1
|
* Merge branch 'PHP-7.3'Anatol Belski2018-11-171-2/+1
|\ | | | | | | | | * PHP-7.3: Simplify assignment on 64-bit
| * Simplify assignment on 64-bitAnatol Belski2018-11-171-2/+1
| |
| * Future-proof email addressesZeev Suraski2018-11-0117-23/+23
| |
* | Future-proof email addresses...Zeev Suraski2018-11-0117-23/+23
| |
* | Merge branch 'PHP-7.3'Anatol Belski2018-10-301-5/+6
|\ \ | |/ | | | | | | | | * PHP-7.3: Fix error condition Fixed bug #77081 ftruncate() changes seek pointer in c mode
| * Fix error conditionAnatol Belski2018-10-301-2/+2
| |
| * Fixed bug #77081 ftruncate() changes seek pointer in c modeAnatol Belski2018-10-301-3/+4
| |
* | Execute zend_post_startup() with module_initialized flag set.Dmitry Stogov2018-10-291-2/+2
| |
* | Improved shared interned strings handling. The previous implementation ↵Dmitry Stogov2018-10-251-0/+7
| | | | | | | | worked incorrectly in ZTS build. It changed strings only in function/class tables of one thread. Now all threads gets the same shared interned strings. Also, on shutdown, we don't try to replace SHM interned strings back to process strings, but delay dettachment of SHM instead.
* | Merge branch 'PHP-7.3'Dmitry Stogov2018-10-242-2/+3
|\ \ | |/ | | | | | | * PHP-7.3: Make php_plain_files_wrapper to be writable (workaround for swoole)
| * Make php_plain_files_wrapper to be writable (workaround for swoole)Dmitry Stogov2018-10-242-2/+3
| |
| * Sync leading and final newlines in source code filesPeter Kokot2018-10-142-3/+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
* | Sync leading and final newlines in source code filesPeter Kokot2018-10-142-3/+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
* | Remove HAVE_STRING_HPeter Kokot2018-09-182-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The C89 standard and later defines the `<string.h>` header as part of the standard headers [1] and on current systems it is always present. Code included also `<strings.h>` header as an alterinative in some files. This kind of check was relevant on some older systems where the `<strings.h>` file included definitions for the C89 compliant `<string.h>`. Today such alternative check is not required anymore. The `<strings.h>` file is part of the POSIX definition these days. Also Autoconf suggests doing this and relying on C89 or above [2] and [3]. This patch also cleans few unused `<strings.h>` inclusions in the libmbfl. [1]: https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2]: http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 [3]: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
* | Fix localized error messages and memory leaksAnatol Belski2018-09-173-49/+18
| | | | | | | | | | | | | | | | | | | | | | The FormatMessage API needs to LocalFree the delivered error messages. In cases where messages are delivered in non ASCII compatible encoding, the messages might be unreadable. This aligns the error message encoding with the encoding settings in PHP, the focus is UTF-8 as default. Initialize error buffer Avoid code duplication
* | Remove HAVE_STDLIB_HPeter Kokot2018-09-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | The C89 and later standard defines the `<stdlib.h>` header as part of the standard headers [1] and on current systems it is always present and the `HAVE_STDLIB_H` symbol can be removed. Also Autoconf suggests doing this and relying on C89 or above [2] and [3]. [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4 [3] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html
* | Remove HAVE_SYS_VARARGS_HPeter Kokot2018-09-161-6/+1
| | | | | | | | | | | | | | | | | | | | | | Outdated systems used to provide the `<varargs.h>` and in case of PHP `<sys/varargs.h>`. [1] Current systems have `<stdarg.h>` which is also a C89 standard header and systems have it always present. [2] [1] https://en.wikipedia.org/wiki/Stdarg.h#varargs.h [2] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
* | Remove HAVE_ASSERT_HPeter Kokot2018-09-092-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `<assert.h>` header file is part of the standard C89 headers [1] and on older systems there needed to be also a manual check if header is present. Since PHP requires at least C89 manual check and the `HAVE_ASSERT_H` symbol defined by Autoconf in configure.ac can be both removed [2]. This patch also removes unused <assert.h> includes where c files don't use the `assert()` macro. Refs: [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.2 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
* | Report mem leaks to stderr if no Win debugger is presentChristoph M. Becker2018-09-081-3/+15
| | | | | | | | | | | | | | Formerly, we sent output regarding memory leaks always to the debugger on Windows, but this appears to be not useful especially for the PHPTs, which usually are not run under a debugger, and so important info will not be available there.
* | Remove HAVE_STDDEF_HPeter Kokot2018-09-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `<stddef.h>` header file is part of the standard C89 headers [1] and on current systems there is no need for a manual check if header is present. Since PHP requires at least C89 the `HAVE_STDDEF_H` symbol isn't defined by Autoconf anywhere else anymore [2] and accross the PHP source code the header is included unconditionally already. This patch syncs this also for the bundled libmbfl which is maintaned as a fork in php-src. Refs: [1] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 [2] https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/headers.m4
* | Remove AC_HEADER_DIRENTPeter Kokot2018-09-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autoconf 2.59d (released in 2006) [1] started promoting several macros as not relevant for newer systems anymore, including the `AC_HEADER_DIRENT`. This macro checks which header defines the `DIR` type. If `<dirent.h>` is available it defines the `HAVE_DIRENT_H` symbol. Since the `<dirent.h>` header is already checked in the `configure.ac`, this check is not needed anymore. This macro also additionally checks for SCO Xenix (discontinued, latest release 1989) dir and x libraries. [2] Commit 6ed790685f9ddae11834f36b0ba4fea58afc805a introduced also `<sys/dir.h>`. This header exists from times of UNIX System V and provided definition of DIR type on these systems such as 4.3BSD. Today `<sys/dir.h>` is kept for backwards compatibility and includes the `<dirent.h>` on current systems. With `dirent.h>` present this include is no longer required. Refs: [1] http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS [2] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html Remove unused dirent.h includes
* | Merge branch 'PHP-7.3'Joe Watkins2018-09-041-0/+3
|\ \ | |/ | | | | | | * PHP-7.3: Fix bug #74764 and add a test case
| * Merge branch 'PHP-7.2' into PHP-7.3Joe Watkins2018-09-041-0/+3
| |\ | | | | | | | | | | | | * PHP-7.2: Fix bug #74764 and add a test case
| | * Merge branch 'PHP-7.1' into PHP-7.2Joe Watkins2018-09-041-0/+3
| | |\ | | | | | | | | | | | | | | | | * PHP-7.1: Fix bug #74764 and add a test case
| | | * Fix bug #74764 and add a test caseVille Hukkamaki2018-09-041-0/+3
| | | |
| | | * bump versionJoe Watkins2018-07-311-3/+3
| | | |
| | | * bump versionsJoe Watkins2018-06-071-3/+3
| | | |
| | | * bump versionsJoe Watkins2018-04-111-3/+3
| | | |
| | | * bump versionsJoe Watkins2018-03-141-3/+3
| | | |
| | * | bump to 7.2.11-devRemi Collet2018-08-281-3/+3
| | | |
| | * | bump to 7.2.9-devRemi Collet2018-07-031-3/+3
| | | |
| | * | Fix versions, as 7.2.6RC is already outAnatol Belski2018-05-191-3/+3
| | | |
| | * | next is 7.2.6Remi Collet2018-04-111-3/+3
| | | |
* | | | Merge branch 'PHP-7.3'Anatol Belski2018-08-281-0/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.3: Fixed bug #76803 ftruncate changes file pointer
| * | | Fixed bug #76803 ftruncate changes file pointerAnatol Belski2018-08-281-0/+9
| | | |
* | | | Replace HAVE_ST_BLOCKS with HAVE_STRUCT_STAT_ST_BLOCKSPeter Kokot2018-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Autoconf 2.50+ macro AC_STRUCT_ST_BLOCKS defines the new HAVE_STRUCT_STAT_ST_BLOCKS symbol and has deprecated the previous HAVE_ST_BLOCKS. PHP 5.3 required Autoconf 2.13 (released in 1999) or newer, since PHP 5.4 the autoconf 2.59 (released in 2003) or newer was required, and since PHP 7.2, autoconf 2.64 (released in 2008) or newer is required.
* | | | Fix some misspellingsGabriel Caruso2018-08-124-4/+4
| | | |
* | | | Prepare for PHP 7.4Christoph M. Becker2018-07-311-3/+3
|/ / /
* | | Update API version numbersChristoph M. Becker2018-07-311-1/+1
| | | | | | | | | | | | These are supposed to be final now for PHP 7.3.
* | | Removed useless IS_UNDEF checksDmitry Stogov2018-07-311-2/+2
| | |
* | | Replace obsolete AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEVPeter Kokot2018-07-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autoconf 2.50 released in 2001 has made several macros obsolete. Instead of the AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV the new AC_CHECK_MEMBERS should be used. When checking for the presence of stat struct members st_blkzize and st_rdev the new AC_CHECK_MEMBERS macro defines new constants HAVE_STRUCT_STAT_ST_BLKSIZE and HAVE_STRUCT_STAT_ST_RDEV. Old constants HAVE_ST_BLKSIZE and HAVE_ST_RDEV need to be replaced respectively in PHP code (this patch) and in PHP extenstions if they use them. PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require 2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which are all greater than above mentioned 2.50 version.
* | | Fix typos in code commentsPeter Kokot2018-07-252-2/+2
| | |
* | | Remove unused Git attributes identPeter Kokot2018-07-2567-135/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* | | Rename none syslog.filter to all and update ini descriptionJakub Zelenka2018-07-223-5/+5
| | |
* | | Add syslog.filter INI for filtering syslog messagesPhilip Prindeville2018-07-224-2/+44
| | | | | | | | | | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* | | Fix #33502: Some nullary functions don't check the number of argumentsChristoph M. Becker2018-07-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We add the missing zend_parse_parameters_none() checks for: * output_reset_rewrite_vars() * func_num_args() * gc_status() * gc_disable() * gc_enable() * gc_enabled() * gc_collect_cycles() * gc_mem_caches() * zend_version()
* | | Fixed bug #76136 (stream_socket_get_name enclosed IPv6 in brackets)seliver2018-07-071-1/+1
| | | | | | | | | | | | | | | | | | The IPv6 IP of a socket is provided by inet_ntop() as a string, but this function doesn't enclose the IP in brackets. This patch adds them in the php_network_populate_name_from_sockaddr() function.
* | | Use zval_ptr_dtor() instead of zval_dtor() in internal functions that ↵Dmitry Stogov2018-07-051-1/+1
| | | | | | | | | | | | destroy new created object (This is safer and produces less code)
* | | Fixed bug #62596 add getallheaders (apache_request_headers) missing function ↵Remi Collet2018-07-052-0/+51
| | | | | | | | | | | | in FPM add sapi_add_request_header in public API (was add_request_header) fix arginfo for fastcgi_finish_request fucntion