News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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



Similar Posts

Tobias Schlitt's Blog: Being "brainbench certified" ;)

php|architect: September/October Training Schedule Online

Brian DeShong's Blog: Small news that's big to me: my PHP Testfest submissions made it into 5_3!

Developer.com: PHP 5 OOP - Protecting Data With Visibility

Christopher Jones' Blog: PECL OCI8 1.2.5 Available


Community Events











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


framework cakephp code zendframework release application PHP5 developer security mysql example PEAR database conference ajax book package zend job releases

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