#12054 [Com]: getcwd() returns empty string
| From: | writing-erotic1909 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:09:44 +0000 |
| Subject: | #12054 [Com]: getcwd() returns empty string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63042@lists.php.net to get a copy of this message | ||
ID: 12054
Comment by: writing-erotic1909 at hotmail dot com
Reported By: yoyoque at excite dot com
Status: Bogus
Bug Type: Directory function related
Operating System: Red Hat Linux 2.2.12-20
PHP Version: 4.0.6
New Comment:
<a href=http://o--anime-enema.da.ru>erotic
writing</a>
Previous Comments:
------------------------------------------------------------------------
[2001-07-21 18:54:23] andy@php.net
I tried your script with RH Linux 7 and this worked fine
with apache and with the shell script you presented.
------------------------------------------------------------------------
[2001-07-11 10:36:52] yoyoque at excite dot com
Just upgraded to 4.0.6 and getcwd() no longer works.
test script:
#!/usr/bin/php
<?php
$curdir = getcwd();
print ( "Current dir is $curdir\n" );
?>
Old:
X-Powered-By: PHP/4.0.4pl1
Content-type: text/html
Current dir is /usr/local/nstats/stats/bin
New:
Extensions are not supported on this platform.
X-Powered-By: PHP/4.0.6
Content-type: text/html
Current dir is
Configure info:
./configure \
--enable-track-vars \
--with-xml \
--enable-versioning \
--with-png-dir=/usr/local/png \
--with-zlib-dir=/usr/local/zlib \
--with-jpeg-dir=/usr/local/jpeg \
--with-freetype-dir=/usr/local/freetype \
--with-gd=/usr/local/gd-2.0.1 \
--with-gettext \
--with-socket \
--with-mysql=/usr/local/mysql-3.23.28-gamma-pc-linux-gnu-i686
\
--with-sybase-ct=/usr/local/freetds \
--with-rrdtool
Versions:
jpeg-6b
freetype-2.0.4
zlib-1.1.3
libpng-1.0.12
gd-2.0.1
rrdtool-1.0.33 (linked to the above gd, png and zlib libs)
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2
release)
Red Hat 6.2
everything statically linked.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12054&edit=1