PHP 5.2.6 not giving or logging any errors

I've got a freshly installed PHP 5.2.6 (with a freshly installed Apache
2.2.8) on a Windows XP SP2 box (yes, I know SP3 is out).

Any file with even the slightest error in it (even a missing comma or
semicolon) causes PHP to balk.

Even a simple test script:
<?php echo 'Hello' echo ' World!'; ?>
causes PHP to output 0 bytes. No errors output, no errors logged.

In php.ini, display_errors = on, error_reporting = E_ALL.
I've also tried setting them in the script -
ini_set('display_errors',1); error_reporting(E_ALL);


Using PHP-CLI nets the same results. PHP stops in less than half a
second with zero output. The same script with no error takes 5 seconds
and then spits out the output.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hilton Janfield [ Di, 03 Juni 2008 06:27 ] [ ID #1955019 ]

RE: PHP 5.2.6 not giving or logging any errors

I had this occur with a wamp server package that I installed, seems strict
was set and the error log file was not set or was set to null. I suggest
you start adding the php.ini overrides in your script to setup exactly the
error reporting you want, includig a location the log file, with full write
permissions to the world, of course, keep in mind that stuff that runs under
apache should run without a userid or something like that.

I believe your simple script has an error in it;

<?php echo 'Hello' echo ' World!'; ?> should be
<?php echo 'Hello';echo ' World!'; ?>

Your first echo statement needs to end before beginning the next statement.

HTH,

Warren

> -----Original Message-----
> From: Hilton Janfield [mailto:hjanfield [at] shaw.ca]
> Sent: Monday, June 02, 2008 9:28 PM
> To: php-windows [at] lists.php.net
> Subject: [PHP-WIN] PHP 5.2.6 not giving or logging any errors
>
> I've got a freshly installed PHP 5.2.6 (with a freshly
> installed Apache
> 2.2.8) on a Windows XP SP2 box (yes, I know SP3 is out).
>
> Any file with even the slightest error in it (even a missing comma or
> semicolon) causes PHP to balk.
>
> Even a simple test script:
> <?php echo 'Hello' echo ' World!'; ?>
> causes PHP to output 0 bytes. No errors output, no errors logged.
>
> In php.ini, display_errors = on, error_reporting = E_ALL.
> I've also tried setting them in the script -
> ini_set('display_errors',1); error_reporting(E_ALL);
>
>
> Using PHP-CLI nets the same results. PHP stops in less than half a
> second with zero output. The same script with no error takes
> 5 seconds
> and then spits out the output.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Warren Vail [ Mi, 04 Juni 2008 08:34 ] [ ID #1955020 ]
PHP » gmane.comp.php.windows » PHP 5.2.6 not giving or logging any errors

Vorheriges Thema: mime_content_type remote file
Nächstes Thema: WMI call to run a remote application