summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch 'PHP-7.4'Joe Watkins2019-07-021-1/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: simple ignore arguments in exceptions implementation
| * | simple ignore arguments in exceptions implementationJoe Watkins2019-07-021-1/+3
| | |
* | | Merge branch 'PHP-7.4'Nikita Popov2019-02-251-12/+24
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-02-251-12/+24
| |\ \ | | |/
| | * Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-02-251-12/+24
| | |\
| | | * Fix assertion in Exception::getMessage() if $message is a refNikita Popov2019-02-251-12/+24
| | | | | | | | | | | | | | | | And same for other properties. Encountered in Symfony.
| | * | Future-proof email addressesZeev Suraski2018-11-011-2/+2
| | | |
* | | | Refactor zend_object_handlers API to pass zend_object* and zend_string* ↵Dmitry Stogov2019-02-041-1/+1
|/ / / | | | | | | | | | insted of zval(s).
* | | 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
| | |
* | | Revert removal of private __clone() methodsNikita Popov2019-01-141-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I thought these were redundant, because we already NULL out the clone_obj object handler. However, it turns out that reflection is using private __clone() to determine clonability (isCloneable) for the case where we only have a class, rather than an object. As such, removing these methods would be a BC break. This reverts commit e7131a4e9fa0acf8fc1e486b49851e71859ef5b8. This reverts commit 55bd88ce0d1bf461546d5d0b40920491d566ed48.
* | | Remove redundant Exception::__clone() methodNikita Popov2018-11-261-10/+0
| | | | | | | | | | | | | | | | | | Exceptions already prohibit cloning by setting clone_obj to NULL (which is integrated with reflection). No need to additionally define a dummy __clone() method.
* | | Use ZEND_THIS macro to hide implementation details in extensions code.Dmitry Stogov2018-11-151-14/+14
| | |
* | | Replace getThis() by EX(This), when additional check is not necessary.Dmitry Stogov2018-11-141-14/+14
| | |
* | | Update email addresses. We're still @Zend, but future proofing it...Zeev Suraski2018-11-011-2/+2
| | |
* | | Fix some misspellingsGabriel Caruso2018-08-121-1/+1
|/ /
* | 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