Re: [PHP4BETA] strange mail() behaviour
| From: | Tibor Simko | Date: | Fri, 27 Aug 1999 09:07:44 +0000 |
| Subject: | Re: [PHP4BETA] strange mail() behaviour | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3777@lists.php.net to get a copy of this message | ||
>>>>> "SS" == Scott Stevenson <scott@maxify.com> writes:
SS> Did you check to see if true or false is returned?
Yes, I did. True is returned all the time. This seems to be in
accordance with the observation of <wally@wallyware.com> published in
<URL:http://www.php.net/manual/ref.mail.php3>.
>>>>> "BS" == Brian Schaffner <BSchaffner@accentonline.com> writes:
BS> try complining PHP4B2 as command line under your OS and then
BS> run it and see if it works.
Good point. The behaviour is "less cryptic" in the command line mode:
* When "echo
ls;" is commented out, everything works fine and the
exit status is 0.
* When "echo ls;" is uncommented, the script goes "Broken Pipe"
followed by "No recipient addresses found in header". PHP exits
with the status of 141.
It seems like PHP does not grok command syntax. But then, when PHP
runs as Apache module, I wonder (a) why mail() returns always true;
(b) why PHP ignores the "Broken Pipe" problem and processes the script
to its end (the message "bye" gets always printed); (c) why the error
messages do not appear in Apache log files.
-TS