#35186 [Fbk]: getcwd() returns "/" when using with mod_rewrite

From: Date: Thu, 10 Nov 2005 23:44:12 +0000
Subject: #35186 [Fbk]: getcwd() returns "/" when using with mod_rewrite
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88020@lists.php.net to get a copy of this message
ID: 35186 Updated by: sniper@php.net Reported By: samm at os2 dot kiev dot ua Status: Feedback Bug Type: Apache2 related Operating System: FreeBSD 6 PHP Version: 5CVS, 4CVS (2005-11-11) (snap) New Comment: And what is HAVE_BROKEN_GETCWD set to in the generated main/php_config.h file? Previous Comments: ------------------------------------------------------------------------ [2005-11-11 00:35:26] sniper@php.net How have you enabled PHP in your httpd.conf? (what loadmodule/etc. lines you added) ------------------------------------------------------------------------ [2005-11-11 00:32:19] sniper@php.net The only file changed was sapi/apache2handler/sapi_apache2.c ------------------------------------------------------------------------ [2005-11-11 00:27:40] sniper@php.net Ah, thank you! This will help us pinpoint the problem very easily now. I'll check what we changed between 4.4.0 / 4.4.1. ------------------------------------------------------------------------ [2005-11-11 00:09:41] samm at os2 dot kiev dot ua I tried to copy files from directory sapi/apache2handler of the php4.4.0 to the latest 4.4-stable and than i recompiled php. After this all path`s are displayed correctly, so problem is in the apache2handler changes. Tomorrow i`ll try to make more detailt experiments to find a change, which cause a regression. ------------------------------------------------------------------------ [2005-11-10 23:50:40] samm at os2 dot kiev dot ua May be. Anyway 4.4.0 work correctly, so this was broken in 4.4.1. I have no linux around, so currently i cant check this in linux. I found this bug on my 5.4 FreeBSD box, so that is not FreeBSD 6.0 related. I can make some tests if you need. I think that regression was on 4.4.0->4.4.1, may be this can help you. ------------------------------------------------------------------------ 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/35186 -- Edit this bug report at http://bugs.php.net/?id=35186&edit=1

« previous php.bugs (#88020) next »