#30930 [NEW]: include('./xxx.php') fails!

From: Date: Mon, 29 Nov 2004 11:32:42 +0000
Subject: #30930 [NEW]: include('./xxx.php') fails!
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69609@lists.php.net to get a copy of this message
From: patrick dot allaert at belgacom dot be Operating system: Windows 2000 PHP version: 4.3.9 PHP Bug Type: IIS related Bug description: include('./xxx.php') fails! Description: ------------ Including a script in the current directory with './' fails when IIS is configured with a virtual site with ISAPI module. It works well with the cgi installation! Reproduce code: --------------- --- D:\wwwroot\a.php --- <?php system('cd'); include('./b.php'); ?> ------------------------ --- D:\wwwroot\b.php --- TEST ------------------------ ==> http://localhost/a.php Expected result: ---------------- With a cgi installation: D:\wwwroot TEST Actual result: -------------- With the ISAPI installation: C:\WINNT\system32 Warning: main(./b.php): failed to open stream: No such file or directory in D:\wwwroot\a.php on line 3 Warning: main(): Failed opening './b.php' for inclusion (include_path='.;c:\php\includes;c:\php\pear;c:\php;c:\php\font') in D:\wwwroot\a.php on line 3 -- Edit bug report at http://bugs.php.net/?id=30930&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30930&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30930&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30930&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30930&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30930&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30930&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30930&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30930&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30930&r=support Expected behavior: http://bugs.php.net/fix.php?id=30930&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30930&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30930&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30930&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30930&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30930&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30930&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30930&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30930&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30930&r=mysqlcfg

« previous php.bugs (#69609) next »