|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5607 Variables missing within require code
Submitted: 2000-07-15 11:37 UTC Modified: 2000-08-08 23:03 UTC
From: mikro at nextra dot sk Assigned:
Status: Closed Package: Other
PHP Version: 4.0.1pl2 OS: MS Windows NT 4.0
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: mikro at nextra dot sk
New email:
PHP Version: OS:


 [2000-07-15 11:37 UTC] mikro at nextra dot sk
When I define variable within included part of code than my variable is not visible in fuctions within included part.



here is variable visible
function Foo(){
global $variable;
here is variable not visible for some strange reasons.

please check this situation.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-17 06:42 UTC] stas at cvs dot php dot net
Please provide runnable reproducing code.
 [2000-08-08 23:03 UTC]
Closed due to missing user feedback.
 [2002-02-19 05:23 UTC] hvalette at free dot fr

I looked for fix of the same problem without success.
Have you now a solution concerning this problem of gaobal variables with require command ?
Does an include() fix the problem ?

Thank you in advance
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 03:01:32 2024 UTC