note 25646 added to function.exit
| From: | rowos at atlas dot cz | Date: | Tue, 01 Oct 2002 14:27:03 +0000 |
| Subject: | note 25646 added to function.exit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37466@lists.php.net to get a copy of this message | ||
#!/usr/bin/php -q
<?
exit(10);
?>
if I run from shell, the exit status "$?" is set to 255. End of script without exit sets
"$?" to 0. Return returns always 0.
--
http://www.php.net/manual/en/function.exit.php
http://master.php.net/manage/user-notes.php?action=edit+25646
http://master.php.net/manage/user-notes.php?action=delete+25646
http://master.php.net/manage/user-notes.php?action=reject+25646