Edit report at http://bugs.php.net/bug.php?id=54933&edit=1
ID: 54933 Updated by: ras...@php.net Reported by: future_evolium at yahoo dot com Summary: Notice: Undefined variable: dbname -Status: Open +Status: Bogus Type: Bug Package: Program Execution Operating System: WindowsXP PHP Version: 5.3SVN-2011-05-26 (SVN) Block user comment: N Private report: N New Comment: Your example works fine exactly as written. Previous Comments: ------------------------------------------------------------------------ [2011-05-26 08:57:17] future_evolium at yahoo dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54933&edit=1