summaryrefslogtreecommitdiff
path: root/TSRM
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | Future-proof email addressesZeev Suraski2018-11-012-2/+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
| | * | Trim trailing whitespace in source code filesPeter Kokot2018-10-132-7/+7
| | | |
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-05-291-1/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove unused variable
| * | | Remove unused variableGabriel Caruso2019-05-291-1/+0
| | | |
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-05-122-13/+22
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Normalize comments in *nix build system m4 files
| * | | Normalize comments in *nix build system m4 filesPeter Kokot2019-05-122-20/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-292-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove TSRM configuration header
| * | | Remove TSRM configuration headerPeter Kokot2019-04-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | TSRM configuration header file was once created by separate autoconf build system for TSRM and is with the current code not directly needed like this anymore.
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-04-291-3/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove unused TSRM/readdir.h header
| * | | Remove unused TSRM/readdir.h headerPeter Kokot2019-04-291-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This was once part of TSRM but then got refactored into the windows implementation win32/readdir.h directly. Instead of including such files directly code should use zend_virtual_cwd.h which is already part of the php.h file.
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-04-232-201/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Move Autoconf Archive macros to a common m4 dir
| * | | Move Autoconf Archive macros to a common m4 dirPeter Kokot2019-04-232-202/+0
| | | | | | | | | | | | | | | | | | | | In PHP the build dir is used as a directory for external macros including Autoconf Archive macros.
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-04-231-2/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove sinclude from tsrm.m4
| * | | Remove sinclude from tsrm.m4Peter Kokot2019-04-231-2/+0
| | | | | | | | | | | | | | | | | | | | This was once part of a standalone TSRM build and is not used in current build system anymore.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-04-112-8/+8
|\ \ \ \ | |/ / /
| * | | Make tsrm_env_lock() voidNikita Popov2019-04-112-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | We're not checking the return value and the NTS version of this generates warnings. If we want to handle lock failures, we should do a hard abort inside tsrm_env_lock() itself.
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-04-071-2/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove HAVE_SIGNAL_H
| * | | Remove HAVE_SIGNAL_HPeter Kokot2019-04-071-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `<signal.h>` header file is part of the standard C89 headers [1] and on current systems can be included unconditionally. Since file requires at least C89 or greater, the `HAVE_SIGNAL_H` symbol defined by Autoconf in Zend.m4 [2] can be ommitted and simplifed. The bundled libmagic (file) also ommits the usage of HAVE_SIGNAL_H since 5.35 however current version in PHP is very modified 5.34 version and will be refactored separately. Check for HAVE_SIGNAL_H is therefore still done in the configure.ac. 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
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-04-071-2/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove HAVE_LIMITS_H
| * | | Remove HAVE_LIMITS_HPeter Kokot2019-04-071-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `<limits.h>` header file is part of the standard C89 headers [1] and on current systems can be included unconditionally. Since PHP requires at least C89 or greater, the `HAVE_LIMITS_H` symbol defined by Autoconf in configure.ac [2] can be ommitted and simplifed however due to bundled file library (libmagic) and timelib still using it, the removal there was omitted and done only in Zend.m4 file. Current bundled libraries libtime, oniguruma, and libmagic still include partial `HAVE_LIMITS_H` usage and will be more refactored when this is possible. 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
* | | | Added JIT compiler for x86 and x86_64Dmitry Stogov2019-04-012-0/+21
| | | |
* | | | Merge branch 'PHP-7.4'Joe Watkins2019-03-292-1/+22
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: tsrm environment lock
| * | | tsrm environment lockJoe Watkins2019-03-292-1/+22
| | | |
* | | | TSRM cleanup for PHP8Joe Watkins2019-03-253-256/+21
|/ / /
* | | Implemented a faster way to access predefined TSRM resources - CG(), EG(), etc.Dmitry Stogov2019-03-142-27/+136
| | |
* | | Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.cDmitry Stogov2019-03-121-2/+2
| | |
* | | Clean *nix build systemPeter Kokot2019-03-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | - remove some outdated and not used macro calls - remove some unused variables - Remove not needed comment from tokenizer config.m4 - Remove not needed comment - remove not needed local variables for editors and syntax highlighting
* | | Add AS_HELP_STRING to *nix build configure optionsPeter Kokot2019-03-071-21/+17
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Remove AC_PROG_CC_C_OPeter Kokot2019-03-031-1/+0
| | | | | | | | | | | | | | | | | | The AC_PROG_CC_C_O macro checks if compiler can use both -c and -o options together and if not it defines the NO_MINUS_C_MINUS_O symbol. It is not used in current codebase and therefore removed.
* | | Stricter validation for popen mode argument on WindowsNikita Popov2019-02-221-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Context: The ext/standard/tests/file/popen_pclose_error-win32.phpt test often fails under parallel testing, because the "is not recognized as an internal or external command" message doesn't actually have a guaranteed position in the output. While looking into this, I noticed that this test on Windows tests something very different (invalid comand) than on Linux (invalid mode). Here I'm adjusting the Windows popen implementation so it immediately fails on a `rw` mode, just like it does on Linux.
* | | Remove local variablesPeter Kokot2019-02-037-63/+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-302-2/+2
| | |
* | | Future-proof email addresses...Zeev Suraski2018-11-012-2/+2
| | |
* | | Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+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-6/+6
| | |
* | | Remove HAVE_STDARG_HPeter Kokot2018-09-182-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The C89 standard and later defines the `<stdarg.h>` header as part of the standard headers [1]. On current systems it is always present and can be included unconditionally. Checking for presence and functionality of the `<stdarg.h>` header and variadic function is not relevant anymore on current systems since this is always available. Also Autoconf suggests relying on at least C89 or above [2] and [3]. The following files were regenerated with re2c 1.0.3: - Zend/zend_language_scanner.c - Zend/zend_language_scanner_defs.h Refs: [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 unused buildsystem files in TSRMPeter Kokot2018-09-045-119/+0
|/ / | | | | | | | | Buildsystem files in the TSRM folder used to provide standalone build of the TSRM. Today these files are oudated and not used.
* | Remove TSRM_CHECK_GCC_ARG and LIBZEND_CPLUSPLUS_CHECKSPeter Kokot2018-07-311-22/+0
| | | | | | | | | | This removes two old Autoconf macro definitions since they are not used anymore.
* | Upgrade deprecated AC_OUTPUT macro callsPeter Kokot2018-07-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autoconf 2.50 made several changes to macro calls. These include also arguments passed to AC_OUTPUT macro. The upgrading chapter in Autoconf documentation include an example of using AC_OUTPUT with AC_CONFIG_FILES and AC_CONFIG_COMMANDS: - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html PHP 5.4 to 7.1 require Autoconf 2.59+, PHP 7.2+ require Autoconf 2.64+, and PHP 7.2 phpize script requires Autoconf 2.59+ which are all greater than above mentioned 2.50 version. Systems out there should well support this by now. This patch was created with the help of autoupdate script: autoupdate <file> More info on where exactly this got deprecated: - ftp://ftp.gnu.org/old-gnu/Manuals/autoconf-2.13/html_mono/autoconf.html - ftp://ftp.auckland.ac.nz/pub/gnu/Manuals/autoconf-2.52/html_chapter/autoconf_15.html - http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
* | Upgrade AX_FUNC_WHICH_GETHOSTBYNAME_R to serial 8Peter Kokot2018-07-292-7/+6
| | | | | | | | | | | | | | | | | | The AX_FUNC_WHICH_GETHOSTBYNAME_R macro is from the Autoconf Archive. Latest version of the file has few docs changes. File is also renamed as is a pattern of other m4 Autoconf Archive files. Refs: - http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_func_which_gethostbyname_r.m4
* | Trim trailing whitespaces in build filesPeter Kokot2018-07-292-5/+5
| | | | | | | | | | | | Some editors utilizing .editorconfig automatically trim whitespaces. For convenience this patch removes whitespaces in certain build files in Zend and TSRM folders.
* | Remove unused Git attributes identPeter Kokot2018-07-255-9/+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.
* | year++Xinchen Hui2018-01-022-2/+2
| |
* | Merge branch 'PHP-7.2'Xinchen Hui2017-12-271-0/+2
|\ \ | |/ | | | | | | | | * PHP-7.2: Updated NEWS Fixed bug #75735 ([embed SAPI] Segmentation fault in sapi_register_post_entry)
| * Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2017-12-271-0/+2
| |\ | | | | | | | | | | | | * PHP-7.1: Fixed bug #75735 ([embed SAPI] Segmentation fault in sapi_register_post_entry)
| | * Fixed bug #75735 ([embed SAPI] Segmentation fault in sapi_register_post_entry)Xinchen Hui2017-12-271-0/+2
| | |
* | | Add info about thread API usedAnatol Belski2017-12-212-0/+16
| | |
* | | Merge branch 'PHP-7.2'Anatol Belski2017-12-211-1/+7
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fix segfault. Compile param --with-tsrm-pth=yes
| * | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-12-211-1/+7
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fix segfault. Compile param --with-tsrm-pth=yes