#23288 [Opn]: $GLOBALS & INCLUDE

From: Date: Sun, 20 Apr 2003 19:54:48 +0000
Subject: #23288 [Opn]: $GLOBALS & INCLUDE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37927@lists.php.net to get a copy of this message
ID: 23288 User updated by: joshua at six6 dot nu Reported By: joshua at six6 dot nu Status: Open Bug Type: Variables related -Operating System: red +Operating System: linux PHP Version: 4.3.1 New Comment: // Previous Comments: ------------------------------------------------------------------------ [2003-04-20 14:54:07] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23288&edit=1

« previous php.bugs (#37927) next »