note 102954 added to function.exit
| From: | drea at uoguelph dot ca | Date: | Wed, 16 Mar 2011 15:38:21 +0000 |
| Subject: | note 102954 added to function.exit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177938@lists.php.net to get a copy of this message | ||
Mysteriously, both exit ([ string $status ] ) and die ([ string $status ] ) output to stdout instead
of stderr. To test:
die.php
<?php
die("a str\n");
?>
$php -q die.php 2> die.txt
a str
$
----
Server IP: 66.207.199.35
Probable Submitter: 131.104.72.48
----
Manual Page -- http://www.php.net/manual/en/function.exit.php
Edit -- https://master.php.net/note/edit/102954
Del: integrated -- https://master.php.net/note/delete/102954/integrated
Del: useless -- https://master.php.net/note/delete/102954/useless
Del: bad code -- https://master.php.net/note/delete/102954/bad+code
Del: spam -- https://master.php.net/note/delete/102954/spam
Del: non-english -- https://master.php.net/note/delete/102954/non-english
Del: in docs -- https://master.php.net/note/delete/102954/in+docs
Del: other reasons-- https://master.php.net/note/delete/102954
Reject -- https://master.php.net/note/reject/102954
Search -- https://master.php.net/manage/user-notes.php