|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-11 10:57 UTC] jani@php.net
[2007-12-12 05:57 UTC] tariq at prime-service dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 11:00:02 2025 UTC |
Description: ------------ variables defined in files included are not being populated. However if we print something in included file it displays on the screen. But variables and their values are not passed to the file calling the included file. Reproduce code: --------------- Test1.php <? $A = 10; $B = 15; ?> Test2.php <?php require('Test1.php'); echo $A; ?> it would result into variable undefined warning. Expected result: ---------------- 10 in output Actual result: -------------- Warning! variable not defined