#32370 [Opn->Fbk]: Object Constants
| From: | tony2001@php.net | Date: | Sat, 19 Mar 2005 11:17:03 +0000 |
| Subject: | #32370 [Opn->Fbk]: Object Constants | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75512@lists.php.net to get a copy of this message | ||
ID: 32370
Updated by: tony2001@php.net
Reported By: codebowl at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Class/Object related
Operating System: Windows XP Pro SP 2
PHP Version: 5.0.3
New Comment:
Could you provide a smaller. but still working & complete reproduce
script, please ?
Previous Comments:
------------------------------------------------------------------------
[2005-03-19 00:58:23] codebowl at gmail dot com
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.
------------------------------------------------------------------------
[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