From:             faw217 at gmail dot com
Operating system: Ubuntu GNU/Linux 8.04
PHP version:      5.3.0alpha1
PHP Bug Type:     Feature/Change Request
Bug description:  What about making destructors not run after calling die()?

Description:
------------
Hi, I was just wondering, how to make a destructor in a class not run in
some sort of situations (especially: after calling die() function) and then
I realised that it's impossible. But actually why?

Of course I can call a function manually but I think destructors were
created so that I can use them at the end of script execution time. That's
why I don't see a reason, why I shouldn't use them.
Of course I can use also register_shutdown_function(); but then I can't
change the output, since it is executed after ending with sending request
to webbrowser.

I think this feature (or change, call it as you want) will be sth, what
will make die() function different from exit language construct.

Consider this, please.


-- 
Edit bug report at http://bugs.php.net/?id=45845&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45845&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45845&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45845&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45845&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45845&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45845&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45845&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45845&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45845&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45845&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45845&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45845&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45845&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45845&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45845&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45845&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45845&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45845&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45845&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45845&r=mysqlcfg

Reply via email to