summaryrefslogtreecommitdiff
path: root/main/php.h
Commit message (Collapse)AuthorAgeFilesLines
* Update PHP_API_VERSIONDmitry Stogov2019-09-021-1/+1
|
* Convert all php_error_docref0 to php_error_docrefGeorge Peter Banyard2019-07-131-3/+1
| | | | Closes GH-4394
* Remove duplicate XtOffsetOf() definitions in php.hNikita Popov2019-07-121-35/+0
| | | | These are already defined in zend_portability.h.
* Remove APACHE symbolPeter Kokot2019-07-081-2/+0
| | | | | The APACHE symbol was used in very early PHP versions to indicate the Apache module usage. Since PHP 4 this is no longer used in the code.
* Bump API numbersDerick Rethans2019-05-291-1/+1
|
* Fix internal_encoding fallback in mbstringNikita Popov2019-04-171-0/+5
| | | | | | | | By introducing a hook that is called whenever one of internal_encoding / input_encoding / output_encoding changes, so that mbstring can adjust it's internal state. This also makes internal_encoding work with zend multibyte.
* Remove HAVE_STRERRORPeter Kokot2019-04-081-4/+0
| | | | | | | | | | | Checking for the strerror function presence is no longer needed since it is part of the C89 standard [1] and can be safely assumed that all current systems have it. Check in the configure.ac and Windows defined symbol are still left until the file library (libmagic) will be updated. [1]: https://port70.net/~nsz/c/c89/c89-draft.html
* 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
* Remove legacy AC_CHECK_TYPE calls for uint and ulongPeter Kokot2019-03-061-2/+0
| | | | | | | | | | | | | | | | | | | | | The AC_CHECK_TYPE was refactored in more recent versions of Autoconf and the call with two arguments is obsolete and not recommended anymore. This patch also refactors some leftovers of using ulong and uint which are not standard nor common usages of types in C. The ulong can be used as zend_ulong and uint usage is actually `unsigned int`. The usage of HAVE_ULONG removed since it is not used in current code base. Legacy edgecase for some legacy HPUX systems removed: - sys/stream.h header is not checked and the HAVE_SYS_STREAM_H is not defined with current build system. - flags are unsigned int - max_allowed_packet changed to unsigned int
* Remove obsolescent AC_HEADER_STDC and memcpy checkPeter Kokot2019-03-011-11/+1
| | | | | | | | | | | | | | | | | | | | | Autoconf 2.59d (released in 2006) [1] started promoting several macros as not relevant for newer systems anymore, including the `AC_HEADER_STDC`. This macro checks if given system has C89 compliant header files such as `<string.h>`, `<stdlib.h>`, `<stdarg.h>`, `<float.h>`,... and defines the `STDC_HEADERS` symbol [2]. Case is that current systems should be well supported with at least C89 standard headers [3]. Given headers are still additionally checked with the `AC_PROG_CC` macro, yet not needed anyway. Additionally, the HAVE_MEMCPY check has been removed. The memcpy function is standardized by C89 and later. 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 [3] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
* Remove PHP_DECLARED_TIMEZONE and HAVE_DECLARED_TIMEZONEPeter Kokot2019-02-281-1/+0
| | | | | | | The HAVE_DECLARED_TIMEZONE symbol usage has been introduced in 2fd8cbff2ac301a90fc417bff206bd0a65e8692c and then removed via 667a9b9bce87e422d9b092ce23f1b536c8fd4ece.
* Remove unused PHP_AC_BROKEN_SPRINTF and AC_ZEND_BROKEN_SPRINTFPeter Kokot2019-02-231-2/+1
| | | | | | | | | | | | | | | | | The sprintf function has been normalized to php_sprintf via 61364b5bb172fa512c871b795c2613b1b587e4cd. This patch removes the checks to make a custom sprintf function The ZEND_BROKEN_SPRINTF has been removed and the hardcoded #define zend_sprintf sprintf is used. The php_sprintf and zend_sprintf are now symbols to sprintf. This patch now removes the custom PHP definitions of the php_sprintf and zend_sprintf functions in favor of the C99 sprintf which is also standardized in C89 already. Once, on some systems sprintf didn't behave in same way.
* Remove local variablesPeter Kokot2019-02-031-9/+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-301-1/+1
|
* Future-proof email addresses...Zeev Suraski2018-11-011-2/+2
|
* 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-091-4/+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
* Update API version numbersChristoph M. Becker2018-07-311-1/+1
| | | | These are supposed to be final now for PHP 7.3.
* Remove unused Git attributes identPeter Kokot2018-07-251-2/+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.
* Bump extension, module and PHP API numbers for 7.3Michael Moravec2018-06-141-1/+1
|
* Remove padding just merged since 7.3 isn't released yet.Sara Golemon2018-01-231-1/+1
| | | | Also bump PHP_API_VERSION since the struct size has changed.
* year++Xinchen Hui2018-01-021-1/+1
|
* Fixed a typoJavier Eguiluz2017-12-091-1/+1
|
* Remove old references to SAPIs and extensions no longer in the coreKalle Sommer Nielsen2017-07-191-2/+0
|
* Bump all API numbers in prep for 7.2 forkSara Golemon2017-07-181-1/+1
|
* Provide zend_string wrappers for php_base64_(en|de)codeSara Golemon2017-07-161-1/+1
| | | | | Also pull existing php_base64_decode() proxy out to an inline. Bump PHP_API_VERSION for ABI change.
* Move va_copy compatibility code into zend_portability.hNikita Popov2017-06-251-8/+0
| | | | | Previously this was defined in zend.c and php.h and also handled in another way in soap.c.
* Change PHP_OS_FAMILY to "Darwin" instead of "Mac" for Darwin based systems ↵Kalle Sommer Nielsen2017-06-141-1/+1
| | | | (as suggested by Davey)
* Use "Mac" instead of "OSX" to identify macOS in PHP_OS_FAMILYSebastian Bergmann2017-06-131-1/+1
|
* Merge branch 'PHP-7.1'Xinchen Hui2017-04-101-1/+1
|\ | | | | | | | | | | | | | | | | | | * PHP-7.1: Fixed condition check Fixed condition check another place Conflicts: ext/mcrypt/mcrypt.c
| * another placeXinchen Hui2017-04-101-1/+1
| |
* | Merge branch 'PHP-7.1'Xinchen Hui2017-04-101-1/+1
|\ \ | |/ | | | | | | * PHP-7.1: Fixed issue #2466 Invalid integer constant expression error in php.h
| * Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-04-101-1/+1
| |\ | | | | | | | | | | | | * PHP-7.0: Fixed issue #2466 Invalid integer constant expression error in php.h
| | * Fixed issue #2466 Invalid integer constant expression error in php.hXinchen Hui2017-04-101-1/+1
| | |
| | * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | |
| * | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | |
| * | Bump PHP_API_VERSIONNikita Popov2016-09-041-1/+1
| | |
* | | use extra flag to turn on php implementationsAnatol Belski2017-03-191-0/+2
| | |
* | | define corresponding config macros, as we already trick symbolsAnatol Belski2017-03-191-0/+2
| | |
* | | Fix PHP_OS_FAMILY for Linux (Joe)Kalle Sommer Nielsen2017-02-221-0/+2
| | |
* | | Change PHP_OS_FAMILY slightlyKalle Sommer Nielsen2017-02-221-0/+13
| | | | | | | | | | | | | | | * PHP_OS_FAMILY is now a macro, to allow extensions to take advantage of it, it is defined in php.h * Values are not upper-case-first, not always uppercase. Windows is no longer just "Win", if we want the short version for testing then PHP_OS is always WINNT anyway
* | | Resolve conflictSammy Kaye Powers2017-01-031-0/+8
|\ \ \
| * \ \ Merge branch 'pull-request/2163'Joe Watkins2017-01-031-0/+8
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * pull-request/2163: import explicit_bzero + strlc* functions update since 1999 algorithms have changed and register k/w not necessary anymore.
| | * | | let s use the macro insteadDavid Carlier2016-10-151-1/+1
| | | | |
| | * | | import explicit_bzero + strlc* functions updateDavid Carlier2016-10-151-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | since 1999 algorithms have changed and register k/w not necessary anymore.
* | | | | Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|/ / / /
* | | | Eliminate win95nt.hKalle Sommer Nielsen2016-12-221-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | - Most of this is builtin php.h now - Removed some dead defines - We now pass /D _USE_MATH_DEFINES for M_PI etc
* | | | Remove Netware supportKalle Sommer Nielsen2016-11-121-6/+0
|/ / / | | | | | | | | | If this does not break the Unix system somehow, I'll be amazed. This should get most of it out, apologies for any errors this may cause on non-Windows ends which I cannot test atm.
* | | increase versions for 7.2Anatol Belski2016-08-021-1/+1
|/ /
* | Use one place to define max length of doubleJakub Zelenka2016-06-261-0/+8
| | | | | | | | Introduce new constant PHP_DOUBLE_MAX_LENGTH for that purpose