#24420 [Fbk->NoF]: getcwd() returns random results in a callback

From: Date: Tue, 26 Aug 2003 05:58:13 +0000
Subject: #24420 [Fbk->NoF]: getcwd() returns random results in a callback
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46639@lists.php.net to get a copy of this message
 ID:               24420
 Updated by:       sniper@php.net
 Reported By:      S dot Bennett at lancaster dot ac dot uk
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Directory function related
 Operating System: Linux
 PHP Version:      4.3.3RC5-dev
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:
------------------------------------------------------------------------

[2003-08-20 17:28:42] sniper@php.net

Please check your systems, there is something in common to them how you
configure/compile/etc.



------------------------------------------------------------------------

[2003-08-20 17:27:21] sniper@php.net

And the expected return value is '/' when run under Apache.
(It's apache thing..)

Nothing was verified here, just was proved that this is one of those
ghost bugs..


------------------------------------------------------------------------

[2003-08-20 11:08:11] elmicha@php.net

I also see "(in callback) cwd is '/'" (no random values) on Solaris
with PHP-4.2.1/Apache-1.3.26, so this doesn't seem to be a recent
regression.


------------------------------------------------------------------------

[2003-08-20 01:35:15] elmicha@php.net

current time is '08/20/03 08:26:09'
(in main) cwd is '/home/elmicha/public_html/php'
(in callback) cwd is '/'

In the callback it's always '/'.

I'm still running 4.3.3RC3 though (will try tonight with a current
snapshot and pristine php.ini). Linux 2.4.21, gcc-2.95.3, libc-2.1.3,
Apache-1.3.28, no vhosts.

------------------------------------------------------------------------

[2003-08-19 07:17:19] S dot Bennett at lancaster dot ac dot uk

Yes, I know 2.96 is bogus - it's a RedHat7 box. The problem also occurs
when compiled with GCC3.2.2 on a Solaris system, so I don't really
think it's relevant.

I don't have any vhosts on this install of apache - I normally use
--enable-module=vhost_alias but it's disabled on this install.
httpd.conf contains:
  DocumentRoot "/home/www/nutter.spoo.org/htdocs"

If you're unable to reproduce this there must be *something* different
between your system and mine - what are you testing this on?

------------------------------------------------------------------------

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/24420

-- 
Edit this bug report at http://bugs.php.net/?id=24420&edit=1


Thread (20 messages)

« previous php.bugs (#46639) next »