From: [EMAIL PROTECTED] Operating system: SuSE Linux 7.3 PHP version: 4.2.3 PHP Bug Type: Apache2 related Bug description: Apache2 and PHP do not handle relative paths properly
I have been using Apache (version 1) for a long time, and now I tried out Apache2, which runs parallel on port 8080. A lot of my PHP scripts use templates and therefore the file_exists function is often used like if (!file_exists($filename)) die('Failed.'); Some of the scripts use relative paths and now PHP reacts differently. On apache1 file_exists('index_content.tpl') returns true. On apache2 file_exists('index_content.tpl') returns false. The file surely exists. But why do I get false? I thought that the file_exists function should have nothing to do with apache, shouldn't it? -- Edit bug report at http://bugs.php.net/?id=19827&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19827&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19827&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19827&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19827&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19827&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19827&r=support Expected behavior: http://bugs.php.net/fix.php?id=19827&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19827&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19827&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19827&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19827&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19827&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19827&r=isapi