From:             z dot jiang1 at csuohio dot edu
Operating system: Windows XP -Home Edition
PHP version:      5.0.1
PHP Bug Type:     *Compile Issues
Bug description:  Include config.php failure

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 bug report at http://bugs.php.net/?id=29765&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29765&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29765&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29765&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29765&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29765&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29765&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29765&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29765&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29765&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29765&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29765&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29765&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29765&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29765&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29765&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29765&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29765&r=float

Reply via email to