ID:               35361
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pd at tdcspace dot dk
-Status:           Open
+Status:           Feedback
 Bug Type:         *General Issues
 Operating System: RedHat nix*
 PHP Version:      4.4.1
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.




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

[2005-11-24 10:38:18] pd at tdcspace dot dk

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 this bug report at http://bugs.php.net/?id=35361&edit=1

Reply via email to