php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19260 PHP does not report parse error, just white screen
Submitted: 2002-09-06 00:06 UTC Modified: 2002-09-06 00:46 UTC
From: kumar at chicagomodular dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.2 OS: Open BSD 3.1
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: kumar at chicagomodular dot com
New email:
PHP Version: OS:

 

 [2002-09-06 00:06 UTC] kumar at chicagomodular dot com
My host has PHP error_reporting set to "3" and I have it 
set locally to "E_ALL & ~E_NOTICE" through a .htaccess file 
(the exact line in the .htaccess is :
php_value error_reporting "E_ALL & ~E_NOTICE"
)

the below code should produce a parse error (no commas 
separating the array elements -- resulting from hastily 
copying and pasting to expand what was once a one element 
array) ...but instead just leaves me with a white screen, 
no html, no errors.

$incInit = array(
	"inc.db.php"
	"class.imageHandle.php"
	"class.sgImageHandle.php"
	);

this white screen has happened on several other strange 
parse errors (of which I don't have examples) and is 
annoying because it takes me longer to find the error.  If 
I put <? error_reporting(E_ALL) ?> at the top of the code, 
it doesn't help.  And if I delete the line in the .htaccess 
file, resorting to the master error_reporting value, it 
also doesn't help.

configure command=
'./configure' '--without-db' '--with-apache=./apache' 
'--with-mysql=/usr/local' '--with-zlib=/usr' 
'--disable-debug'

not sure what version of Apache, it is 1.3.x I believe

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-06 00:46 UTC] derick@php.net
Apache doesn't know about PHP constants, do they will not work in a .htaccess files. Use the numerical values from here:
http://www.php.net/manual/en/function.error-reporting.php

In your case this would be 2039.

Derick
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 12:00:02 2026 UTC