ID:               29765
 Updated by:       [EMAIL PROTECTED]
 Reported By:      z dot jiang1 at csuohio dot edu
-Status:           Open
+Status:           Bogus
 Bug Type:         *Compile Issues
 Operating System: Windows XP -Home Edition
 PHP Version:      5.0.1
 New Comment:

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.

If doing nothing more than changing the file name fixes the issue, then
I'd wager you've got another config.php file elsewhere in your
include_path (with a higher precedence) and THAT file is being included
instead.



Previous Comments:
------------------------------------------------------------------------

[2004-08-19 21:46:01] z dot jiang1 at csuohio dot edu

Description:
------------
well, I am trying to define constants in a file called config.php then
I wanna use it in a file called "debug.php". 
I defined a variable like 
$test="test". 
then call this variable by 
echo $test; 
in "debug.php".
it never works..
but if I rename the config.php to other names like"config1.php", it
works. 

I dont know why that happens? it's reserved file name or something?

Thanks.

Reproduce code:
---------------
file: debug.php
<?php
include "config.php";
echo $test;


?>

file: config.php

$test="test";


?>


Expected result:
----------------
i am expecting to see 

test

Actual result:
--------------
I see nothing.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29765&edit=1

Reply via email to