<?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=PHP_Archive</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/16192" />
      <rdf:li rdf:resource="http://pear.php.net/bug/15202" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12320" />

     </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/16192">
      <title>PHP_Archive: Feature/Change Request 16192 [Open] Bad URL rewrite in PHP_Archive::webFrontController</title>
      <link>http://pear.php.net/bugs/16192</link>
      <content:encoded><![CDATA[<pre>PHP_Archive Feature/Change Request
Reported by madmind
2009-05-06T20:52:37+00:00
PHP: 5.2.9 OS: Windows Package Version: 0.11.4

Description:
------------
The problem is that webFrontController rewrites all URI, not just the part after .phar file. Here is a trace for
http://dev.mad.lan/QuizStats/quiz_stats.phar/
where it should show me the index.php from .phar file, but instead it searces for QuizStats/, that is wrong.

    0.1217     551240     -&gt; PHP_Archive::webFrontController($initfile = 'index.php') D:\Server\sites\dev\QuizStats\quiz_stats.phar:1232
    0.1217     553600       -&gt; parse_url('/QuizStats/quiz_stats.phar/') D:\Server\sites\dev\QuizStats\quiz_stats.phar:270
                             &gt;=&gt; array ('path' =&gt; '/QuizStats/quiz_stats.phar/')
    0.1218     553440       -&gt; realpath('D:/Server/sites/dev/QuizStats/quiz_stats.phar') D:\Server\sites\dev\QuizStats\quiz_stats.phar:271
                             &gt;=&gt; 'D:\\Server\\sites\\dev\\QuizStats\\quiz_stats.phar'
    0.1219     553560       -&gt; basename('D:\\Server\\sites\\dev\\QuizStats\\quiz_stats.phar') D:\Server\sites\dev\QuizStats\quiz_stats.phar:272
                             &gt;=&gt; 'quiz_stats.phar'
    0.1220     553576       -&gt; str_replace('/quiz_stats.phar', '', '/QuizStats/quiz_stats.phar/') D:\Server\sites\dev\QuizStats\quiz_stats.phar:272
                             &gt;=&gt; '/QuizStats/'
    0.1220     553400       -&gt; substr('/QuizStats/', 1) D:\Server\sites\dev\QuizStats\quiz_stats.phar:282
                             &gt;=&gt; 'QuizStats/'
    0.1221     553336       -&gt; PHP_Archive::_fileExists($archive = 'D:\\Server\\sites\\dev\\QuizStats\\quiz_stats.phar', $path = 'QuizStats/') D:\Server\sites\dev\QuizStats\quiz_stats.phar:282
                             &gt;=&gt; FALSE
    0.1221     553544       -&gt; header('HTTP/1.0 404 Not Found') D:\Server\sites\dev\QuizStats\quiz_stats.phar:283
                             &gt;=&gt; NULL
                           &gt;=&gt; FALSE</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Archive Feature/Change Request
Reported by madmind
2009-05-06T20:52:37+00:00
PHP: 5.2.9 OS: Windows Package Version: 0.11.4

Description:
------------
The problem is that webFrontController rewrites all URI, not just the part after .phar file. Here is a trace for
http://dev.mad.lan/QuizStats/quiz_stats.phar/
where it should show me the index.php from .phar file, but instead it searces for QuizStats/, that is wrong.

    0.1217     551240     -&gt; PHP_Archive::webFrontController($initfile = 'index.php') D:\Server\sites\dev\QuizStats\quiz_stats.phar:1232
    0.1217     553600       -&gt; parse_url('/QuizStats/quiz_stats.phar/') D:\Server\sites\dev\QuizStats\quiz_stats.phar:270
                             &gt;=&gt; array ('path' =&gt; '/QuizStats/quiz_stats.phar/')
    0.1218     553440       -&gt; realpath('D:/Server/sites/dev/QuizStats/quiz_stats.phar') D:\Server\sites\dev\QuizStats\quiz_stats.phar:271
                             &gt;=&gt; 'D:\\Server\\sites\\dev\\QuizStats\\quiz_stats.phar'
    0.1219     553560       -&gt; basename('D:\\Server\\sites\\dev\\QuizStats\\quiz_stats.phar') D:\Server\sites\dev\QuizStats\quiz_stats.phar:272
                             &gt;=&gt; 'quiz_stats.phar'
    0.1220     553576       -&gt; str_replace('/quiz_stats.phar', '', '/QuizStats/quiz_stats.phar/') D:\Server\sites\dev\QuizStats\quiz_stats.phar:272
                             &gt;=&gt; '/QuizStats/'
    0.1220     553400       -&gt; substr('/QuizStats/', 1) D:\Server\sites\dev\QuizStats\quiz_stats.phar:282
                             &gt;=&gt; 'QuizStats/'
    0.1221     553336       -&gt; PHP_Archive::_fileExists($archive = 'D:\\Server\\sites\\dev\\QuizStats\\quiz_stats.phar', $path = 'QuizStats/') D:\Server\sites\dev\QuizStats\quiz_stats.phar:282
                             &gt;=&gt; FALSE
    0.1221     553544       -&gt; header('HTTP/1.0 404 Not Found') D:\Server\sites\dev\QuizStats\quiz_stats.phar:283
                             &gt;=&gt; NULL
                           &gt;=&gt; FALSE</pre>]]></description>
      <dc:date>2009-05-23T18:06:44+00:00</dc:date>
      <dc:creator>alex &amp;#x64;&amp;#111;&amp;#x74; madmind &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Archive Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/15202">
      <title>PHP_Archive: Feature/Change Request 15202 [Open] Improve PHPCS results</title>
      <link>http://pear.php.net/bugs/15202</link>
      <content:encoded><![CDATA[<pre>PHP_Archive Feature/Change Request
Reported by doconnor
2008-12-01T18:42:07+00:00
PHP: 5.2.6 OS:  Package Version: CVS

Description:
------------
PHP_Archive  	310 errors  	293 warnings

http://www.lauken.com/doconnor/phpcs.html

Test script:
---------------
phpcs</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Archive Feature/Change Request
Reported by doconnor
2008-12-01T18:42:07+00:00
PHP: 5.2.6 OS:  Package Version: CVS

Description:
------------
PHP_Archive  	310 errors  	293 warnings

http://www.lauken.com/doconnor/phpcs.html

Test script:
---------------
phpcs</pre>]]></description>
      <dc:date>2008-12-01T18:42:07+00:00</dc:date>
      <dc:creator>daniel &amp;#x64;&amp;#111;&amp;#x74; oconnor &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Archive Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12320">
      <title>PHP_Archive: Bug 12320 [Open] Notice raised on NULL meta-data</title>
      <link>http://pear.php.net/bugs/12320</link>
      <content:encoded><![CDATA[<pre>PHP_Archive Bug
Reported by farell
2007-10-24T02:59:05+00:00
PHP: 5.2.4 OS: Linux Package Version: 0.11.3

Description:
------------
While I try to read the content of an archive with PHP_Archive_Manager created by PHP_Archive_Creator, I get a NOTICE error.


This is due because meta-data is missing.

Example of file read by the manager (see test script) : 

File phar://______.phar/public/styles/site.css size: 2878
File phar://______.phar/public/styles/site.css save date: 2007-10-23 18:50
File phar://______.phar/public/styles/site.css crc: 1801274466
File phar://______.phar/public/styles/site.css size in archive: 2878
File phar://______.phar/public/styles/site.css offset in archive: 527321
File phar://______.phar/public/styles/site.css meta-data length: 0
File phar://______.phar/public/styles/site.css meta-data: NULL
File phar://______.phar/public/styles/site.css GZ compressed: no
File phar://______.phar/public/styles/site.css BZ2 compressed: no




Test script:
---------------
&lt;?php

require_once 'PHP/Archive/Manager.php';


if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
    die('YOU MUST SPECIFY $sourceDir and $pharDir');
} else {
    $sourceDir = '(....)';
    $pharDir = '(....)';
}
$pharFile = $pharAlias = '______.phar';


$pam = new PHP_Archive_Manager($pharDir . DIRECTORY_SEPARATOR . $pharFile);
$pam-&gt;dump();

?&gt;

Expected result:
----------------
No NOTICE error when error_reporting level set to E_ALL

Actual result:
--------------
Notice: Undefined offset:  6 in /usr/local/lib/php/PHP/Archive/Manager.php on line 420</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Archive Bug
Reported by farell
2007-10-24T02:59:05+00:00
PHP: 5.2.4 OS: Linux Package Version: 0.11.3

Description:
------------
While I try to read the content of an archive with PHP_Archive_Manager created by PHP_Archive_Creator, I get a NOTICE error.


This is due because meta-data is missing.

Example of file read by the manager (see test script) : 

File phar://______.phar/public/styles/site.css size: 2878
File phar://______.phar/public/styles/site.css save date: 2007-10-23 18:50
File phar://______.phar/public/styles/site.css crc: 1801274466
File phar://______.phar/public/styles/site.css size in archive: 2878
File phar://______.phar/public/styles/site.css offset in archive: 527321
File phar://______.phar/public/styles/site.css meta-data length: 0
File phar://______.phar/public/styles/site.css meta-data: NULL
File phar://______.phar/public/styles/site.css GZ compressed: no
File phar://______.phar/public/styles/site.css BZ2 compressed: no




Test script:
---------------
&lt;?php

require_once 'PHP/Archive/Manager.php';


if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
    die('YOU MUST SPECIFY $sourceDir and $pharDir');
} else {
    $sourceDir = '(....)';
    $pharDir = '(....)';
}
$pharFile = $pharAlias = '______.phar';


$pam = new PHP_Archive_Manager($pharDir . DIRECTORY_SEPARATOR . $pharFile);
$pam-&gt;dump();

?&gt;

Expected result:
----------------
No NOTICE error when error_reporting level set to E_ALL

Actual result:
--------------
Notice: Undefined offset:  6 in /usr/local/lib/php/PHP/Archive/Manager.php on line 420</pre>]]></description>
      <dc:date>2007-10-24T02:59:05+00:00</dc:date>
      <dc:creator>pear &amp;#x61;&amp;#116; laurent-laville &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>PHP_Archive Bug</dc:subject>
    </item>
</rdf:RDF>
