summaryrefslogtreecommitdiff
path: root/Zend/zend_API.h
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
|
* Fix bug #73147: Use After Free in PHP7 unserialize()Stanislav Malyshev2016-10-121-0/+1
| | | | (cherry picked from commit 0e6fe3a4c96be2d3e88389a5776f878021b4c59f)
* Remove zpp fallback code (always use Fast ZPP)Andrea Faulds2016-09-111-6/+2
| | | | | | | | | | | | | | | | Squashed commit of the following: commit 3e27fbb3d22b42d181e15c345f1c59a007b6b58c Author: Andrea Faulds <ajf@ajf.me> Date: Sun Sep 11 19:14:37 2016 +0100 Keep dummy FAST_ZPP macro for compatibility commit 8a7cfd00deaa4a3c5026c97580c49c886c72a5b4 Author: Andrea Faulds <ajf@ajf.me> Date: Mon Sep 5 22:36:03 2016 +0100 Remove FAST_ZPP macro and plain zpp fallback code
* correct wordingJoe Watkins2016-05-041-2/+1
|
* bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
|
* Revert "fix typos "paramer" -> "parameters""Xinchen Hui2015-12-081-6/+6
| | | | | | ABI BC break This reverts commit 6ac12f13379f3fc19f07abb9d1055274e5f98838.
* fix typos "paramer" -> "parameters"Márcio Almada2015-12-071-6/+6
|
* Short-circuit zend_parse_parameters_none() so that expensive zpp() call ↵Bob Weinand2015-09-201-4/+4
| | | | never happens in non-exceptional case
* Add myself into list of authors of the most refactored files.Dmitry Stogov2015-08-311-0/+1
|
* Mark error and exception functions as "cold" (Matt's idea)Dmitry Stogov2015-08-191-5/+5
|
* Removed unused codeJulien Pauli2015-08-181-3/+0
|
* add macro to access globals as wholeAnatol Belski2015-07-301-0/+2
|
* add unified globals accessor macroAnatol Belski2015-07-291-0/+2
|
* Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-3/+3
| | | | semantick changes).
* Improved zend_string API (Francois Laupretre)Dmitry Stogov2015-06-291-6/+6
| | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit d96eab8d79b75ac83d49d49ae4665f948d15a804 Author: Francois Laupretre <francois@tekwire.net> Date: Fri Jun 26 01:23:31 2015 +0200 Use the new 'ZSTR' macros in the rest of the code. Does not change anything to the generated code (thanks to compat macros) but cleaner. commit b3526439104ac7a89a8e0c79dbebf33b22bd01b8 Author: Francois Laupretre <francois@tekwire.net> Date: Thu Jun 25 13:45:06 2015 +0200 Improve zend_string API Add missing methods
* Cache the class_name typehint key in arg_infoBob Weinand2015-06-121-2/+2
| | | | This leads to up to 2% improvement on one tested real world application by not having to always recalculate the lowercased string and its hash
* Avoid zval duplication in ZVAL_ZVAL() macro (it was necessary only in few ↵Dmitry Stogov2015-06-121-25/+10
| | | | | | places). Switch from ZVAL_ZVAL() to simpler macros where possible (it makes sense to review remaining places)
* Add consistency check in FAST_ZPP callRemi Collet2015-05-191-0/+4
| | | | | | | | | So ensure Z_PARAM_OPTIONAL is correctly call at the right place Only in DEBUG build Will raise 'Assertion `_i > _min_num_args || _optional==0' failed.' or 'Assertion `_i <= _min_num_args || _optional==1' failed.' Thus will allow to detect bad code early.
* Eliminated useless check in FAST_ZPP (this also fixed few wrong ↵Dmitry Stogov2015-05-191-1/+2
| | | | -Wmaybe-uninitialized compilation warnings) (Remi)
* Use zend_string to represent pdo_column_data.name and avoid duplication.Dmitry Stogov2015-05-051-0/+1
|
* Added RETURN_ARR and RETVAL_ARR macrosJin Hu2015-04-081-0/+2
|
* Always throw TypeException on throwing zpp failuresNikita Popov2015-04-061-0/+2
| | | | | | | | | | | | | | Introduces a ZEND_PARSE_PARAMS_THROW flag for zpp, which forces to report FAILURE errors using a TypeException instead of a Warning, like it would happen in strict mode. Adds a zend_parse_parameters_throw() convenience function, which invokes zpp with this flag. Converts all cases I could identify, where we currently have throwing zpp usage in constructors and replaces them with this API. Error handling is still replaced to EH_THROW in some cases to handle other, domain-specific errors in constructors.
* Convert fatal errors into EngineExceptionsDmitry Stogov2015-04-021-1/+2
| | | | Make zval_update_constant_ex(), zval_update_constant(), zend_update_class_constants() and zend_ast_evaluate() return SUCCESS or FAILURE.
* Reclassify E_STRICT noticesNikita Popov2015-04-011-1/+1
| | | | | | | Per RFC https://wiki.php.net/rfc/reclassify_e_strict While reviewing this, found that there are still three E_STRICTs left in libraries - need to discuss those.
* Patch improvement:Dmitry Stogov2015-03-301-6/+0
| | | | | | | | Removed the corresponding core code. Fixed ext/com_dotnet and ext/date. Refactored ext/intl changes. Improved ext/fileinfo and ext/pdo changes. Fixed tests.
* Constness to zend_get_object_type(), thanks Michael!Kalle Sommer Nielsen2015-03-251-1/+1
|
* Change "Cannot redeclare class X" into "Cannot redeclare ↵Kalle Sommer Nielsen2015-03-251-0/+2
| | | | | | | | | | | class/interface/trait X", meaning that the following: C:\> php -r "trait A { } trait A { }" Will now properly print "Cannot redeclare trait A" instead of "Cannot redeclare class A" to make error messages a tiny bit clearer. Admittedly, a better solution can most likely be made by actually telling what the colliding object is a type of. Internally this adds a new function: zend_get_object_type()
* cleanupDmitry Stogov2015-03-251-2/+1
|
* Revert "Use E_ERROR | E_EXCEPTION in FAST_ZPP mode too"Nikita Popov2015-03-221-1/+1
| | | | | | | This reverts commit d4da7c20d2d642a6f0f81bde836576b9970969af. The argument passed to this function refers to the weak mode severity, strict mode will get an exception in any case.
* Use E_ERROR | E_EXCEPTION in FAST_ZPP mode tooBob Weinand2015-03-221-1/+1
|
* ZPP changed to lazely check for "strict/weak" only if it's really necessary.Dmitry Stogov2015-03-201-124/+54
| | | | Cleanup.
* Imroved ZPP rules (condititins reoredered to prevent duplicate checks)Dmitry Stogov2015-03-201-34/+24
|
* Improved type hinting:Dmitry Stogov2015-03-201-1/+1
| | | | | | | | | | EX_PREV_USES_STRICT_TYPES() and family changed/renamed to fit with other macros Optimized zend_verify_internal_arg_type() and family (they don't need "strict" argument anymore) Standerd ZPP is called from VM only for weak type check or strict exception (int -> double) Fixed ZEND_RECV_VARIADIC Fixed ZEND_STRLEN TODO: should we accept IS_NULL for non-nullable arguments?
* Refactor as to not use call info, but add the flag to the op_array.Anthony Ferrara2015-03-191-1/+1
|
* Fix severity issues with callbacks, start work porting ZEND_STRLEN opcode to ↵Anthony Ferrara2015-03-191-3/+3
| | | | work with strict mode, more refactoring to come
* Style cleanup, as well as fixing bug with missing argument for ↵Anthony Ferrara2015-03-181-2/+2
| | | | WRONG_PARAM_COUNT_WITH_RETVAL
* Clean up API renames for zend_wrong_param_count to maintain BC, introducing ↵Anthony Ferrara2015-03-181-8/+6
| | | | a zend_wrong_param_count_ex() function when you know strict value
* Merge in master, fix merge conflicts and update patch to support exceptions ↵Anthony Ferrara2015-03-181-5/+8
|\ | | | | | | everywhere
| * Use specialized macro for string zval creationDmitry Stogov2015-03-121-2/+4
| |
| * Add ZEND_ARG_CALLABLE_INFO to allow internal function to type hint against ↵Rouven Weßling2015-03-081-3/+4
| | | | | | | | callable
* | Merge in masterAnthony Ferrara2015-02-181-1/+1
|\ \ | |/
| * fix data typesAnatol Belski2015-02-121-1/+1
| |
* | Move declare() to the top of the file only, and allow int->float generalizationAnthony Ferrara2015-02-181-1/+1
| |
* | Fix Gd usages of ZEND_WRONG_PARAM_COUNT, add usage noteAndrea Faulds2015-02-101-4/+7
| |
* | Prefix zend_wrong_param_count with _ to discourage useAndrea Faulds2015-02-101-3/+3
| |
* | Partial ZPP strictness implementationAndrea Faulds2015-02-101-37/+58
|/
* PaddingXinchen Hui2015-02-051-3/+3
|
* Implemented internal function return typesReeze Xia2015-02-051-0/+7
|
* zend_read_property() has to provide a holder for return value.Dmitry Stogov2015-01-221-1/+1
| | | | Previously it was possible that zend_read_property() returned pointer to zval allocated on stack.
* typoRasmus Lerdorf2015-01-171-1/+1
|