php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7363 @include supresses parse errors within included file
Submitted: 2000-10-20 05:17 UTC Modified: 2001-06-17 04:51 UTC
From: adam at elysium dot ltd dot uk Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.3pl1 OS: Redhat Linux 6.2
Private report: No CVE-ID: None
 [2000-10-20 05:17 UTC] adam at elysium dot ltd dot uk
When using...

@include

...or...

@include_once

...to supress a warning if the file to be included does not exist, all parse errors/warnings within that file are also supressed (Resulting in very hard to debug code, or having to use is_File with every include that might not exist).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-05 11:48 UTC] stas@php.net
Well, I don't know if it's an intended behaviour - I'll check this. In the meantime, you can use error_reporting function to re-enable error reporting. 
 [2001-06-17 04:51 UTC] jmoore@php.net
We have now standardised the behaviour (I cant actually remember what we decided but this was done in 4.0.5, I think we suppressed everything on the implementation side but not on the code side)

- James
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 00:01:30 2024 UTC