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
 [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: Fri Apr 26 04:01:30 2024 UTC