Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update copyright headers to 2017 | Sammy Kaye Powers | 2017-01-04 | 1 | -1/+1 |
| | |||||
* | Fix bug #73147: Use After Free in PHP7 unserialize() | Stanislav Malyshev | 2016-10-12 | 1 | -0/+1 |
| | | | | (cherry picked from commit 0e6fe3a4c96be2d3e88389a5776f878021b4c59f) | ||||
* | Remove zpp fallback code (always use Fast ZPP) | Andrea Faulds | 2016-09-11 | 1 | -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 wording | Joe Watkins | 2016-05-04 | 1 | -2/+1 |
| | |||||
* | bump year which is missed in rev 49493a2 | Xinchen Hui | 2016-01-02 | 1 | -1/+1 |
| | |||||
* | Revert "fix typos "paramer" -> "parameters"" | Xinchen Hui | 2015-12-08 | 1 | -6/+6 |
| | | | | | | ABI BC break This reverts commit 6ac12f13379f3fc19f07abb9d1055274e5f98838. | ||||
* | fix typos "paramer" -> "parameters" | Márcio Almada | 2015-12-07 | 1 | -6/+6 |
| | |||||
* | Short-circuit zend_parse_parameters_none() so that expensive zpp() call ↵ | Bob Weinand | 2015-09-20 | 1 | -4/+4 |
| | | | | never happens in non-exceptional case | ||||
* | Add myself into list of authors of the most refactored files. | Dmitry Stogov | 2015-08-31 | 1 | -0/+1 |
| | |||||
* | Mark error and exception functions as "cold" (Matt's idea) | Dmitry Stogov | 2015-08-19 | 1 | -5/+5 |
| | |||||
* | Removed unused code | Julien Pauli | 2015-08-18 | 1 | -3/+0 |
| | |||||
* | add macro to access globals as whole | Anatol Belski | 2015-07-30 | 1 | -0/+2 |
| | |||||
* | add unified globals accessor macro | Anatol Belski | 2015-07-29 | 1 | -0/+2 |
| | |||||
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵ | Dmitry Stogov | 2015-06-30 | 1 | -3/+3 |
| | | | | semantick changes). | ||||
* | Improved zend_string API (Francois Laupretre) | Dmitry Stogov | 2015-06-29 | 1 | -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_info | Bob Weinand | 2015-06-12 | 1 | -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 Stogov | 2015-06-12 | 1 | -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 call | Remi Collet | 2015-05-19 | 1 | -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 Stogov | 2015-05-19 | 1 | -1/+2 |
| | | | | -Wmaybe-uninitialized compilation warnings) (Remi) | ||||
* | Use zend_string to represent pdo_column_data.name and avoid duplication. | Dmitry Stogov | 2015-05-05 | 1 | -0/+1 |
| | |||||
* | Added RETURN_ARR and RETVAL_ARR macros | Jin Hu | 2015-04-08 | 1 | -0/+2 |
| | |||||
* | Always throw TypeException on throwing zpp failures | Nikita Popov | 2015-04-06 | 1 | -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 EngineExceptions | Dmitry Stogov | 2015-04-02 | 1 | -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 notices | Nikita Popov | 2015-04-01 | 1 | -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 Stogov | 2015-03-30 | 1 | -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 Nielsen | 2015-03-25 | 1 | -1/+1 |
| | |||||
* | Change "Cannot redeclare class X" into "Cannot redeclare ↵ | Kalle Sommer Nielsen | 2015-03-25 | 1 | -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() | ||||
* | cleanup | Dmitry Stogov | 2015-03-25 | 1 | -2/+1 |
| | |||||
* | Revert "Use E_ERROR | E_EXCEPTION in FAST_ZPP mode too" | Nikita Popov | 2015-03-22 | 1 | -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 too | Bob Weinand | 2015-03-22 | 1 | -1/+1 |
| | |||||
* | ZPP changed to lazely check for "strict/weak" only if it's really necessary. | Dmitry Stogov | 2015-03-20 | 1 | -124/+54 |
| | | | | Cleanup. | ||||
* | Imroved ZPP rules (condititins reoredered to prevent duplicate checks) | Dmitry Stogov | 2015-03-20 | 1 | -34/+24 |
| | |||||
* | Improved type hinting: | Dmitry Stogov | 2015-03-20 | 1 | -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 Ferrara | 2015-03-19 | 1 | -1/+1 |
| | |||||
* | Fix severity issues with callbacks, start work porting ZEND_STRLEN opcode to ↵ | Anthony Ferrara | 2015-03-19 | 1 | -3/+3 |
| | | | | work with strict mode, more refactoring to come | ||||
* | Style cleanup, as well as fixing bug with missing argument for ↵ | Anthony Ferrara | 2015-03-18 | 1 | -2/+2 |
| | | | | WRONG_PARAM_COUNT_WITH_RETVAL | ||||
* | Clean up API renames for zend_wrong_param_count to maintain BC, introducing ↵ | Anthony Ferrara | 2015-03-18 | 1 | -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 Ferrara | 2015-03-18 | 1 | -5/+8 |
|\ | | | | | | | everywhere | ||||
| * | Use specialized macro for string zval creation | Dmitry Stogov | 2015-03-12 | 1 | -2/+4 |
| | | |||||
| * | Add ZEND_ARG_CALLABLE_INFO to allow internal function to type hint against ↵ | Rouven Weßling | 2015-03-08 | 1 | -3/+4 |
| | | | | | | | | callable | ||||
* | | Merge in master | Anthony Ferrara | 2015-02-18 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | fix data types | Anatol Belski | 2015-02-12 | 1 | -1/+1 |
| | | |||||
* | | Move declare() to the top of the file only, and allow int->float generalization | Anthony Ferrara | 2015-02-18 | 1 | -1/+1 |
| | | |||||
* | | Fix Gd usages of ZEND_WRONG_PARAM_COUNT, add usage note | Andrea Faulds | 2015-02-10 | 1 | -4/+7 |
| | | |||||
* | | Prefix zend_wrong_param_count with _ to discourage use | Andrea Faulds | 2015-02-10 | 1 | -3/+3 |
| | | |||||
* | | Partial ZPP strictness implementation | Andrea Faulds | 2015-02-10 | 1 | -37/+58 |
|/ | |||||
* | Padding | Xinchen Hui | 2015-02-05 | 1 | -3/+3 |
| | |||||
* | Implemented internal function return types | Reeze Xia | 2015-02-05 | 1 | -0/+7 |
| | |||||
* | zend_read_property() has to provide a holder for return value. | Dmitry Stogov | 2015-01-22 | 1 | -1/+1 |
| | | | | Previously it was possible that zend_read_property() returned pointer to zval allocated on stack. | ||||
* | typo | Rasmus Lerdorf | 2015-01-17 | 1 | -1/+1 |
| |