<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 18 Jun 2013 23:43:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Rob Thompson's Blog: PHP and Solaris - getcwd() Behavior]]></title>
      <guid>http://www.phpdeveloper.org/news/9022</guid>
      <link>http://www.phpdeveloper.org/news/9022</link>
      <description><![CDATA[<p>
<i>Rob Thompson</i> <a href="http://rob.sun3.org/php-code/php-and-solaris-getcwd-behavior/">passed along</a> 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.
</p>
<blockquote>
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.
</blockquote>
<p>
He does note, happily, that this issue is <a href="http://rob.sun3.org/php-code/php-and-solaris-getcwd-behavior/">cleared up with an upgrade</a> 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.
</p>]]></description>
      <pubDate>Mon, 12 Nov 2007 13:47:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[IBM developerWorks Blog: What's the problem? (Working Directories)]]></title>
      <guid>http://www.phpdeveloper.org/news/5382</guid>
      <link>http://www.phpdeveloper.org/news/5382</link>
      <description><![CDATA[<p>
On the IBM developerWorks blog today, there's <a href="http://www-03.ibm.com/developerworks/blogs/page/phpblog?entry=comparing_windows_and_php_working">this look</a> at the differences between PHP and Windows when it comes to the working directory you're grabbing in your script.
</p>
<quote>
<i>
I recently investigated the values of the PHP and Windows working directory for a variety of environments. My reason for doing so was that I could never quite understand how relative pathnames were resolved, and if you want to write code that will run, for example, both under Zend Studio, from the command line, and Apache, it matters. And it is not surprising that I never understood it either - every environment is different.
</i>
</quote>
<p>
He ran <a href="http://www-03.ibm.com/developerworks/blogs/page/phpblog?entry=comparing_windows_and_php_working">five tests</a> to show each of the environments that a PHP script might be running in and what two methods return - PHP's getcwd and Windows' getcwd in direct.h). There are some similarities between the output of the two, but there's enough difference to be worrysome for any programmer making scripts for both. He also gives a specific example of a situation he was in involving incorrect paths and libxml2 and the difficulties that were found there.
</p>]]></description>
      <pubDate>Wed, 17 May 2006 05:59:28 -0500</pubDate>
    </item>
  </channel>
</rss>
