RE: [PHP] Can't get PHP errors to display or log consistently
| From: | Richard Lynch | Date: | Tue, 20 Mar 2007 00:56:50 +0000 |
| Subject: | RE: [PHP] Can't get PHP errors to display or log consistently | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250867@lists.php.net to get a copy of this message | ||
On Mon, March 19, 2007 12:57 pm, Chris W. Parker wrote:
> On Friday, March 16, 2007 4:04 PM Robert Cummings
> <mailto:robert@interjinn.com> said:
>
> Update:
>
> Now that I've corrected my mistake in php.ini and set the level of
> error
> reporting that I want I can see *most* errors.
>
> But shouldn't the following produce a visible error?
>
> <?php
>
> error_reporting(E_ALL);
> ini_set('display_errors','On');
>
> x
> echo 'hello';
>
> ?>
>
> If I comment the x I see 'hello'. If I uncomment the x I don't see
> anything.
Syntax errors caught by the compile phase abort the running of the
script long before PHP has begun any output.
Do a basic syntax check on the command line with:
php -l whatever.php
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?