summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Avoid magic method hash lookupsDmitry Stogov2018-07-021-1/+1
|
* Merge branch 'PHP-7.2'Nikita Popov2018-06-241-1/+1
|\
| * Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-06-241-1/+1
| |\
| | * Fixed bug #76502Nikita Popov2018-06-241-1/+1
| | |
| | * year++Xinchen Hui2018-01-021-1/+1
| | |
| * | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Fixed bug #75218Nikita Popov2018-06-161-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've introduced a new CompileError type, from which ParseError inherits. These errors are not parse errors in the narrow sense of the term, even though they happen to be generated during parsing in our implementation. Additionally reusing the ParseError class for this purpose would change existing error messages (if the exception is not caught) from a "Fatal error:" to a "Parse error:" prefix, and also the error kind from E_COMPILE_ERROR to E_PARSE.
* | | Export standard object handlers, to avoid indirect accessDmitry Stogov2018-05-311-1/+1
| | |
* | | Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-11/+11
| | | | | | | | | | | | where we sure about string persistence.
* | | Use reference counting instead of duplicationDmitry Stogov2018-03-061-5/+4
| | |
* | | Revert "[ci skip] Add missing return types to protos"Christoph M. Becker2018-02-271-2/+2
| | | | | | | | | | | | | | | | | | | | | This reverts commit a2c7c46d5ef5b9fc945d7b655d31d5c9f1a72d34. Since apparently there have been some mistakes in this commit, and it's not clear yet how to solve them, we're reverting for now.
* | | [ci skip] Add missing return types to protosGabriel Caruso2018-02-241-2/+2
| | |
* | | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
| | |
* | | Use cheaper functionsDmitry Stogov2017-12-041-3/+3
| | |
* | | Revert "Use zend_get_executed_filename_ex"Xinchen Hui2017-11-021-1/+2
| | | | | | | | | | | | This reverts commit 2a37625c20032d54af55a88d54d1a3a1ecc068d1.
* | | Use zend_get_executed_filename_exXinchen Hui2017-11-011-2/+1
| | |
* | | 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.
* | | Refactored recursion pretectionDmitry Stogov2017-10-061-4/+4
|/ /
* | further sync for vim mode linesAnatol Belski2017-07-041-0/+2
| |
* | Interned strings unification for TS/NTSAnatol Belski2017-03-041-34/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | rework fd521a22 to simplify for master, see github #2356Anatol Belski2017-02-071-5/+1
| |
* | Merge branch 'PHP-7.1'Anatol Belski2017-02-071-2/+2
|\ \ | |/ | | | | | | * PHP-7.1: switch to smart str conversion routine to hide exact NAN type
| * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-02-071-2/+2
| |\ | | | | | | | | | | | | * PHP-7.0: switch to smart str conversion routine to hide exact NAN type
| | * switch to smart str conversion routine to hide exact NAN typeAnatol Belski2017-02-071-2/+2
| | | | | | | | | | | | see https://github.com/php/php-src/pull/2356#issuecomment-277564135
| | * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | |
| * | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | |
* | | Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
| | |
* | | Export zend_s(tr)pprintfNikita Popov2017-01-011-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | It's annoying that in Zend you have to use zend_strpprintf instead of strpprintf, while in PHP you have to use strpprintf instead of zend_strpprintf. Make zend_s(tr)pprintf always available and keep s(tr)pprintf as macro aliases.
* | | Merge branch 'PHP-7.1'Dmitry Stogov2016-12-071-1/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Check if PHP is in execution state.
| * | Merge branch 'PHP-7.0' into PHP-7.1Dmitry Stogov2016-12-071-1/+3
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Check if PHP is in execution state.
| | * Check if PHP is in execution state.Dmitry Stogov2016-12-071-1/+3
| | |
* | | further normalizations, uint vs uint32_tAnatol Belski2016-11-261-2/+2
|/ / | | | | | | | | | | fix merge mistake yet one more replacement run
* | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2016-10-221-2/+3
|\ \ | |/ | | | | | | * PHP-7.0: Fixed bug #73350 (Exception::__toString() cause circular references)
| * Fixed bug #73350 (Exception::__toString() cause circular references)Xinchen Hui2016-10-221-2/+3
| |
| * Revert "export symbol missing by phpdbg"Anatol Belski2016-10-131-0/+12
| | | | | | | | | | | | This reverts commit 611ab7fe5b9fe41de56c25b1d348a866794b1fb1. Overseen strpprintf is there
| * export symbol missing by phpdbgAnatol Belski2016-10-121-12/+0
| |
| * Fix bug #73190: memcpy negative parameter _bc_new_num_exStanislav Malyshev2016-10-121-5/+21
| | | | | | | | (cherry picked from commit 40e7baab3c90001beee4c8f0ed0ef79ad18ee0d6)
* | Revert "export symbol missing by phpdbg"Anatol Belski2016-10-141-0/+12
| | | | | | | | | | | | | | | | This reverts commit 611ab7fe5b9fe41de56c25b1d348a866794b1fb1. Overseen strpprintf is there (cherry picked from commit 3104882cf873308c43dca20bdfd698dd3470a246)
* | fix another mistakeAnatol Belski2016-10-141-1/+1
| | | | | | | | (cherry picked from commit bec0121733cc5777c4d3fde8e9ff56fe68c039d3)
* | export symbol missing by phpdbgAnatol Belski2016-10-141-12/+0
| | | | | | | | (cherry picked from commit 611ab7fe5b9fe41de56c25b1d348a866794b1fb1)
* | fix wrong mergeAnatol Belski2016-10-141-4/+3
| | | | | | | | (cherry picked from commit 821a230f290b7457d4223001286afe00fe887277)
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-10-141-4/+21
| | | | | | | | | | | | | | * PHP-7.0: Fix bug #73190: memcpy negative parameter _bc_new_num_ex (cherry picked from commit af1bf873fe4fc70be17fa9f270e8f30666f2d2db)
* | Implement \ArgumentCountError exceptionDavey Shafik2016-08-301-1/+6
| |
* | Merge branch 'PHP-7.0'Nikita Popov2016-07-141-0/+2
|\ \ | |/ | | | | | | Conflicts: Zend/zend_vm_execute.h
| * Fix leak of class name when printing exception backtraceNikita Popov2016-07-141-0/+1
| |
| * Fix leak if throw_exception_object() failsNikita Popov2016-07-141-0/+1
| |
* | Merge branch 'PHP-7.0'Xinchen Hui2016-07-121-2/+1
|\ \ | |/ | | | | | | | | | | | | * PHP-7.0: Fixed bug #72581 (previous property undefined in Exception after deserialization) Conflicts: Zend/zend_exceptions.c
| * Fixed bug #72581 (previous property undefined in Exception after ↵Xinchen Hui2016-07-121-2/+1
| | | | | | | | deserialization)