summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.h
Commit message (Collapse)AuthorAgeFilesLines
* Improve type declarations for Zend APIsGeorge Peter Banyard2020-08-281-1/+1
| | | | | | | | | Voidification of Zend API which always succeeded Use bool argument types instead of int for boolean arguments Use bool return type for functions which return true/false (1/0) Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics Closes GH-6002
* Accept zend_object* in zend_get_exception_baseNikita Popov2020-08-071-1/+1
|
* Add more argument types to stubsMáté Kocsis2020-08-071-2/+2
| | | | Closes GH-5943
* Implement match expressionIlija Tovilo2020-07-091-0/+1
| | | | | | RFC: https://wiki.php.net/rfc/match_expression_v2 Closes GH-5371.
* Make exit() unwind properlyNikita Popov2020-06-291-1/+4
| | | | | | | | | | | exit() is now internally implemented by throwing an exception, performing a normal stack unwind and a clean shutdown. This ensures that no persistent resource leaks occur. The exception is internal, cannot be caught and does not result in the execution of finally blocks. This may be relaxed in the future. Closes GH-5768.
* Pass zend_string message to zend_error_cbNikita Popov2020-06-051-1/+1
| | | | | | | | | | | | | | This makes the zend_error_cb API simpler, and avoid formatting the same message in multiple places. It should be noted that the passed zend_string is always non-persistent, so if you want to store it persistently somewhere, you may still need to duplicate it. The last_error_message is cleared a bit more aggressive, to make sure it doesn't hang around across allocator life-cycles. Closes GH-5639.
* add ValueErrorPeter Cowburn2019-09-091-0/+1
| | | | | | ValueError is intended to be thrown when a function or method receives an argument that has the right type (incorrect type should throw a TypeError) but an inappropriate value.
* 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
|
* Update email addresses. We're still @Zend, but future proofing it...Zeev Suraski2018-11-011-2/+2
|
* 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.
* Fixed bug #75218Nikita Popov2018-06-161-0/+1
| | | | | | | | | | | 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.
* year++Xinchen Hui2018-01-021-1/+1
|
* further sync for vim mode linesAnatol Belski2017-07-041-0/+2
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Export zend_s(tr)pprintfNikita Popov2017-01-011-4/+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.
* Fixed compilation errorDmitry Stogov2016-12-121-0/+2
|
* Improved VM stack unwinding on exception.Dmitry Stogov2016-12-121-0/+8
| | | | Now zend_throw_exception_hook() is going to be called only when exception is actually thrown and not going to be recalled for each unwinded finction.
* Implement \ArgumentCountError exceptionDavey Shafik2016-08-301-0/+1
|
* Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-3/+3
| | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
|
* Mark error and exception functions as "cold" (Matt's idea)Dmitry Stogov2015-08-191-5/+5
|
* Switch position of ce in exception ce variable namesAaron Piotrowski2015-07-031-8/+8
|
* Cleanup exception ce APIAaron Piotrowski2015-07-031-4/+11
| | | | | Removed recently added functions to get Error ce's and marked the old functions fetching default_exception_ce and error_exception_ce as deprecated.
* Introduce ArithmeticErrorBob Weinand2015-07-021-0/+1
|
* Use DivisionByZeroError instead of exception for %/intdiv()Bob Weinand2015-07-021-0/+1
|
* Show exception source in phpdbgBob Weinand2015-06-291-0/+1
|
* Move definition of Throwable to zend_exceptions.h/cAaron Piotrowski2015-06-151-0/+2
| | | | | Also moved REGISTER_ITERATOR_INTERFACE macro to zend_interfaces.h and renamed it to REGISTER_INTERFACE.
* Make zend_get_exception_base static.Aaron Piotrowski2015-05-171-2/+0
| | | | Soap extension can use other API functions.
* Remodel exceptions based on Throwable interfaceAaron Piotrowski2015-05-161-4/+5
| | | | | | | | | | | Added Throwable interface that exceptions must implement in order to be thrown. BaseException was removed, EngineException renamed to Error, and TypeException and ParseException renamed to TypeError and ParseError. Exception and Error no longer extend a common base class, rather they both implement the Throwable interface.
* Refactor error implementation significantly to centralize error mode ↵Anthony Ferrara2015-03-181-0/+1
| | | | behavior. Add zend_internal_type_error() function
* Implement engine exceptionsDmitry Stogov2015-03-091-0/+3
| | | | | | | RFC: https://wiki.php.net/rfc/engine_exceptions_for_php7 Pending changes regarding naming of BaseException and whether it should be an interface.
* bump yearXinchen Hui2015-01-151-1/+1
|
* trailing whitespace removalStanislav Malyshev2015-01-101-1/+1
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-15/+15
|
* Expose zend_throw_exception_internal()Dmitry Stogov2014-10-011-1/+1
|
* fix length data typesAnatol Belski2014-09-191-2/+2
|
* several signature and data type fixesAnatol Belski2014-08-261-3/+3
|
* Added vstrpprintf strpprintf to avoid duplicate stringXinchen Hui2014-05-101-0/+1
| | | | (the function name maybe improvement)
* Use better data structures (incomplete)Dmitry Stogov2014-02-101-5/+5
|
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Make message and format arguments const char * to avoidRemi Collet2013-09-231-4/+4
| | | | build warning about invalid cast.
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* - Reverted unintended modificationFelipe Pena2010-08-181-1/+1
|
* align declaration with definitionSascha Schumann2010-08-171-1/+1
| | | | | (patch by kalle)
* sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-051-1/+1
|
* - MFH Catch exceptions in cli -aMarcus Boerger2009-01-021-2/+2
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|