php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23288 $GLOBALS & INCLUDE
Submitted: 2003-04-20 14:54 UTC Modified: 2003-04-21 09:29 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: joshua at six6 dot nu Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.3.1 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: joshua at six6 dot nu
New email:
PHP Version: OS:

 

 [2003-04-20 14:54 UTC] joshua at six6 dot nu
/* test.php
 $html_smalls = ("sups");
\*

/* test2.php
smalls();
function smalls()
 {
 include ("test.php");
   echo $GLOBALS['html_smalls'];
 }

 It won't output 'sups' if a file is included in a function.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-20 14:54 UTC] joshua at six6 dot nu
//
 [2003-04-21 09:29 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 09:01:29 2024 UTC