Bug #12054: getcwd() returns empty string
| From: | yoyoque at excite dot com | Date: | Wed, 11 Jul 2001 14:36:52 +0000 |
| Subject: | Bug #12054: getcwd() returns empty string | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-59706@lists.php.net to get a copy of this message | ||
From: yoyoque@excite.com
Operating system: Red Hat Linux 2.2.12-20
PHP version: 4.0.6
PHP Bug Type: *General Issues
Bug description: getcwd() returns empty string
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 bug report at: http://bugs.php.net/?id=12054&edit=1