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
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: adam at elysium dot ltd dot uk
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 21:01:35 2025 UTC