Edit report at http://bugs.php.net/bug.php?id=51506&edit=1

 ID:               51506
 Updated by:       paj...@php.net
 Reported by:      mastershepper at gmail dot com
 Summary:          Realpath failed on linux Server for version 5.2.10 ?
-Status:           Open
+Status:           Feedback
 Type:             Bug
 Package:          Apache2 related
 Operating System: Linux
 PHP Version:      5.2.13

 New Comment:

__FILE__ is already an absolute path, I don't see why you would do that
in the 1st place.



However, if you can reproduce the realpath problem with other paths as
well, then I suspect a bug on your linux version. Can you try with
5.2.13 pls?


Previous Comments:
------------------------------------------------------------------------
[2010-04-08 10:47:47] mastershepper at gmail dot com

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 this bug report at http://bugs.php.net/bug.php?id=51506&edit=1

Reply via email to