From: [EMAIL PROTECTED] Operating system: Mac OS X PHP version: 4.3.11 PHP Bug Type: Scripting Engine problem Bug description: __FILE__ is relative while running Apache SAPI
Description: ------------ The content of the __FILE__ constant is relative while running through a Virtual Host on OS X. The bug is not seen while working with the CLI version or if the script is not in a VirtualHost directive. Configure is as follow (majorly taken from OS X compile flags): './configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-apxs' '--enable-cli' '--with-zlib' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' Apache is the one distributed with Tiger 10.4.1 (1.3.33). The same code runs fine on Linux and Windows with the same config (vhosts settings). Reproduce code: --------------- <?php print __FILE__; -- Edit bug report at http://bugs.php.net/?id=33529&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33529&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33529&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33529&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33529&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33529&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33529&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33529&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33529&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33529&r=support Expected behavior: http://bugs.php.net/fix.php?id=33529&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33529&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33529&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33529&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33529&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33529&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33529&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33529&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33529&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33529&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33529&r=mysqlcfg