#45825 [Opn->WFx]: No message displayed for parse errors in included files

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               45825
 Updated by:       [email protected]
 Reported By:      a at a dot com
-Status:           Open
+Status:           Wont fix
 Bug Type:         Scripting Engine problem
 Operating System: WinXP
-PHP Version:      5.3.0alpha1
+PHP Version:      4.4.8
 New Comment:

We are sorry, but we can not support PHP 4 related problems anymore.
Momentum is gathering for PHP 6, and we think supporting PHP 4 will
lead to a waste of resources which we want to put into getting PHP 6
ready.




Previous Comments:
------------------------------------------------------------------------

[2008-08-14 18:52:59] a at a dot com

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 this bug report at http://bugs.php.net/?id=45825&edit=1
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.