<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=pearweb_gopear&amp;PHPSESSID=6sh8hov6085gl1gd4s43b0k8h0</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/16188" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14507" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/16188">
      <title>pearweb_gopear: Bug 16188 [Open] Failure to escape single quotes in directory names</title>
      <link>http://pear.php.net/bugs/16188</link>
      <content:encoded><![CDATA[<pre>pearweb_gopear Bug
Reported by theboff
2009-05-05T22:56:21+00:00
PHP: 5.2.9 OS: Windows Server 2008 Package Version: 1.1.3

Description:
------------
When using go pear to install pear on my windows system, I installed to a directory with an apostrophe in the name (&quot;Colin's Stuff&quot;). I got &quot;parse errors&quot; when trying to use pear, and believe the problem is due to the fact that the apostrophe is not escaped, and hence closes the string.</pre>]]></content:encoded>
      <description><![CDATA[<pre>pearweb_gopear Bug
Reported by theboff
2009-05-05T22:56:21+00:00
PHP: 5.2.9 OS: Windows Server 2008 Package Version: 1.1.3

Description:
------------
When using go pear to install pear on my windows system, I installed to a directory with an apostrophe in the name (&quot;Colin's Stuff&quot;). I got &quot;parse errors&quot; when trying to use pear, and believe the problem is due to the fact that the apostrophe is not escaped, and hence closes the string.</pre>]]></description>
      <dc:date>2009-05-05T22:56:21+00:00</dc:date>
      <dc:creator>colin &amp;#x64;&amp;#111;&amp;#x74; rothwell &amp;#x61;&amp;#116; gmx &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>pearweb_gopear Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14507">
      <title>pearweb_gopear: Bug 14507 [Open] go-pear fails creating directories.</title>
      <link>http://pear.php.net/bugs/14507</link>
      <content:encoded><![CDATA[<pre>pearweb_gopear Bug
Reported by uli1448412
2008-08-15T16:39:20+00:00
PHP: 4.4.4 OS: Debian/Linux Package Version: 1.1.2

Description:
------------
go-pear creates all it's directories using mkdir(&quot;filename&quot;,mode). It therefore fails to access the dirs if umask is accidentally not 0000.

The problem is wellknown, see the annotations in the php online documentation: 

---8&lt;----
28-Jun-2003 01:00: 
You might notice that when you create a new directory using this code:

mkdir($dir, 0777);

The created folder actually has permissions of 0755, instead of the specified
0777. Why is this you ask? Because of umask(): http://www.php.net/umask

The default value of umask, at least on my setup, is 18. Which is 22 octal, or
0022. This means that when you use mkdir() to CHMOD the created folder to 0777,
PHP takes 0777 and substracts the current value of umask, in our case 0022, so
the result is 0755 - which is not what you wanted, probably.

The &quot;fix&quot; for this is simple, include this line:

$old_umask = umask(0);

Right before creating a folder with mkdir() to have the actual value you put be
used as the CHMOD. If you would like to return umask to its original value when
you're done, use this:

umask($old_umask);

-----8&lt;----


You can easiely fix the script by adding the line

$oldmask=umask(0000);

at the very beginning.

Test script:
---------------
go-pear.php as shipped.

Expected result:
----------------
working pear-installation

Actual result:
--------------
Errormessages like: 

FATAL ERROR! This directory exists, but we have no write permission in it.

You can grant this permission by logging on to the server and issuing the following command:
chmod 0777 /home/www/web2_226/html/pear_php5/temp

The hint given does not work, too. I think the directory is destroyed if it exists before.</pre>]]></content:encoded>
      <description><![CDATA[<pre>pearweb_gopear Bug
Reported by uli1448412
2008-08-15T16:39:20+00:00
PHP: 4.4.4 OS: Debian/Linux Package Version: 1.1.2

Description:
------------
go-pear creates all it's directories using mkdir(&quot;filename&quot;,mode). It therefore fails to access the dirs if umask is accidentally not 0000.

The problem is wellknown, see the annotations in the php online documentation: 

---8&lt;----
28-Jun-2003 01:00: 
You might notice that when you create a new directory using this code:

mkdir($dir, 0777);

The created folder actually has permissions of 0755, instead of the specified
0777. Why is this you ask? Because of umask(): http://www.php.net/umask

The default value of umask, at least on my setup, is 18. Which is 22 octal, or
0022. This means that when you use mkdir() to CHMOD the created folder to 0777,
PHP takes 0777 and substracts the current value of umask, in our case 0022, so
the result is 0755 - which is not what you wanted, probably.

The &quot;fix&quot; for this is simple, include this line:

$old_umask = umask(0);

Right before creating a folder with mkdir() to have the actual value you put be
used as the CHMOD. If you would like to return umask to its original value when
you're done, use this:

umask($old_umask);

-----8&lt;----


You can easiely fix the script by adding the line

$oldmask=umask(0000);

at the very beginning.

Test script:
---------------
go-pear.php as shipped.

Expected result:
----------------
working pear-installation

Actual result:
--------------
Errormessages like: 

FATAL ERROR! This directory exists, but we have no write permission in it.

You can grant this permission by logging on to the server and issuing the following command:
chmod 0777 /home/www/web2_226/html/pear_php5/temp

The hint given does not work, too. I think the directory is destroyed if it exists before.</pre>]]></description>
      <dc:date>2009-04-17T17:25:52+00:00</dc:date>
      <dc:creator>uli_rgbg &amp;#x61;&amp;#116; gmx &amp;#x64;&amp;#111;&amp;#x74; de</dc:creator>
      <dc:subject>pearweb_gopear Bug</dc:subject>
    </item>
</rdf:RDF>
