From: groenendijk at frg dot eur dot nl Operating system: linux PHP version: 4.3.9 PHP Bug Type: PHP options/info functions Bug description: open_basedir restriction problem with symlink and current directory
Description: ------------ this is a bug similar to #30188 my current dir is a symlink to another directory: /www/html/userfiles/groenendijk -> /mnt/somedrive/html open_basedir has value: ".:/usr/local/sharedfunc" when i call a script like this: <% include './test2.php'; %> i get the following Warning: main(): Failed opening './test2.php' for inclusion (include_path='.:/usr/local/sharedfunc') in /www/html/userfiles/groenendijk/test1.php on line xx In my opinion this should be working. Expected result: ---------------- i expect includes to the current directory to work even if this current directory is a symlink Actual result: -------------- Warning: main(): Failed opening './test2.php' for inclusion (include_path='.:/usr/local/sharedfunc') in /www/html/userfiles/groenendijk/test1.php on line xx -- Edit bug report at http://bugs.php.net/?id=31092&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31092&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31092&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31092&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31092&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31092&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31092&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31092&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31092&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31092&r=support Expected behavior: http://bugs.php.net/fix.php?id=31092&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31092&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31092&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31092&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31092&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31092&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31092&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31092&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31092&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=31092&r=mysqlcfg
