ID: 35227 Updated by: [EMAIL PROTECTED] Reported By: rd at mesos dot de -Status: Open +Status: Feedback Bug Type: Directory function related Operating System: Linux Fedora Core release 2 PHP Version: 4.4.1 New Comment:
See my previous post. Previous Comments: ------------------------------------------------------------------------ [2005-11-15 14:11:17] rd at mesos dot de that's why I am reporting that bug, it is working on several servers, but not on this one: [EMAIL PROTECTED] php-4.4.1]# ./sapi/cli/php -r 'echo getcwd();' [EMAIL PROTECTED] php-4.4.1]# It must be something special on this server, but I don't know where to start to search. gcc version 3.3.3 The same problem exists with PHP 4.4.0. ------------------------------------------------------------------------ [2005-11-15 14:08:08] [EMAIL PROTECTED] What's the values of HAVE_GETCWD and HAVE_GETWD in main/php_config.h ? ------------------------------------------------------------------------ [2005-11-15 14:06:11] [EMAIL PROTECTED] You're doing something wrong, this works just fine for me: # php -r 'echo getcwd();' /usr/src/php_5_1 ------------------------------------------------------------------------ [2005-11-15 13:58:09] rd at mesos dot de [EMAIL PROTECTED] php-4.4.1]# ./sapi/cli/php test2.php bool(false) bool(false) olddir: [EMAIL PROTECTED] php-4.4.1]# cat test2.php<? $olddir = var_dump(getcwd()); var_dump(getcwd()); echo "olddir: $olddir\n"; ?> [EMAIL PROTECTED] php-4.4.1]# ------------------------------------------------------------------------ [2005-11-15 13:47:45] [EMAIL PROTECTED] Use var_dump(getcwd()); ------------------------------------------------------------------------ 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 http://bugs.php.net/35227 -- Edit this bug report at http://bugs.php.net/?id=35227&edit=1