summaryrefslogtreecommitdiff
path: root/Zend/zend_constants.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace zend_bool uses with boolNikita Popov2021-01-151-1/+1
| | | | | | | 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.
* Improve type declarations for Zend APIsGeorge Peter Banyard2020-08-281-4/+4
| | | | | | | | | Voidification of Zend API which always succeeded Use bool argument types instead of int for boolean arguments Use bool return type for functions which return true/false (1/0) Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics Closes GH-6002
* Add support for deprecating constantsNikita Popov2020-01-171-2/+4
| | | | | | | | | | | Internal constants can be marked as CONST_DEPRECATED, in which case accessing them will throw a deprecation warning. For now this is only supported on global constants, not class constants. Complain to me if you need to deprecate a class constant... Closes GH-5072.
* Constify some char* arguments or return values of ZEND_APItwosee2019-06-121-2/+2
| | | | Closes GH-4247.
* Merge branch 'PHP-7.4'Peter Kokot2019-02-031-10/+0
|\ | | | | | | | | * PHP-7.4: Remove local variables
| * Remove local variablesPeter Kokot2019-02-031-10/+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.
| * Adios, yearly copyright rangesZeev Suraski2019-01-301-1/+1
| |
* | Remove support for case-insensitive constantsNikita Popov2019-01-311-7/+13
| | | | | | | | | | | | | | The only remaining case-insensitive constants are null, true and false, which are handled explicitly. In the future we may convert them from constants to reserved keywords.
* | Adios, yearly copyright rangesZeev Suraski2019-01-301-1/+1
|/
* Update email addresses. We're still @Zend, but future proofing it...Zeev Suraski2018-11-011-2/+2
|
* Pack zend_constant.flags and zend_constant.module_number into reserved space ↵Dmitry Stogov2018-07-261-3/+12
| | | | inside zend_constant.value.
* 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.
* Reduce overhead of case-insensitive constants deprecation for "fast path"Dmitry Stogov2018-07-171-2/+0
|
* Deprecate case-insensitive constantsNikita Popov2018-07-161-1/+5
| | | | RFC: https://wiki.php.net/rfc/case_insensitive_constant_deprecation
* Don't store values of PHP_SAPI and PHP_BINARY in file cache, because it may ↵Dmitry Stogov2018-04-281-0/+1
| | | | be used by different SAPI.
* year++Xinchen Hui2018-01-021-1/+1
|
* Wrap functions necessary only for ZTS build with #ifdefDmitry Stogov2017-12-071-0/+2
|
* further sync for vim mode linesAnatol Belski2017-07-041-0/+2
|
* shutdown_executor() refactoring (reuse opcache fast request shutdown code)Dmitry Stogov2017-06-221-1/+0
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Export zend_quick_get_constant()Dmitry Stogov2016-11-291-1/+1
|
* Merge branch 'PHP-7.0'Xinchen Hui2016-01-021-1/+1
|\
| * bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
| |
* | Implemented the RFC `Support Class Constant Visibility`.Dmitry Stogov2015-12-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit f11ca0e7a57793fa0e3e7f6d451720e6c42bb0b9 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Dec 8 12:38:42 2015 +0300 Fixed test expectation commit 211f873f542504d0a0f72b6b5cb23908a1c99a2d Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Dec 8 12:28:38 2015 +0300 Embed zend_class_constant.flags into zend_class_constants.value.u2.access_flags commit 51deab84b2cdbf9cdb1a838cf33b2ee45c61748b Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Dec 7 11:18:55 2015 +0300 Fixed issues found by Nikita commit 544dbd5b47e40d38a8ccb96bc5583e9cb7fdd723 Author: Dmitry Stogov <dmitry@zend.com> Date: Sat Dec 5 02:41:05 2015 +0300 Refactored immplementation of https://wiki.php.net/rfc/class_const_visibility @reeze created an RFC here and I emailed internals here and didn't get any responses positive/negative.
* | Fixed incorrect type usageDmitry Stogov2015-10-281-2/+2
|/
* bump yearXinchen Hui2015-01-151-1/+1
|
* trailing whitespace removalStanislav Malyshev2015-01-101-1/+1
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-34/+34
|
* fix REGISTER_NS_*_CONSTANT macroskrakjoe2014-11-251-6/+6
|
* fix datatype mismatchesAnatol Belski2014-10-241-7/+7
| | | | and convert APIs to size_t where zend_string internally used
* better alignment, won 8 byte on 64 bit with default alignmentAnatol Belski2014-08-281-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-6/+6
|
* further fixes on coreAnatol Belski2014-08-161-2/+2
|
* first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-4/+4
|
* Optimized constant lookupDmitry Stogov2014-04-251-2/+3
|
* Moved zend_literal->cache_slot right into zval.Dmitry Stogov2014-04-171-1/+1
| | | | | | | It should be accessed using Z_CACHE_SLOT() macro. zend_literal structure is removed. API functions that accepted pointer to zend_literal now accept pointer to zval or cache_slot directly. Calls of such functiond that now accept cache_slot need to be changed to pass -1 instead of NULL.
* Use better data structures (incomplete)Dmitry Stogov2014-02-171-14/+14
|
* Use better data structures (incomplete)Dmitry Stogov2014-02-101-4/+2
|
* Bump yearXinchen Hui2014-01-031-1/+1
|
* zend_register_null_constantkrakjoe2013-04-151-2/+6
| | | | | fixed zend_register_bool_constant usage in macros use REGISTER_MAIN_* in zend_register_standard_constants
* zend_register_bool_constant patchkrakjoe2013-04-151-0/+4
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* - Reimplemented ZEND_INIT_FCALL_BY_NAME and ZEND_INIT_NS_FCALL_BY_NAME to ↵Dmitry Stogov2010-04-271-1/+1
| | | | | | | use literals instead of additional operands - Optimized access to global constants
* Optimized access to global constants using values with pre-calculated ↵Dmitry Stogov2010-04-221-0/+1
| | | | hash_values from litersls table
* sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-051-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* - MFH: Constness (Added const qualifier to several function parameters)Felipe Pena2008-08-121-6/+6
|
* Added API to use namesapces in internal extensionsDmitry Stogov2008-05-121-0/+5
|