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
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: 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

Pull Requests

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: Thu Dec 26 11:01:30 2024 UTC