summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
Commit message (Collapse)AuthorAgeFilesLines
...
* - Add new class ErrorException to encapsulate errors in exceptionsMarcus Boerger2004-07-151-15/+93
|
* Revert; obviously I missed the function at the bottom of the file...Wez Furlong2004-05-201-1/+1
|
* Export this, so extensions may throw their own exception objects thatWez Furlong2004-05-201-1/+1
| | | | | they have already instantiated.
* Classnames shall start with an uppercase characterMarcus Boerger2004-04-131-1/+1
|
* - Add hook for exception handler (Derick)Andi Gutmans2004-04-131-0/+5
|
* - Fix crash in exception handling (zend_exception_error(...) andAndi Gutmans2004-03-011-3/+1
| | | | | zend_eval_string_ex() were buggy (Dmitry, Andi)
* Improve error messagesfoobar2004-02-251-3/+3
|
* - Fixed bug #27391 (typo in Fatal Error message).Derick Rethans2004-02-251-1/+1
|
* Centralize exceptions code in zend_exceptions.[ch].Zeev Suraski2004-02-121-11/+42
| | | | | | | | Remove zend_default_classes.h (use zend_exceptions.h instead) NOTE: This currently breaks the build, fixes to php-src and pecl coming soon
* Exceptions updates:Zeev Suraski2004-02-121-27/+22
| | | | | | | | - Enforce exceptions to be derived from class Exception. This allows users to perform catch-all. It's not yet complete, so don't get comfortable with it just yet :) Updates are coming soon. - Implement zend_throw_exception() using zend_throw_exception_ex()
* Fix bug #27186Zeev Suraski2004-02-101-47/+61
|
* Rewrote exception support. Fixes a few limitations and bugs in the oldZeev Suraski2004-02-031-2/+2
| | | | | | | | | | | implementation, and allows exceptions to 'fire' much earlier than before. Instructions on how to use the new mechanism will follow on internals@ shortly... Note - this (most probably) breaks the current implementation of set_exception_handler()
* Fix internal access to exception propertiesMarcus Boerger2004-01-221-14/+14
|
* - Happy new year and PHP 5 for rest of the files too..foobar2004-01-081-1/+1
| | | | | # Should the LICENSE and Zend/LICENSE dates be updated too?
* Do not show exception message if it's empty.Andrei Zmievski2004-01-021-4/+10
| | | | | # Is there a way to preserve the case of the exception class here?
* Make default message look better.Andrei Zmievski2003-12-311-1/+1
|
* Show the exception message again after __toString() magic has been dropped.Marcus Boerger2003-12-061-8/+12
|
* Fixed crash demonstrated with ext/dom/tests/dom003.phpt test case.Ilia Alshanetsky2003-12-051-3/+3
|
* Check return value of exception::__tostring()Marcus Boerger2003-11-301-39/+6
|
* Make exception code more robust:Marcus Boerger2003-11-291-9/+40
| | | | | | | - Fix error in calculation of trace-string length - Allow to overload __strostring() and make it work for uncaught exceptions - Show exception thrown while displaying exceptions
* This forces a better error message for non working clone calls.Marcus Boerger2003-10-251-0/+1
|
* And use things to throw an exception hereMarcus Boerger2003-10-251-2/+3
|
* You shall not clone Exception instancesMarcus Boerger2003-10-251-0/+7
|
* Impement userspace iterator interfaces and tests. See tests for detailsMarcus Boerger2003-10-221-0/+2
| | | | | on the names.
* The string conversion method should be named __toString()Marcus Boerger2003-10-221-5/+5
|
* Added c-api for iteratorsMarcus Boerger2003-10-171-0/+1
| | | | | # After 4 Month work and endless discussions...
* Fix cast functionMarcus Boerger2003-10-151-3/+3
|
* Use studlyCaps in exception classMarcus Boerger2003-09-171-14/+14
|
* Use type instead of constantMarcus Boerger2003-09-111-1/+1
|
* Disallow to changing the backtraceMarcus Boerger2003-09-061-1/+1
|
* Provide string casting for exceptions by calling toString()Marcus Boerger2003-09-051-2/+21
|
* Fix handling of static properties initialized to arraysMarcus Boerger2003-09-031-6/+6
|
* Don't loose information if no parameters were shown.Marcus Boerger2003-09-011-1/+4
| | | | | # Noticed by Sebatian Bergmann
* Show {main} and prevent showing empty stack tracesMarcus Boerger2003-09-011-6/+11
|
* Clearify thisMarcus Boerger2003-09-011-2/+7
|
* Revert what I think is an accidental commit by Marcus that slipped in at ↵Sebastian Bergmann2003-09-011-1/+1
| | | | revision 1.23. Declaring getMessage() as final is a PITA, so I hope it will not come to that.
* Excluded chars < 32 when displaying string parameters that would obliterate ↵Marcus Boerger2003-08-311-2/+12
| | | | output.
* Make vspprintf available as zend utility function. Use it in exception output.Marcus Boerger2003-08-311-13/+4
|
* Actually fetch the parameterMarcus Boerger2003-08-301-0/+1
|
* - Calling abstract methods should be a error for consistency reason.Marcus Boerger2003-08-301-9/+0
| | | | | - So in reflection_api we use the reflection_exception again.
* Even though it is ignored this should be correctMarcus Boerger2003-08-301-1/+1
|
* Add frame numer and finally display stack trace in the message.Marcus Boerger2003-08-301-7/+32
| | | | | | | | # # And voila - nice useable and helpfull exceptions in PHP. # Now we need to tell ppl 'anyway don't use them if possible'. #
* Add exception::traceAsString() and exception::toString()Marcus Boerger2003-08-301-4/+197
|
* - The compiler can't detect all abstract function calls so we need to check.Marcus Boerger2003-08-301-3/+12
| | | | | | # In this case throwing a dedicated exception is better than the error we # show when the compiler can detect the abstract call because its run-time.
* Make those final (see comment)Marcus Boerger2003-08-301-5/+9
|
* Need to tell zend_fetch_debug_backtrace() whether to skip top function or not.Marcus Boerger2003-08-291-1/+1
| | | | | # And i wondered why the trace wasn't rally accurate.
* Add public read access to protectedMarcus Boerger2003-08-281-0/+8
|
* Add zend_throw_exception_ex() which allows to format exception messages.Marcus Boerger2003-08-281-0/+47
| | | | | | | | | # # Since we don't have any portable way of printing into a dynamic buffer i # used a stack buffer of 1K (just like the error printing) and used a dynamic # buffer in case the necessary function is available. #
* - Split debug_backtrace() into lowlevel c function and php function wrapperMarcus Boerger2003-08-281-0/+9
| | | | | | | | - Add trace property to default method based on new zend_fetch_debug_backtrace # Unforunatley the handler for uncaught exception can't show this backtrace # simply because there is currently no way to do it. If i can think of a # solution i'll add it. Until them i am open to any ideas/help.
* - Provide appropriate way to destroy internal zval's.Marcus Boerger2003-08-241-2/+1
| | | | | | - Allow internal zval's of type string and disallow complex types. - Define the default string for extensions at class level instead of ctor.