|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6877 require_once cant handle variables
Submitted: 2000-09-25 06:22 UTC Modified: 2000-09-25 19:06 UTC
From: voudras at NOSPAM dot swiftslayer dot org Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.2 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
34 + 17 = ?
Subscribe to this entry?

 [2000-09-25 06:22 UTC] voudras at NOSPAM dot swiftslayer dot org
$file = "";
require_once($file); // fails
require_once("$file); // fails
require($file); // works
include_once($file); // works


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-25 19:06 UTC]
Fixed in CVS.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jan 21 15:01:23 2021 UTC