Edit report at https://bugs.php.net/bug.php?id=51506&edit=1
ID: 51506 Updated by: php-bugs@lists.php.net Reported by: mastershepper at gmail dot com Summary: Realpath failed on linux Server for version 5.2.10 ? -Status: Feedback +Status: No Feedback Type: Bug Package: Scripting Engine problem Operating System: Linux PHP Version: 5.2.13 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2010-05-12 16:13:35] m...@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2010-04-22 22:23:06] whatrevolution at yahoo dot com Code: <?php var_dump( realpath( dirname( __FILE__ ) ) ); echo "\n"; var_dump( realpath( '../' ) ); echo "\n"; var_dump( realpath( '../../' ) ); ?> Result: string '/var/www/php_bugs' (length=17) string '/var/www' (length=8) string '/var' (length=4) PHP Version 5.2.10-2ubuntu6.4 System Linux 2.6.31-20-generic x86_64 Build Date Jan 6 2010 22:36:47 Server API Apache 2.0 Handler PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety disabled Zend Memory Manager enabled Apache/2.2.12 (Ubuntu) ------------------------------------------------------------------------ [2010-04-09 09:51:02] mastershepper at gmail dot com Hi, the php version is now up to date (5.2.13) and still have the problem. I tried many realpath(), the absloute path of the web directory ios the following one : /home/.sites/38/site52/web I thought that realpath( '/home/.sites/38/site52/web' ) should works fine, but it return me false, like any other realpath I'm asking (like realpath( '/' ) which is working well on my IIS environment). I also tried to set the include path with this line : set_include_path(get_include_path() . PATH_SEPARATOR . '/home/.sites/38/site52/web'); But it still not working fine. Is there anything I missed ? I'm probably wrong but I don't see where. Thanks for your help. ------------------------------------------------------------------------ [2010-04-08 11:15:41] paj...@php.net You can test locally as well, or in a VM using the same linux version that you have on your prod server. ------------------------------------------------------------------------ [2010-04-08 11:12:25] mastershepper at gmail dot com __FILE__ is just a test, the actuel drupal core use realpath on dynamic paths and it always return false. The actual production environment is an external one so I'm not able to change the php version. I will ask for it and update this report when it will be done (only if it could be done, unfortunately) Thanks for your help. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=51506 -- Edit this bug report at https://bugs.php.net/bug.php?id=51506&edit=1