|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #314 @include/@require gives "Parse error"
Submitted: 1998-04-25 11:26 UTC Modified: 1998-04-25 12:23 UTC
From: doka at webest dot com (Vladimir Litovka) Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0 Release Candidate 4 OS: Any
Private report: No CVE-ID: None
 [1998-04-25 11:26 UTC] doka at webest dot com (Vladimir Litovka)

 There is error in RC4: when using

 <? @include("somefile"); ?> or
 <? @require("somefile"); ?>

 PHP gives parse error instead of silent continuation.
 I'm not sure, is this error or feature ;)

 BTW I need to do: @include("somefile") and get result:
 if file exists, include it; if don't exist, silently
 continue work. Is this possible?



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-04-25 12:23 UTC] zeev
It's not a feature nor an error, that's the correct behavior.

@ is a modifier for expressions, include() and require()
are not expressions, but statements.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Oct 04 01:01:27 2023 UTC