|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-26 14:41 UTC] rasmus@php.net
-Status: Open
+Status: Bogus
[2011-05-26 14:41 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 06:00:02 2025 UTC |
Description: ------------ I want to report a bug as soon as I installed the PHP version 5.3.5 This bug concern the function include(). For example if I have a php file which include another php file and if I'm trying to use the variable declared in the included file for my parent file I have the error: Notice: Undefined variable: dbname Test script: --------------- Here is my test with running parent.php I have three files: parent.php <?php include('declared.php'); $message=$dbname." should work"; echo $message; ?> declared.php <?php $dbname="this script"; ?> Expected result: ---------------- I expect to recognize my variable and to print out. this script should work