#45825 [NEW]: No message displayed for parse errors in included files

[email protected] ("a at a dot com")
Newsgroups php.bugs
Message-ID <[email protected]>
From:             a at a dot com
Operating system: WinXP
PHP version:      5.3.0alpha1
PHP Bug Type:     Scripting Engine problem
Bug description:  No message displayed for parse errors in included files

Description:
------------
WinXP, IIS, ISAPI, PHP 4.4.8 (I have to use the 4.x branch because my code
needs to run on a shared hosting server that I have no control over, and
they only have the 4.x branch.)

When there is a parse error in an included file, NO error is displayed
even if display_errors and error_reporting are set correctly.

Reproduce code:
---------------
--a.php--
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL & E_NOTICE);
include("b.inc.php");
?>
---------

--b.inc.php--
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL & E_NOTICE);
$testvar = ;
?>
-------------

Expected result:
----------------
Parse error: syntax error, unexpected ';' in [path here]\b.inc.php on line
4

Actual result:
--------------
The output is absolutely, completely blank.

-- 
Edit bug report at http://bugs.php.net/?id=45825&edit=1
-- 
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45825&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45825&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45825&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45825&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=45825&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45825&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45825&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45825&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45825&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45825&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=45825&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=45825&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45825&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45825&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45825&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45825&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45825&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45825&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45825&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45825&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.