php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15927 Crash(?) on Syntax Error
Submitted: 2002-03-07 05:21 UTC Modified: 2002-03-07 06:49 UTC
From: richter at jakota dot de Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Linux 2.4.17/RH 7.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: richter at jakota dot de
New email:
PHP Version: OS:

 

 [2002-03-07 05:21 UTC] richter at jakota dot de
<?php
echo('X');
error_log('X', 0);
$daten_verlag[$rubrik['id']]] = $daten_rubrik;
?>

One bracket too much!
This makes PHP issue just 5 Bytes to the browser, regardless of any code following or preceeding this line.
I think it doesn't even execute the code because there doesn't appear anything in the logs, too.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-07 05:24 UTC] derick@php.net
If there is a parse error, the script doesn't execute.

Not a bug > bogus
 [2002-03-07 05:25 UTC] mfischer@php.net
This just gives a parser error for me (tested with 4.0.6 and current cvs).
 [2002-03-07 05:35 UTC] richter at jakota dot de
Okay, perhaps I should stressen that there is no error mesage whatsoever. In my case, it took me several hours to find this little one. It's very annoying that PHP doesn't issue a syntax error message.
 [2002-03-07 05:57 UTC] hholzgra@php.net
... and your php.ini error_reporting settings are?
 [2002-03-07 06:27 UTC] richter at jakota dot de
Thank you, you pointed me to the reason for my problem:
In the .htaccess file I found:
    php_value display_errors true
must be:
    php_flag display_errors on

That means: Due to this syntactically wrong statement in the htaccess-file PHP overides the default and sets this flag to "false". I think this is not the desired behaviour,
isn't it?
 [2002-03-07 06:49 UTC] hholzgra@php.net
"php_value display_errors true" is perfectly valid, 
just that (string)"true" is converted to (int)"true"
which is zero


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 14:00:03 2025 UTC