summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
Commit message (Collapse)AuthorAgeFilesLines
* Future-proof email addressesZeev Suraski2018-11-011-2/+2
|
* Fix bug #76979: define() error message does not mention resources as valid ↵Michael Moravec2018-10-061-2/+2
| | | | values
* Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2018-09-191-7/+4
|\
| * Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-09-191-7/+4
| |\
| | * Fixed bug #76901Nikita Popov2018-09-191-7/+4
| | | | | | | | | | | | | | | | | | | | | get_method() may modify the object pointer passed to it if method forwarding is used. In this case we do not want to modify the passed zval, so make sure that we copy the object into a temporary first.
* | | Pack zend_constant.flags and zend_constant.module_number into reserved space ↵Dmitry Stogov2018-07-261-5/+5
| | | | | | | | | | | | 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.
* | | Deprecate case-insensitive constantsNikita Popov2018-07-161-2/+7
| | | | | | | | | | | | RFC: https://wiki.php.net/rfc/case_insensitive_constant_deprecation
* | | Fix #33502: Some nullary functions don't check the number of argumentsChristoph M. Becker2018-07-121-2/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()
* | | Uze ZVAL_COPY_DEREF() instead of ZVAL_DEREF() and ZVAL_COPY()Dmitry Stogov2018-07-091-2/+1
| | |
* | | Fixed bug #76509Nikita Popov2018-06-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In PHP static properties are shared between inheriting classes, unless they are explicitly overwritten. However, because this functionality was implemented using reference, it was possible to break the implementation by reassigning the static property reference. This is fixed by switching the implementation from using references to using INDIRECTs, which cannot be affected by userland code.
* | | Added num_roots to gc_statusXinchen Hui2018-06-131-0/+2
| | |
* | | Removed "gc_" prefix.Dmitry Stogov2018-06-131-2/+2
| | |
* | | Allow access to some garbage collection internals (Benjamin Eberlei)Dmitry Stogov2018-06-131-0/+18
| | |
* | | Export standard object handlers, to avoid indirect accessDmitry Stogov2018-05-311-3/+3
| | |
* | | Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-18/+18
| | | | | | | | | | | | where we sure about string persistence.
* | | Optimize zend_hash_real_init()Dmitry Stogov2018-03-231-3/+3
| | |
* | | Completely hide GC implementation details into zend_gc.cDmitry Stogov2018-02-271-1/+1
| | |
* | | Use bool instead of boolean in protoGabriel Caruso2018-02-041-1/+1
| | |
* | | Merge branch 'PHP-7.2'Christoph M. Becker2018-01-111-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fixed bug #75799 (arg of get_defined_functions is optional)
| * | Merge branch 'PHP-7.1' into PHP-7.2Christoph M. Becker2018-01-111-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fixed bug #75799 (arg of get_defined_functions is optional)
| | * Fixed bug #75799 (arg of get_defined_functions is optional)Gabriel Caruso2018-01-111-1/+1
| | |
| | * year++Xinchen Hui2018-01-021-1/+1
| | |
| * | year++Xinchen Hui2018-01-021-1/+1
| | |
| * | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2017-09-121-1/+5
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fixed arginfo for get_defined_functions
| | * Fixed arginfo for get_defined_functionsXinchen Hui2017-09-121-1/+5
| | |
* | | Trailing whitespacesGabriel Caruso2018-01-031-3/+3
| | | | | | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* | | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Use cheaper functionsDmitry Stogov2017-12-041-4/+4
| | |
* | | RC manipulation cleanup 2Xinchen Hui2017-11-021-2/+2
| | |
* | | RC manipulation cleanupXinchen Hui2017-11-011-3/+4
| | |
* | | Remove some unnecessary duplicationsNikita Popov2017-10-301-8/+3
| | |
* | | Prevent reference-counting on persistent zvals (internal constants, default ↵Dmitry Stogov2017-10-301-8/+4
| | | | | | | | | | | | | | | | | | | | | properties and constants of internal classes). New macro ZVAL_COPY_OR_DUP() is used perform duplication, if necessary. This should eliminate related race-coditions in ZTS build and prevent reference-counting bugs after unclean shutdown.
* | | Extend zend_register_class_alias_ex() with additional argument to allow ↵Dmitry Stogov2017-10-271-1/+1
| | | | | | | | | | | | creating persistent or per-request aliases
* | | Avoid HashTable allocations for empty arrays (using zend_empty_array).Dmitry Stogov2017-10-241-2/+6
| | |
* | | Always use IS_CONSTANT_AST (IS_CONSTANT is removed).Dmitry Stogov2017-10-101-1/+1
| | |
* | | Refactored recursion pretectionDmitry Stogov2017-10-061-4/+4
| | |
* | | Narrow typeinfos down for zend_parse_paramenters_noneXinchen Hui2017-09-121-1/+5
|/ /
* | Merge branch 'PHP-7.1' into PHP-7.2Sara Golemon2017-09-071-1/+1
|\ \ | |/ | | | | | | * PHP-7.1: Fix typo in zend_symtable_add_new() API name
| * Merge branch 'PHP-7.0' into PHP-7.1Sara Golemon2017-09-071-1/+1
| |\ | | | | | | | | | | | | * PHP-7.0: Fix typo in zend_symtable_add_new() API name
| | * Fix typo in zend_symtable_add_new() API nameSara Golemon2017-09-071-1/+1
| | |
* | | further sync for vim mode linesAnatol Belski2017-07-041-0/+2
| | |
* | | Only compute callback name in error casesNikita Popov2017-06-251-6/+4
| | | | | | | | | | | | | | | Mostly the callback name is only used to report an error. Try to avoid calculating it if no error occurred.
* | | Merge branch 'PHP-7.1'Nikita Popov2017-06-251-15/+14
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-06-251-15/+14
| |\ \ | | |/
| | * Don't leave holes in func_get_args() and backtracesNikita Popov2017-06-251-15/+14
| | | | | | | | | | | | | | | Argument lists should always be continuous and hole-free, even if local variables are unset. Replace UNDEF values with NULLs.
* | | Updated some str functions to new parameter APIRichard Fussenegger2017-06-071-12/+18
| | |
* | | Avoid useless string duplicationDmitry Stogov2017-05-231-1/+1
| | |
* | | zend-test extension to house code that is required for testing internal ↵Nikita Popov2017-03-121-196/+3
| | | | | | | | | | | | APIs, but that we would not want to expose for regular builds
* | | Interned strings unification for TS/NTSAnatol Belski2017-03-041-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hereby, interned strings are supported in thread safe PHP. The patch implements two types of interned strings - interning per process, strings are not freed till process end - interning per request, strings are freed at request end There is no runtime interning. With Opcache, all the permanent iterned strings are copied into SHM on startup, additional copying into SHM might happen on demand.