News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Thompson's Blog:
PHP and Solaris - getcwd() Behavior
November 12, 2007 @ 13:47:00

Rob Thompson passed along some information that PHP users running on Solaris might want to check out - the slightly buggy behavior of the PHP getcwd function on the platform.

Many functions within the PHP codebase relied upon a universally working getcwd() [C] call to expand paths and to find out where a script is being executed. In particular, Solaris does not assume that getcwd() is a privilege that should be granted to users in directories that don't have 'r' (read) permission, even if it has 'x' (execute) permissions. [...] Under Linux, getcwd() behaves normally but under Solaris, getcwd() does not work with the --x restrictive permissions.

He does note, happily, that this issue is cleared up with an upgrade to PHP 5.2.5 as soon as possible. He had code snippets included in the post so you can test your installation for the problem too.

0 comments voice your opinion now!
solaris getcwd behavoir update php5 permissions solaris getcwd behavoir update php5 permissions


blog comments powered by Disqus

Similar Posts

DevShed: Overloading Classes in PHP 5

Nexen.net: PHP 4 and PHP 5 are in a boat : from will to reality

Derick Rethans' Blog: PHP5. Wprowadzenie

php|architect: Exam Schedule at php/db|works now available

Richard Davey's Blog: A Guide to using PHP 5 Extensions on Windows


Community Events

Don't see your event here?
Let us know!


series podcast interview development unittest api laravel5 wordpress laravel introduction framework extension voicesoftheelephpant release opinion threedevsandamaybe language community library feature

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework