ID:               32370
 User updated by:  codebowl at gmail dot com
 Reported By:      codebowl at gmail dot com
 Status:           Open
 Bug Type:         Class/Object related
 Operating System: Windows XP Pro SP 2
 PHP Version:      5.0.3
 New Comment:

http://codebowl.dontexist.net/source/SvEx.phps

is the url to the SvEx class file, there was a typo with the Sc part of
the filename.


Previous Comments:
------------------------------------------------------------------------

[2005-03-19 00:57:01] codebowl at gmail dot com

Description:
------------
I have 2 class files, one that extends the built in Exceptions class
and one that extends this class

Built In Exceptions
|
|
+- SvEx Class
 |
 |
 +- ApplicationEx Class

The problem lies in class constants.

The SvEx class and Application Class both have thier own constants
named ERR_TYPE and ERR_DESC for some reason when i throw an
ApplicationEx Exception it is using the constants from the SvEx
Exception class.


Reproduce code:
---------------
You can see the code files here

http://codebowl.dontexist.net/source/ScEx.phps
http://codebowl.dontexist.net/source/Application.phps
http://codebowl.dontexist.net/source/Trigger.phps

Expected result:
----------------
I would expect that it would set the $this->_error['type'] and ['desc']
with the appropriate constant values. When i throw an ApplicationEx it
should use the ApplicationEx::ERR_TYPE etc..

Everything else set's properly such as the error message blah blah, you
can see an example of the results here

http://codebowl.dontexist.net/clients/JVMedia/SimonVolkov/global.php

Actual result:
--------------
For some reason it is setting them to the values in the SvEx Exception
Class


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32370&edit=1

Reply via email to