Re: exit in class constructor crashes
| From: | Daniel Convissor | Date: | Mon, 31 Jul 2000 14:24:09 +0000 |
| Subject: | Re: exit in class constructor crashes | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9164@lists.php.net to get a copy of this message | ||
DUH!
Daniel Convissor wrote:
>
> Further thought led me to
> the idea to have the sub-function return some value, which I'll evaluate in
> the constructor function. If the value indicates a problem in the
> sub-function, I'll then call call a "return" in the constructor function.
Uh, I just remembered the main reason why I didn't contemplate using "return"
initially, and why I need to go back to my initial fakeout include
workaround: I want things to halt. If I use a reutrn in the constructor
function, the rest of the constructor function won't happen, BUT the rest of
the script which started the class will continue to execute, presenting
security problems.
That's all from me on this subject, unless asked.
Bye!
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
More than just answers. Solutions. (SM)
http://www.analysisandsolutions.com/
4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409