#35227 [Opn->Fbk]: getcwd does not work

From: Date: Tue, 15 Nov 2005 14:28:05 +0000
Subject: #35227 [Opn->Fbk]: getcwd does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88215@lists.php.net to get a copy of this message
ID: 35227 Updated by: tony2001@php.net 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: Try with just plain ./configure --enable-debug Previous Comments: ------------------------------------------------------------------------ [2005-11-15 15:09:01] rd at mesos dot de [root@server php-4.4.1]# grep HAVE_GETCWD main/php_config.h -i /* #undef HAVE_GETCWD */ [root@server php-4.4.1]# grep HAVE_GETWD main/php_config.h -i /* #undef HAVE_GETWD */ [root@server php-4.4.1]# Is that correct? That's my configure-string: './configure' --with-apxs2 '--host=i386-redhat-linux' '--build=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-regex=php' '--with-xml' '--with-expat-dir=/usr' '--with-dom=/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-ldap' '--with-mysql=/usr' '--enable-ucd-snmp-hack' '--with-unixODBC=/usr' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--enable-force-cgi-redirect' ------------------------------------------------------------------------ [2005-11-15 14:12:51] tony2001@php.net See my previous post. ------------------------------------------------------------------------ [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: [root@server php-4.4.1]# ./sapi/cli/php -r 'echo getcwd();' [root@server 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] tony2001@php.net What's the values of HAVE_GETCWD and HAVE_GETWD in main/php_config.h ? ------------------------------------------------------------------------ [2005-11-15 14:06:11] sniper@php.net You're doing something wrong, this works just fine for me: # php -r 'echo getcwd();' /usr/src/php_5_1 ------------------------------------------------------------------------ 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

« previous php.bugs (#88215) next »