From:             pd at tdcspace dot dk
Operating system: RedHat nix*
PHP version:      4.4.1
PHP Bug Type:     *General Issues
Bug description:  exit does not terminate

Description:
------------
just found that the... 

exit() 

inside a function does not terminate the script

below is a func that test for the precense of a dummy file which states
that a previous job went well (if not - then terminate).

well it did give the message - but continued !

NOTE: PHP IS RUN AS CLI FROM CMD-LINE

Reproduce code:
---------------
function TestKillChkfile()
{
global $fn_check;
  if (!file_exists($fn_check)) exit("\r\nError : No check file");
  unlink($fn_check);
}


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

Reply via email to