|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-24 10:46 UTC] sniper@php.net
[2005-11-24 22:03 UTC] pb at tdcspace dot dk
[2005-11-24 22:08 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 06:00:02 2025 UTC |
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); }