summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-01-241-25/+25
|\
| * Revert "Prefix error_code with underscore in FastZPP implementation"Nikita Popov2019-01-241-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6305119a5193d4318add01190ca4afbb49ded102. This is a source-compatibility break for extensions that define custom FastZPP macros, such as ext/uv: https://github.com/bwoebi/php-uv/blob/a983eb17b69f74a45d785ddc6a7bff3d4531b88c/php_uv.c#L75 I don't think that FastZPP was intended to be used this way, but let's revert this from release branches to avoid extension breakage.
* | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-01-081-25/+25
|\ \ | |/
| * Prefix error_code with underscore in FastZPP implementationtwosee2019-01-081-25/+25
| | | | | | | | To avoid conflicts with parameter names.
* | Future-proof email addressesZeev Suraski2018-11-011-3/+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.
* | API cleanup.Dmitry Stogov2018-07-231-4/+2
| | | | | | | | | | Removed useless filename and lineno arguments, used in DEBUG build. The patch doesn't break source compatibility of public API (only binary compatibility).
* | Merge zend_class_entry.create_object and ↵Dmitry Stogov2018-07-121-1/+0
| | | | | | | | zend_class_entry.interface_gets_implemented into the same memory lacation. The first used only by classes, the second only by magic interfaces.
* | Improved user iterator implementation to reduce zend_class_entry memory ↵Dmitry Stogov2018-07-121-2/+3
| | | | | | | | consumption and avoid race condition during resolving/caching of user iterator functions of internal classes in ZTS build.
* | Avoid useless checks in object_init()Dmitry Stogov2018-07-061-2/+1
| |
* | Add zend_update_static_property_ex APINikita Popov2018-06-291-0/+1
| | | | | | | | | | And cleanup the implementation to perform a normal by-value assignment.
* | Add zend_read_static_property_ex APINikita Popov2018-06-291-0/+1
| | | | | | | | For symmetry with zend_read_property_ex.
* | Fix buildNikita Popov2018-06-291-2/+2
| | | | | | | | These were changed in 6e77a60a75445c863f85f81a83e5c2dd28f0e877.
* | Removed INIT_OVERLOADED_CLASS... macrosDmitry Stogov2018-06-291-20/+11
| |
* | Add is_countable functionGabriel Caruso2018-03-111-0/+2
| | | | | | | | RFC: https://wiki.php.net/rfc/is-countable
* | Fixed unintended API breakDmitry Stogov2018-02-191-4/+4
| |
* | Remove duplicated assignmentAnatol Belski2018-02-191-2/+0
| |
* | Added missed "return"Dmitry Stogov2018-02-161-0/+1
| |
* | Improved ZPP to reduce amount of generated code.Dmitry Stogov2018-02-161-14/+39
| |
* | Fix some misspellingsGabriel Caruso2018-02-061-1/+1
| |
* | Use bool instead of boolean while throwing a type errorGabriel Caruso2018-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | PHP requires boolean typehints to be written "bool" and disallows "boolean" as an alias. This changes the error messages to match the actual type name and avoids confusing messages like "must be of type boolean, boolean given". This a followup to ce1d69a1f6dcf15d43029301059c25e5bc09a577, which implements the same change for integer->int.
* | Use int instead of integer in type errorsGabriel Caruso2018-02-041-1/+1
| | | | | | | | | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
* | Merge branch 'PHP-7.2'Sara Golemon2018-01-231-1/+1
|\ \ | |/ | | | | | | * PHP-7.2: Use Z_EXPECTED_LONG to initialize FAST_ZPP parsing loop
| * Merge branch 'PHP-7.1' into PHP-7.2Sara Golemon2018-01-231-1/+1
| |\ | | | | | | | | | | | | * PHP-7.1: Use Z_EXPECTED_LONG to initialize FAST_ZPP parsing loop
| | * Merge branch 'PHP-7.0' into PHP-7.1Sara Golemon2018-01-231-1/+1
| | |\ | | | | | | | | | | | | | | | | * PHP-7.0: Use Z_EXPECTED_LONG to initialize FAST_ZPP parsing loop
| | | * Use Z_EXPECTED_LONG to initialize FAST_ZPP parsing loopSara Golemon2018-01-231-1/+1
| | | |
| | | * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | | |
| | * | year++Xinchen Hui2018-01-021-1/+1
| | | |
| | * | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | | |
| | * | Fix bug #73147: Use After Free in PHP7 unserialize()Stanislav Malyshev2016-10-141-0/+1
| | | | | | | | | | | | | | | | | | | | (cherry picked from commit 0e6fe3a4c96be2d3e88389a5776f878021b4c59f) (cherry picked from commit f42cbd749cde1f91274c1d03df9024baba141a8f)
| * | | year++Xinchen Hui2018-01-021-1/+1
| | | |
* | | | year++Xinchen Hui2018-01-021-1/+1
| | | |
* | | | zend_fcall_info_cache.initialized is removed (zend_fcall_info_cache is ↵Dmitry Stogov2017-12-271-2/+1
| | | | | | | | | | | | | | | | initialized if zend_fcall_info_cache.function_handler is set).
* | | | Use "fastcal" calling convention for internal PHP functions on x86Dmitry Stogov2017-12-111-1/+1
| | | |
* | | | Remove zend_get_parameters(_ex) APIsNikita Popov2017-10-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | zend_get_parameters_ex() has been marked as deprecated for a long time already. What zend_get_paramers() does is even more questionable under PHP7. Both functions are obsoleted by the ZPP mechanism, so I'm dropping them.
* | | | Merge branch 'master' into rc_debugDmitry Stogov2017-10-271-5/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Use per-request heap instead of system one Extend zend_register_class_alias_ex() with additional argument to allow creating persistent or per-request aliases Makrk persistent resources and references with GC_PERSISTENT flag
| * | | | Extend zend_register_class_alias_ex() with additional argument to allow ↵Dmitry Stogov2017-10-271-5/+5
| | | | | | | | | | | | | | | | | | | | creating persistent or per-request aliases
* | | | | Encapsulate reference-counting primitives.Dmitry Stogov2017-10-271-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead. Added mactros to validate reference-counting (disabled for now). These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.
* | | | Extend zend_string API to avoid reallocation in zend_string_init_interned()Dmitry Stogov2017-10-191-3/+1
| | | |
* | | | Refactored array creation API. array_init() and array_init_size() are ↵Dmitry Stogov2017-09-201-3/+2
| | | | | | | | | | | | | | | | converted into macros calling zend_new_array(). They are not functions anymore and don't return any values.
* | | | Fix fast ZPP macro definitionThomas Punt2017-08-191-1/+1
| | | |
* | | | FAST_ZPP variant of zend_parse_parameters_none(), ZEND_PARSE_PARAMETERS_NONE()Kalle Sommer Nielsen2017-07-231-0/+4
|/ / /
* | | further sync for vim mode linesAnatol Belski2017-07-041-0/+2
| | |
* | | Fixed ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO macroRichard Fussenegger2017-06-301-4/+4
| | | | | | | | | | | | | | | The macro was expanding to a wrong macro and thus leads to compile errors upon usage. Changed it to expand to the correct macro.
* | | Extract zend_get_callable_name() APINikita Popov2017-06-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Instead of interleaving this inside zend_is_callable(), implement this in a separate function instead. Also add _deref() hash APIs. I've wanted these for a while, and this is another place where they're useful, so finally do it...
* | | Introduced "zif_handler" type (zif = zend internal function).Dmitry Stogov2017-06-081-1/+1
| | |
* | | Improved new Zend Parameter Parsing API to avoid useless dereferences.Dmitry Stogov2017-06-081-48/+95
| | | | | | | | | | | | | | | This derefernce made sense only for explicit paramter passing by reference, but this feature was removed in PHP-7. The improvement is 100% backward compatible, only few "tricky" functions may be affected (e.g. extract and usort).
* | | Constify str in add_assoc_string_ex and add_assoc_stringl_exJakub Zelenka2017-06-071-2/+2
| | |
* | | Remove accidently added byteKalle Sommer Nielsen2017-05-261-1/+1
| | |
* | | Added zend_parse_parameters_none_throw()Kalle Sommer Nielsen2017-05-261-1/+3
| | |