note 89966 added to function.exit
| From: | Tom at osu1 dot php dot net | Date: | Tue, 31 Mar 2009 07:10:30 +0000 |
| Subject: | note 89966 added to function.exit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-152644@lists.php.net to get a copy of this message | ||
@Roumen Semov:
Your example is not entirely correct. You shouldn't use exit(-1), because that might cause
problems with PHP. Most systems' exit codes are one-byte, so exit(-1) would be the same as
exit(255), which is reserved by PHP.
----
Server IP: 69.147.83.197
Probable Submitter: 86.122.168.177
----
Manual Page -- http://www.php.net/manual/en/function.exit.php
Edit -- https://master.php.net/note/edit/89966
Del: integrated -- https://master.php.net/note/delete/89966/integrated
Del: useless -- https://master.php.net/note/delete/89966/useless
Del: bad code -- https://master.php.net/note/delete/89966/bad+code
Del: spam -- https://master.php.net/note/delete/89966/spam
Del: non-english -- https://master.php.net/note/delete/89966/non-english
Del: in docs -- https://master.php.net/note/delete/89966/in+docs
Del: other reasons-- https://master.php.net/note/delete/89966
Reject -- https://master.php.net/note/reject/89966
Search -- https://master.php.net/manage/user-notes.php