From: Operating system: Linux PHP version: 5.2.13 Package: Apache2 related Bug Type: Bug Bug description:Realpath failed on linux Server for version 5.2.10 ?
Description: ------------ hi, I met an issue using a drupal CMS. I received an error "warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access in /home/.sites/38/site52/web/includes/file.inc on line 572." I have several web environement, one for coding the website (with IIS 6 and PHP 5.2.3), on for production (with Linux, Apache 2.0 and PHP 5.2.10). I have no issue on my development server with IIS (same files, same database). when I run the following line of code : var_dump( realpath( dirname( __FILE__ ) ) ); Under IIS: string(44) "D:\inetpub\vhosts\dev.*******.com\httpdocs" Under Apache: bool(false) Did I miss something ? Best regards, Denis. Test script: --------------- var_dump( realpath( dirname( __FILE__ ) ) ); Expected result: ---------------- I wish that this function gives me the real path to let drupal copy some files from the administration. -- Edit bug report at http://bugs.php.net/bug.php?id=51506&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51506&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51506&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51506&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51506&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51506&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51506&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51506&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51506&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51506&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51506&r=support Expected behavior: http://bugs.php.net/fix.php?id=51506&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51506&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51506&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51506&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51506&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51506&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51506&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51506&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51506&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51506&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51506&r=mysqlcfg