Bug #12054 Updated: getcwd() returns empty string
| From: | andy@php.net | Date: | Sat, 21 Jul 2001 22:54:23 +0000 |
| Subject: | Bug #12054 Updated: getcwd() returns empty string | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60502@lists.php.net to get a copy of this message | ||
ID: 12054
Updated by: andy
Reported By: yoyoque@excite.com
Old Status: Open
Status: Bogus
Bug Type: Directory function related
Operating System: Red Hat Linux 2.2.12-20
PHP Version: 4.0.6
New Comment:
I tried your script with RH Linux 7 and this worked fine
with apache and with the shell script you presented.
Previous Comments:
------------------------------------------------------------------------
[2001-07-11 10:36:52] yoyoque@excite.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