php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22167 require syntax changed
Submitted: 2003-02-11 07:37 UTC Modified: 2003-02-11 08:36 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: s dot birkhoff at liwest dot at Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.0 OS: Windows
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: s dot birkhoff at liwest dot at
New email:
PHP Version: OS:

 

 [2003-02-11 07:37 UTC] s dot birkhoff at liwest dot at
require/include/require_once/include_once would only in the way
require './mypath/thisfile.php'
and no more as written in the documentation
require ("./mypath/thisfile.php") this will cause in a error:
failed to create stream...
it also won't work the way require
$classpath = "./mypath/";
($classpath."thisfile.php");

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-11 07:40 UTC] s dot birkhoff at liwest dot at
sorry last 2 lines should be:
$classpath = "./mypath/";
require($classpath."thisfile.php");
 [2003-02-11 07:41 UTC] sniper@php.net
This really hasn't changed...WHAT works and what doesn't?

 [2003-02-11 07:54 UTC] s dot birkhoff at liwest dot at
What won't work is:
require ("/mypath/thisfile.php");
require ($mypath."thisfile.php");

what work is:
require '/mypath/thisfile.php';
 [2003-02-11 08:15 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

There's only one change..and it's how the paths work.
The syntax is not changed.

And there is already bug report about the path issue.

 [2003-02-11 08:31 UTC] s dot birkhoff at liwest dot at
sorry

same error is allready open for solaris and true 64
seems to be a general problem of the 4.3.0 Version,
4.2.3 works fine
 [2003-02-11 08:36 UTC] sniper@php.net
yes, leave this in bogus status..thanks.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 16:01:28 2024 UTC