summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Allow to throw instances of classes derived from exceptionMarcus Boerger2003-08-241-4/+13
|
* - Provide a unified way to display uncaught exceptions, which showsMarcus Boerger2003-08-241-0/+21
| | | | | | | file/line/message info if possible. - Add zend_eval_string_ex() to be able to handle exceptions in eval'd code. - Use above function to fix memleaks in CLI.
* Make use method macrosMarcus Boerger2003-08-241-10/+10
|
* Add property read code and use that in default exception classMarcus Boerger2003-08-241-9/+7
|
* Allow zend_throw_exception() to also set the exception codeMarcus Boerger2003-08-231-16/+8
|
* Exception has 4 protected default properties (message,code,file,line).Marcus Boerger2003-08-231-14/+30
| | | | | They are all initialized at c-level constructor correctly.
* Make exception code more robustMarcus Boerger2003-08-231-16/+11
|
* Add function 'zend_throw_exception(char *message, int duplicate TSRMLS_DC);'Marcus Boerger2003-08-211-0/+25
| | | | | to provide an easy way to throw exceptions for extension developers.
* added support for Reflection_Function, the first part ofGeorge Schlossnagle2003-06-301-0/+2
| | | | | the reflection api
* updating license information in the headers.James Cox2003-06-101-1/+1
|
* add an accessor for the default exceptionSterling Hughes2003-05-031-0/+5
|
* ZTS fix.Sebastian Bergmann2003-03-231-1/+1
|
* Add new files to ZendTS.dsp. Sync list of files in Zend.dsp with ZendTS.dsp. ↵Sebastian Bergmann2003-03-231-7/+7
| | | | ZTS fixes.
* add a standard Exception class.Sterling Hughes2003-03-231-0/+135