Re: PHP 5.3.1RC2 Testing

From: Date: Sat, 07 Nov 2009 15:57:59 +0000
Subject: Re: PHP 5.3.1RC2 Testing
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-65423@lists.php.net to get a copy of this message
Hello Johannes, > You are receiving this email because your project has been selected > to take part in a new effort by the PHP QA Team to make sure that > your project still works with PHP versions to-be-released. With this > we hope to make sure that you are either aware of things that might > break, or to make sure we don't introduce any strange regressions. > With this effort we hope to build a better relationship between the > PHP Team and the major projects. I tried switching from 5.2.9 to 5.3.1RC3, and some of my applications failed. The reason is that getcwd() seems to be broken in combination with symlinks. The situation: /var/www/ - Apache document root, symlink to /home/user/www /home/user/www - Contains user specific files for application /home/user/www/config.php - Configuration file /home/user/www/index.php - Symlink to /usr/share/php/cms/www/index.php Now index.php tries to include config.php (without any path) and fails. A var_dump(getcwd()) in index.php tells me that cwd is > /usr/share/php/cms/www/ - although the current working directory is /var/www/. On php 5.2.9, getcwd() shows /var/www/ as current working directory. This behavioral change breaks some of my applications that rely on symlinks to provide files shared among all users on the server, in combination with local config files. PHP is used as fastcgi module. -- Regards/Mit freundlichen Grüßen Christian Weiske -= Geeking around in the name of science since 1982 =-

Attachment: [application/pgp-signature] signature.asc
« previous php.qa (#65423) next »