summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.4'Nikita Popov2019-03-221-149/+74
|\
| * Deduplicate code in zend_builtin_functions.crjhdby2019-03-221-149/+74
| |
* | Merge branch 'PHP-7.4'Nikita Popov2019-02-191-1/+2
|\ \ | |/
| * Fixed bug #77631Tyson Andre2019-02-191-1/+2
| | | | | | | | | | | | | | | | Do not include unbound anonymous classes in get_declared_classes(). Note that earlier PHP versions would include the anonymous class in get_declared_classes(), and return false until the class was bound, but would not crash.
* | Merge branch 'PHP-7.4'Nikita Popov2019-02-141-18/+8
|\ \ | |/
| * Remove bogus ctor checks in get_class_methods() + reflectionNikita Popov2019-02-141-18/+8
| | | | | | | | | | | | Contrary to the comments, these only hide constructors (old or new style) if they a) are inherited b) come from a trait and c) are aliased -- which doesn't make any sense at all.
* | Merge branch 'PHP-7.4'Dmitry Stogov2019-02-141-1/+1
|\ \ | |/ | | | | | | * PHP-7.4: Fixed bug #77613 (method visibility change) (reverted ZEND_ACC_CTOR and ZEND_ACC_DTOR flags removal)
| * Fixed bug #77613 (method visibility change) (reverted ZEND_ACC_CTOR and ↵Dmitry Stogov2019-02-141-1/+1
| | | | | | | | ZEND_ACC_DTOR flags removal)
* | Refactor zend_object_handlers API to pass zend_object* and zend_string* ↵Dmitry Stogov2019-02-041-9/+5
| | | | | | | | insted of zval(s).
* | 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-1/+1
| | | | | | | | | | | | | | 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
| |
* | Remove ability to declare userland case-insensitive constantsNikita Popov2019-01-301-11/+7
| | | | | | | | | | | | | | | | This is part of https://wiki.php.net/rfc/case_insensitive_constant_deprecation. This commit only removes the ability to declare such constants from userland. Before the functionality can be removed entirely, it's necessary to figure out the handling of true/false/null first.
* | Remove each()Nikita Popov2019-01-291-66/+0
| | | | | | | | | | This has been deprecated in PHP 7.2 as part of https://wiki.php.net/rfc/deprecations_php_7_2.
* | Remove create_function()Nikita Popov2019-01-281-79/+0
|/ | | | | Deprecated in PHP 7.2 as part of https://wiki.php.net/rfc/deprecations_php_7_2.
* Replace zend_hash_apply... with ZEND_HASH_FOREACH...Dmitry Stogov2018-12-191-83/+69
|
* Update email addresses. We're still @Zend, but future proofing it...Zeev Suraski2018-11-011-2/+2
|
* Fix accessibility checks for dynamic propertiesNikita Popov2018-10-221-7/+7
| | | | | | | | A dynamic property may be shadowed by a private/protected property. Make sure we check property accessibility for non-indirect properties as well. Closes #3626.
* Immutable clases and op_arrays.Dmitry Stogov2018-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit cd0c36c3f943849e5b97a8dbe2dd029fbeab3df9 Merge: 4740dabb84 ad6738e886 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 14:43:38 2018 +0300 Merge branch 'master' into immutable * master: Remove the "auto" encoding Fixed bug #77025 Add vtbls for EUC-TW encoding commit 4740dabb843c6d4f7f866b4a2456073c9eaf4c77 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 14:12:28 2018 +0300 Reverted back ce->iterator_funcs_ptr. Initialize ce->iterator_funcs_ptr fields in immutable classes. commit ad7a78b253be970db70c2251e66f9297d8e7f829 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:46:30 2018 +0300 Added comment commit 0276ea51875bab37be01a4dc5e5a047c5698c571 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:42:43 2018 +0300 Added type cast commit c63fc5d5f19c58498108d1698055b2b442227eb3 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:36:51 2018 +0300 Moved static class members initialization into the proper place. commit b945548e9306b1826c881918858b5e5aa3eb3002 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:21:03 2018 +0300 Removed redundand assertion commit d5a41088401814c829847db212488f8aae39bcd2 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:19:13 2018 +0300 Removed duplicate code commit 8dadca8864e66de70a24bdf1181bcf7dd8fb27d7 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 11:05:43 2018 +0300 Hide offset encoding magic in ZEND_MAP_PTR_IS_OFFSET(), ZEND_MAP_PTR_OFFSET2PTR() and ZEND_MAP_PTR_PTR2OFFSET() macros. commit 9ef07c88bd76801e2d4fbfeab3ebfd6e6a67ac5f Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 10:48:29 2018 +0300 typo commit a06f0f3d3aba53e766046221ee44fb9720389ecc Merge: 94099586ec 3412345ffe Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Oct 17 10:47:07 2018 +0300 Merge branch 'master' into immutable * master: Remove unused variable makefile_am_files Classify object handlers are required/optional Add support for getting SKIP_TAGSTART and SKIP_WHITE options Remove some obsolete config_vars.mk occurrences Remove bsd_converted from .gitignore Remove configuration parser and scanners ignores Remove obsolete buildconf.stamp from .gitignore [ci skip] Add magicdata.patch exception to .gitignore Remove outdated ext/spl/examples items from .gitignore Remove unused test.inc in ext/iconv/tests commit 94099586ec599117581ca01c15b1f6c5f749e23a Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Oct 15 23:34:01 2018 +0300 Immutable clases and op_arrays
* Classify object handlers are required/optionalNikita Popov2018-10-161-2/+1
|
* Merge branch 'PHP-7.3'Nikita Popov2018-10-061-2/+2
|\
| * Fix bug #76979: define() error message does not mention resources as valid ↵Michael Moravec2018-10-061-2/+2
| | | | | | | | values
* | Clarify that the get_properties handler is requiredNikita Popov2018-10-041-5/+0
| | | | | | | | | | | | Some places were checking for non-null get_properties, some weren't. Make it clear that the handler is required and such checks are not necessary.
* | Merge branch 'PHP-7.3'Nikita Popov2018-09-191-7/+4
|\ \ | |/
| * 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.
* | | | Class constants and default property values can't be IS_REFERENCE anymore.Dmitry Stogov2018-09-181-1/+0
| | | |
* | | | Squashed commit of the following:Dmitry Stogov2018-09-111-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 2d3cac9e005d6bef9aa73ab57cc674aa53125954 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 11:54:47 2018 +0300 Fixed static property access commit 31786ee27282f319f3ef2a07635b1f325cbd67c6 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 11:05:29 2018 +0300 Avoid duplicate checks commit 5ae502b979ea33d058d01a9421eec5afd0084e8d Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 10:39:17 2018 +0300 Optimization commit 82c17f0e8af02c9cf7d1bbdae4e3158330148203 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 09:26:50 2018 +0300 Removed unused zend_duplicate_property_info() commit ba53d1d0dd91d5530328a11cac93ff9e75c462b5 Merge: eacc11b8fd c4b14370cf Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 09:24:13 2018 +0300 Merge branch 'master' into shadow * master: 7.0.33 next Sync NEWS [ci skip] add NEWS for 76582 Enforce ordering of property compare in object comparisons Fixed wrong assertion Skip test on unsuitable env commit eacc11b8fdeb002ee6a149defd8b5a8c3412896a Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 13:12:39 2018 +0300 Fixed failure of ext/spl/tests/array_017.phpt commit 62d1871430a1b81c84b790460afff0682648689a Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 11:55:07 2018 +0300 Fixed issues commit 1d37e3a40e4d07c4b933ed6f9d2e649dd01180f0 Merge: d6c3f098b6 1e550e6f7e Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 10:21:20 2018 +0300 Merge branch 'master' into shadow * master: Update NEWS Fix for bug #76582 Fix ssl stream reneg limit test to print only after first renegotiation Make a copy unconditionally Fix memory leak in pcre cache Remove not needed checking for <errno.h> Remove HAVE_ASSERT_H Add test for bug #76850 Fixed bug #76850 Exit code mangled by set locale/preg_match Remove empty PHP tags from test Fix #75273: php_zlib_inflate_filter() may not update bytes_consumed Fix PCRE2 exclusion and remove dead libs in Makefile.gcov Report mem leaks to stderr if no Win debugger is present Use combined assignment contanation operator Fixed bug #76796 Support fixed address mmap without replacement commit d6c3f098b6015e76d042691de0af2e1426c66829 Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Sep 7 13:56:30 2018 +0300 Get rid of ZEND_ACC_SHADOW
* | | | Get rid of ZEND_ACC_CTOR, ZEND_ACC_DTOR and ZEND_ACC_IMPLEMENTED_ABSTRACTDmitry Stogov2018-09-051-1/+1
| | | |
* | | | Use zend_class_entry/zend_function type names instead of ↵Dmitry Stogov2018-08-221-1/+1
|/ / / | | | | | | | | | _zend_class_entry/_zend_function tags.
* | | 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
| | |