<?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_Beautifier</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/16197" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16196" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16195" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16178" />
      <rdf:li rdf:resource="http://pear.php.net/bug/15061" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14761" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14754" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14589" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14575" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14537" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14396" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14128" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13861" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13803" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13601" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12271" />
      <rdf:li rdf:resource="http://pear.php.net/bug/11245" />
      <rdf:li rdf:resource="http://pear.php.net/bug/10019" />
      <rdf:li rdf:resource="http://pear.php.net/bug/7776" />

     </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/16197">
      <title>PHP_Beautifier: Feature/Change Request 16197 [Open] Equals sign not aligned with surrounding assignments</title>
      <link>http://pear.php.net/bugs/16197</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by hm2k
2009-05-07T00:30:18+00:00
PHP: 5.2.9 OS:  Package Version: 0.1.14

Description:
------------
Equals sign not aligned with surrounding assignments

Expected result:
----------------
$a    = &quot;testing&quot;;
$zyx = &quot;test&quot;;

Actual result:
--------------
$a = &quot;testing&quot;;
$zyx = &quot;test&quot;;</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by hm2k
2009-05-07T00:30:18+00:00
PHP: 5.2.9 OS:  Package Version: 0.1.14

Description:
------------
Equals sign not aligned with surrounding assignments

Expected result:
----------------
$a    = &quot;testing&quot;;
$zyx = &quot;test&quot;;

Actual result:
--------------
$a = &quot;testing&quot;;
$zyx = &quot;test&quot;;</pre>]]></description>
      <dc:date>2009-10-20T14:51:25+00:00</dc:date>
      <dc:creator>hm2k &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>PHP_Beautifier Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16196">
      <title>PHP_Beautifier: Feature/Change Request 16196 [Open] Line exceeds 85 characters</title>
      <link>http://pear.php.net/bugs/16196</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by hm2k
2009-05-07T00:26:07+00:00
PHP: 5.2.9 OS:  Package Version: 0.1.14

Description:
------------
Line exceeds 85 characters

Lines that are longer than 85 chars should be made shorter by inserting a new line at an appropriate break of whitespace.

This would be easy enough to impliment.

Thanks.</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by hm2k
2009-05-07T00:26:07+00:00
PHP: 5.2.9 OS:  Package Version: 0.1.14

Description:
------------
Line exceeds 85 characters

Lines that are longer than 85 chars should be made shorter by inserting a new line at an appropriate break of whitespace.

This would be easy enough to impliment.

Thanks.</pre>]]></description>
      <dc:date>2009-10-20T14:50:17+00:00</dc:date>
      <dc:creator>hm2k &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>PHP_Beautifier Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16195">
      <title>PHP_Beautifier: Bug 16195 [Open] Function name &quot;package_function&quot; is prefixed with a package name but does not..</title>
      <link>http://pear.php.net/bugs/16195</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by hm2k
2009-05-07T00:15:21+00:00
PHP: 5.2.9 OS:  Package Version: 

Description:
------------
Function name &quot;package_function&quot; is prefixed with a package name but does not begin with a capital letter.

Converting package_function to Package_function is easy enough, but this is not done atm.

However, if for example the package is PHP_Beautifier, and your function is php_beautifier_test, you'd want it to convert to: PHP_Beautifier_test.

If it could establish the package name from the docblock or the method phpcs uses, it could easily figure out what it is supposed to be.</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by hm2k
2009-05-07T00:15:21+00:00
PHP: 5.2.9 OS:  Package Version: 

Description:
------------
Function name &quot;package_function&quot; is prefixed with a package name but does not begin with a capital letter.

Converting package_function to Package_function is easy enough, but this is not done atm.

However, if for example the package is PHP_Beautifier, and your function is php_beautifier_test, you'd want it to convert to: PHP_Beautifier_test.

If it could establish the package name from the docblock or the method phpcs uses, it could easily figure out what it is supposed to be.</pre>]]></description>
      <dc:date>2009-05-07T00:15:21+00:00</dc:date>
      <dc:creator>hm2k &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16178">
      <title>PHP_Beautifier: Bug 16178 [Open] Header Comment Blocks (Docblocks) aren't fixed or made pretty</title>
      <link>http://pear.php.net/bugs/16178</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by hm2k
2009-05-04T14:14:59+00:00
PHP: 5.2.9 OS:  Package Version: 0.1.14

Description:
------------
Regarding bug #15139 (https://pear.php.net/bugs/bug.php?id=15139)

Using PHP_CodeSniffer I generated a report, then passed the files through PHP_Beautifier, and created another report.

I found that PHP_Beautifier didn't prettify the &quot;Header Comment Blocks&quot; as per this proposal:

http://pear.php.net/pepr/pepr-proposal-show.php?id=128

Many of the issues raised by PHP_CodeSniffer are simply spacing issues.

Are the &quot;Header Comment Blocks&quot; going something that is covered by PHP_Beautifier?

Thanks.</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by hm2k
2009-05-04T14:14:59+00:00
PHP: 5.2.9 OS:  Package Version: 0.1.14

Description:
------------
Regarding bug #15139 (https://pear.php.net/bugs/bug.php?id=15139)

Using PHP_CodeSniffer I generated a report, then passed the files through PHP_Beautifier, and created another report.

I found that PHP_Beautifier didn't prettify the &quot;Header Comment Blocks&quot; as per this proposal:

http://pear.php.net/pepr/pepr-proposal-show.php?id=128

Many of the issues raised by PHP_CodeSniffer are simply spacing issues.

Are the &quot;Header Comment Blocks&quot; going something that is covered by PHP_Beautifier?

Thanks.</pre>]]></description>
      <dc:date>2009-05-05T13:26:29+00:00</dc:date>
      <dc:creator>hm2k &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/15061">
      <title>PHP_Beautifier: Feature/Change Request 15061 [Open] Exclamation should be treated as operator</title>
      <link>http://pear.php.net/bugs/15061</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by fidian
2008-11-17T12:25:27+00:00
PHP: 5.2.4 OS: Linux (various) Package Version: 0.1.14

Description:
------------
The exclamation point is not caught by T_OPERATOR as expected.

It would be easy to add the following line to Beautifier.php at about line 300:

'!' =&gt; 'T_OPERATOR',

That way parsed code that looks like (!$varname) could be beautified into (! $varname) by adding rules to just operators.  Right now, one would have to add code to add whitespace before variables, functions, and other things.</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by fidian
2008-11-17T12:25:27+00:00
PHP: 5.2.4 OS: Linux (various) Package Version: 0.1.14

Description:
------------
The exclamation point is not caught by T_OPERATOR as expected.

It would be easy to add the following line to Beautifier.php at about line 300:

'!' =&gt; 'T_OPERATOR',

That way parsed code that looks like (!$varname) could be beautified into (! $varname) by adding rules to just operators.  Right now, one would have to add code to add whitespace before variables, functions, and other things.</pre>]]></description>
      <dc:date>2008-11-17T14:01:41+00:00</dc:date>
      <dc:creator>fidian &amp;#x61;&amp;#116; rumkin &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Beautifier Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14761">
      <title>PHP_Beautifier: Bug 14761 [Open] do {} while () syntax messes up control sequence</title>
      <link>http://pear.php.net/bugs/14761</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by fidian
2008-10-08T09:53:57+00:00
PHP: 5.2.4 OS: Linux (various) Package Version: 0.1.14

Description:
------------
When parsing PHP code that contains a do {} while () syntax, the control sequence is messed up.

It pushes the &quot;while&quot; when it hits the token, but doesn't pop the &quot;while&quot; when it hits the semicolon when there were no open/close braces.

Test script:
---------------
&lt;?PHP function a() {do { code() } while (true); }


Expected result:
----------------
Oct 08 09:50:19 php_beautifier [debug] Push Control:333-&gt;function
Oct 08 09:50:19 php_beautifier [debug] Push Control:317-&gt;do
Oct 08 09:50:19 php_beautifier [debug] Pop Control:T_DO
Oct 08 09:50:19 php_beautifier [debug] Push Control:318-&gt;while
Oct 08 09:50:19 php_beautifier [debug] Pop Control:T_WHILE
Oct 08 09:50:19 php_beautifier [debug] Pop Control:T_FUNCTION

Actual result:
--------------
Oct 08 09:50:19 php_beautifier [debug] Push Control:333-&gt;function
Oct 08 09:50:19 php_beautifier [debug] Push Control:317-&gt;do
Oct 08 09:50:19 php_beautifier [debug] Pop Control:T_DO
Oct 08 09:50:19 php_beautifier [debug] Push Control:318-&gt;while
Oct 08 09:50:19 php_beautifier [debug] Pop Control:T_WHILE

** Missing the pop of T_FUNCTION</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by fidian
2008-10-08T09:53:57+00:00
PHP: 5.2.4 OS: Linux (various) Package Version: 0.1.14

Description:
------------
When parsing PHP code that contains a do {} while () syntax, the control sequence is messed up.

It pushes the &quot;while&quot; when it hits the token, but doesn't pop the &quot;while&quot; when it hits the semicolon when there were no open/close braces.

Test script:
---------------
&lt;?PHP function a() {do { code() } while (true); }


Expected result:
----------------
Oct 08 09:50:19 php_beautifier [debug] Push Control:333-&gt;function
Oct 08 09:50:19 php_beautifier [debug] Push Control:317-&gt;do
Oct 08 09:50:19 php_beautifier [debug] Pop Control:T_DO
Oct 08 09:50:19 php_beautifier [debug] Push Control:318-&gt;while
Oct 08 09:50:19 php_beautifier [debug] Pop Control:T_WHILE
Oct 08 09:50:19 php_beautifier [debug] Pop Control:T_FUNCTION

Actual result:
--------------
Oct 08 09:50:19 php_beautifier [debug] Push Control:333-&gt;function
Oct 08 09:50:19 php_beautifier [debug] Push Control:317-&gt;do
Oct 08 09:50:19 php_beautifier [debug] Pop Control:T_DO
Oct 08 09:50:19 php_beautifier [debug] Push Control:318-&gt;while
Oct 08 09:50:19 php_beautifier [debug] Pop Control:T_WHILE

** Missing the pop of T_FUNCTION</pre>]]></description>
      <dc:date>2008-10-08T09:53:57+00:00</dc:date>
      <dc:creator>fidian &amp;#x61;&amp;#116; rumkin &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14754">
      <title>PHP_Beautifier: Bug 14754 [Open] Comment at end of function throws off control sequence</title>
      <link>http://pear.php.net/bugs/14754</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by fidian
2008-10-06T14:35:36+00:00
PHP: 5.2.4 OS: Linux (various) Package Version: 0.1.14

Description:
------------
If you add a comment at the end of a function inside a class, the closing brace thinks it is not the ending brace of the function.

Test script:
---------------
&lt;?PHP
class Z {
        public function a() {
                echo &quot;hi&quot;;
        }
        private function b() {
                echo &quot;hi&quot;; // Comment
        }
        private function c() {
                echo &quot;hi&quot;;
        }
}
----------------------------------------
&lt;?php
class PHP_Beautifier_Filter_BBY extends PHP_Beautifier_Filter {
    function t_access($sTag) {
        $this-&gt;oBeaut-&gt;add($this-&gt;oBeaut-&gt;getTokenName($this-&gt;oBeaut-&gt;getControlSeq()));
        return PHP_Beautifier_Filter::BYPASS;
    }
}

Expected result:
----------------
&lt;?PHP
class Z {
        T_CLASSfunction a() {
                echo &quot;hi&quot;;
        }
        T_CLASSfunction b() {
                echo &quot;hi&quot;; // Comment

        }
        T_CLASSfunction c() {
                echo &quot;hi&quot;;
        }
}


Actual result:
--------------
&lt;?PHP
class Z {
        T_CLASSfunction a() {
                echo &quot;hi&quot;;
        }
        T_CLASSfunction b() {
                echo &quot;hi&quot;; // Comment

        }
        T_FUNCTIONfunction c() {
                echo &quot;hi&quot;;
        }
}</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by fidian
2008-10-06T14:35:36+00:00
PHP: 5.2.4 OS: Linux (various) Package Version: 0.1.14

Description:
------------
If you add a comment at the end of a function inside a class, the closing brace thinks it is not the ending brace of the function.

Test script:
---------------
&lt;?PHP
class Z {
        public function a() {
                echo &quot;hi&quot;;
        }
        private function b() {
                echo &quot;hi&quot;; // Comment
        }
        private function c() {
                echo &quot;hi&quot;;
        }
}
----------------------------------------
&lt;?php
class PHP_Beautifier_Filter_BBY extends PHP_Beautifier_Filter {
    function t_access($sTag) {
        $this-&gt;oBeaut-&gt;add($this-&gt;oBeaut-&gt;getTokenName($this-&gt;oBeaut-&gt;getControlSeq()));
        return PHP_Beautifier_Filter::BYPASS;
    }
}

Expected result:
----------------
&lt;?PHP
class Z {
        T_CLASSfunction a() {
                echo &quot;hi&quot;;
        }
        T_CLASSfunction b() {
                echo &quot;hi&quot;; // Comment

        }
        T_CLASSfunction c() {
                echo &quot;hi&quot;;
        }
}


Actual result:
--------------
&lt;?PHP
class Z {
        T_CLASSfunction a() {
                echo &quot;hi&quot;;
        }
        T_CLASSfunction b() {
                echo &quot;hi&quot;; // Comment

        }
        T_FUNCTIONfunction c() {
                echo &quot;hi&quot;;
        }
}</pre>]]></description>
      <dc:date>2008-10-06T14:35:36+00:00</dc:date>
      <dc:creator>fidian &amp;#x61;&amp;#116; rumkin &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14589">
      <title>PHP_Beautifier: Feature/Change Request 14589 [Open] the beautifier shouldn't delete empty rows i use for making readable the code</title>
      <link>http://pear.php.net/bugs/14589</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by francescospegni
2008-09-03T05:48:33+00:00
PHP: Irrelevant OS: ubuntu Package Version: 0.1.14

Description:
------------
i think the beautifier &quot;eats&quot; too many empty rows, even those i use (as an example) for dividing a function or method definition from the previous ones. it's like if the beautifier put the code lines too close each other, and the code becomes less readable. 

also, why not allowing (through a command line parameter) to chose whether the curly parentheses should go on the same line or on the line below?!?

also: i think the leading &lt;? such as the closing ?&gt; should be on their own row, without any other text after and before them.


what do you think about?

Test script:
---------------
&lt;? function fie() { echo &quot;fie&quot;; } function foo() { echo &quot;foo&quot;; } foo(); ?&gt;

Expected result:
----------------
&lt;?
function fie()
{
    echo &quot;fie&quot;;
} 

function foo()
{
    echo &quot;foo&quot;;
}

foo(); ?&gt;

Actual result:
--------------
&lt;? function fie()
{
    echo &quot;fie&quot;;
} 
function foo()
{
    echo &quot;foo&quot;;
}

foo(); 
?&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by francescospegni
2008-09-03T05:48:33+00:00
PHP: Irrelevant OS: ubuntu Package Version: 0.1.14

Description:
------------
i think the beautifier &quot;eats&quot; too many empty rows, even those i use (as an example) for dividing a function or method definition from the previous ones. it's like if the beautifier put the code lines too close each other, and the code becomes less readable. 

also, why not allowing (through a command line parameter) to chose whether the curly parentheses should go on the same line or on the line below?!?

also: i think the leading &lt;? such as the closing ?&gt; should be on their own row, without any other text after and before them.


what do you think about?

Test script:
---------------
&lt;? function fie() { echo &quot;fie&quot;; } function foo() { echo &quot;foo&quot;; } foo(); ?&gt;

Expected result:
----------------
&lt;?
function fie()
{
    echo &quot;fie&quot;;
} 

function foo()
{
    echo &quot;foo&quot;;
}

foo(); ?&gt;

Actual result:
--------------
&lt;? function fie()
{
    echo &quot;fie&quot;;
} 
function foo()
{
    echo &quot;foo&quot;;
}

foo(); 
?&gt;</pre>]]></description>
      <dc:date>2008-09-03T05:48:33+00:00</dc:date>
      <dc:creator>francesco &amp;#x64;&amp;#111;&amp;#x74; spegni &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Beautifier Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14575">
      <title>PHP_Beautifier: Bug 14575 [Open] PHP_Beautifier does not indent switch correctly</title>
      <link>http://pear.php.net/bugs/14575</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by ysangkok
2008-08-27T15:03:28+00:00
PHP: 5.2.4 OS: GNU/Linux Package Version: 0.1.14

Description:
------------
When using PHP_Beautifier on this code, the indenting of the switch does not return to normal after the switch. Other switch code works fine, so maybe it has something to do with the fact that there is no &quot;break&quot;, or that there is an if without brackets or &quot;else&quot;.

I extracted the code from a bigger script. PHP_Beautifier made all the code after that place indented with 4 spaces too many.

This is the normal behaviour that I would expect:

janus@Gigabob:21:55:20$ cat beautybug2.php 
&lt;?php
$v = 5;
switch ($v) {
case 5: exit;
case 6: break;
default: echo &quot;hallo&quot;;
}
?&gt;
janus@Gigabob:21:58:32$ php_beautifier beautybug2.php 
&lt;?php
$v = 5;
switch ($v) {
    case 5:
        exit;
    case 6:
    break;
    default:
        echo &quot;hallo&quot;;
}
?&gt;


Test script:
---------------
&lt;?php
define(&quot;dim&quot;, 3);
define(&quot;blank&quot;, &quot; &quot;);
$hexdigits = str_repeat(&quot; &quot;,100);
function showno($no) {
  global $hexdigits;

  if ($no == blank) return '.';
  switch (dim) {
    case 3:
    case 4:
      return $hexdigits[$no % 16]; // (custom modulo?)
    case 5:
      return $hexdigits[$no + 9];
    case 6:
      if ($no &lt; 11) return $hexdigits[$no % 10]; // (custom modulo?)
      if ($no &gt; 10) return $hexdigits[$no - 1 ];
  }
  return &quot;_&quot;;
}
echo showno(rand(0,100));
?&gt;

Expected result:
----------------
&lt;?php
define(&quot;dim&quot;, 3);
define(&quot;blank&quot;, &quot; &quot;);
$hexdigits = str_repeat(&quot; &quot;, 100);
function showno($no) {
    global $hexdigits;
    if ($no == blank) return '.';
    switch (dim) {
        case 3:
        case 4:
            return $hexdigits[$no % 16]; // (custom modulo?)
            
        case 5:
            return $hexdigits[$no + 9];
        case 6:
            if ($no &lt; 11) return $hexdigits[$no % 10]; // (custom modulo?)
            if ($no &gt; 10) return $hexdigits[$no - 1];
    }
    return &quot;_&quot;;
}
echo showno(rand(0, 100));
?&gt;

Actual result:
--------------
&lt;?php
define(&quot;dim&quot;, 3);
define(&quot;blank&quot;, &quot; &quot;);
$hexdigits = str_repeat(&quot; &quot;, 100);
function showno($no) {
    global $hexdigits;
    if ($no == blank) return '.';
    switch (dim) {
        case 3:
        case 4:
            return $hexdigits[$no % 16]; // (custom modulo?)
            
        case 5:
            return $hexdigits[$no + 9];
        case 6:
            if ($no &lt; 11) return $hexdigits[$no % 10]; // (custom modulo?)
            if ($no &gt; 10) return $hexdigits[$no - 1];
        }
        return &quot;_&quot;;
    }
    echo showno(rand(0, 100));
?&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by ysangkok
2008-08-27T15:03:28+00:00
PHP: 5.2.4 OS: GNU/Linux Package Version: 0.1.14

Description:
------------
When using PHP_Beautifier on this code, the indenting of the switch does not return to normal after the switch. Other switch code works fine, so maybe it has something to do with the fact that there is no &quot;break&quot;, or that there is an if without brackets or &quot;else&quot;.

I extracted the code from a bigger script. PHP_Beautifier made all the code after that place indented with 4 spaces too many.

This is the normal behaviour that I would expect:

janus@Gigabob:21:55:20$ cat beautybug2.php 
&lt;?php
$v = 5;
switch ($v) {
case 5: exit;
case 6: break;
default: echo &quot;hallo&quot;;
}
?&gt;
janus@Gigabob:21:58:32$ php_beautifier beautybug2.php 
&lt;?php
$v = 5;
switch ($v) {
    case 5:
        exit;
    case 6:
    break;
    default:
        echo &quot;hallo&quot;;
}
?&gt;


Test script:
---------------
&lt;?php
define(&quot;dim&quot;, 3);
define(&quot;blank&quot;, &quot; &quot;);
$hexdigits = str_repeat(&quot; &quot;,100);
function showno($no) {
  global $hexdigits;

  if ($no == blank) return '.';
  switch (dim) {
    case 3:
    case 4:
      return $hexdigits[$no % 16]; // (custom modulo?)
    case 5:
      return $hexdigits[$no + 9];
    case 6:
      if ($no &lt; 11) return $hexdigits[$no % 10]; // (custom modulo?)
      if ($no &gt; 10) return $hexdigits[$no - 1 ];
  }
  return &quot;_&quot;;
}
echo showno(rand(0,100));
?&gt;

Expected result:
----------------
&lt;?php
define(&quot;dim&quot;, 3);
define(&quot;blank&quot;, &quot; &quot;);
$hexdigits = str_repeat(&quot; &quot;, 100);
function showno($no) {
    global $hexdigits;
    if ($no == blank) return '.';
    switch (dim) {
        case 3:
        case 4:
            return $hexdigits[$no % 16]; // (custom modulo?)
            
        case 5:
            return $hexdigits[$no + 9];
        case 6:
            if ($no &lt; 11) return $hexdigits[$no % 10]; // (custom modulo?)
            if ($no &gt; 10) return $hexdigits[$no - 1];
    }
    return &quot;_&quot;;
}
echo showno(rand(0, 100));
?&gt;

Actual result:
--------------
&lt;?php
define(&quot;dim&quot;, 3);
define(&quot;blank&quot;, &quot; &quot;);
$hexdigits = str_repeat(&quot; &quot;, 100);
function showno($no) {
    global $hexdigits;
    if ($no == blank) return '.';
    switch (dim) {
        case 3:
        case 4:
            return $hexdigits[$no % 16]; // (custom modulo?)
            
        case 5:
            return $hexdigits[$no + 9];
        case 6:
            if ($no &lt; 11) return $hexdigits[$no % 10]; // (custom modulo?)
            if ($no &gt; 10) return $hexdigits[$no - 1];
        }
        return &quot;_&quot;;
    }
    echo showno(rand(0, 100));
?&gt;</pre>]]></description>
      <dc:date>2008-08-27T15:03:28+00:00</dc:date>
      <dc:creator>ysangkok &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14537">
      <title>PHP_Beautifier: Bug 14537 [Open] PHP_Beautifier breaks php 5.3 code</title>
      <link>http://pear.php.net/bugs/14537</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by berdir
2008-08-21T14:36:08+00:00
PHP: 5.2.6 OS: Linux Package Version: 0.1.14

Description:
------------
PHP_Beautifier removes whitespaces after php 5.3 statements like namespace and use which breaks the code.

Test script:
---------------
namespace A;

use B;


Expected result:
----------------
namespace A;

use B;

Actual result:
--------------
namespaceA;

useB;</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by berdir
2008-08-21T14:36:08+00:00
PHP: 5.2.6 OS: Linux Package Version: 0.1.14

Description:
------------
PHP_Beautifier removes whitespaces after php 5.3 statements like namespace and use which breaks the code.

Test script:
---------------
namespace A;

use B;


Expected result:
----------------
namespace A;

use B;

Actual result:
--------------
namespaceA;

useB;</pre>]]></description>
      <dc:date>2008-08-27T11:49:17+00:00</dc:date>
      <dc:creator>saschagros &amp;#x61;&amp;#116; bluewin &amp;#x64;&amp;#111;&amp;#x74; ch</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14396">
      <title>PHP_Beautifier: Feature/Change Request 14396 [Open] Lowercase filter to handle TRUE and FALSE</title>
      <link>http://pear.php.net/bugs/14396</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by rrjanbiah
2008-07-23T11:07:09+00:00
PHP: Irrelevant OS:  Package Version: CVS

Description:
------------
Would be nice to have Lowercase filter handling TRUE and FALSE too</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by rrjanbiah
2008-07-23T11:07:09+00:00
PHP: Irrelevant OS:  Package Version: CVS

Description:
------------
Would be nice to have Lowercase filter handling TRUE and FALSE too</pre>]]></description>
      <dc:date>2008-07-23T11:07:09+00:00</dc:date>
      <dc:creator>ng4rrjanbiah &amp;#x61;&amp;#116; rediffmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Beautifier Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14128">
      <title>PHP_Beautifier: Bug 14128 [Open] Output Filenames modification</title>
      <link>http://pear.php.net/bugs/14128</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by eloom
2008-06-12T04:44:25+00:00
PHP: 5.2.4 OS: Ubuntu Linux 8 Package Version: 0.1.13

Description:
------------
The output filename will be modificated when running a batch processing on the commandline.

I have files named like _filename.php in my directory.
When using &quot;php_beautifier *.php ../beauty/&quot; on the commandline the underscores of the filenames in the output directory will be removed. 

so _filename.php -&gt; ../beauty/filename.php</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by eloom
2008-06-12T04:44:25+00:00
PHP: 5.2.4 OS: Ubuntu Linux 8 Package Version: 0.1.13

Description:
------------
The output filename will be modificated when running a batch processing on the commandline.

I have files named like _filename.php in my directory.
When using &quot;php_beautifier *.php ../beauty/&quot; on the commandline the underscores of the filenames in the output directory will be removed. 

so _filename.php -&gt; ../beauty/filename.php</pre>]]></description>
      <dc:date>2008-06-12T04:44:25+00:00</dc:date>
      <dc:creator>eloom &amp;#x61;&amp;#116; gmx &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13861">
      <title>PHP_Beautifier: Bug 13861 [Open] indentation in /**/ dropped</title>
      <link>http://pear.php.net/bugs/13861</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by terrafrost
2008-05-08T23:51:23+00:00
PHP: Irrelevant OS:  Package Version: 

Description:
------------
Tested with the Pear filter, although it probably occurs with others, as well.

Test script:
---------------
&lt;?php
/*
&lt;?php
class test
{
    function test() 
    {
        switch (true) {
            default:
        }
}
}
*/
?&gt;

Expected result:
----------------
&lt;?php
/*
&lt;?php
class test
{
    function test() 
    {
        switch (true) {
            default:
        }
}
}
*/
?&gt;

Actual result:
--------------
&lt;?php
/*
&lt;?php
class test
{
function test()
{
switch (true) {
default:
}
}
}
*/
?&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by terrafrost
2008-05-08T23:51:23+00:00
PHP: Irrelevant OS:  Package Version: 

Description:
------------
Tested with the Pear filter, although it probably occurs with others, as well.

Test script:
---------------
&lt;?php
/*
&lt;?php
class test
{
    function test() 
    {
        switch (true) {
            default:
        }
}
}
*/
?&gt;

Expected result:
----------------
&lt;?php
/*
&lt;?php
class test
{
    function test() 
    {
        switch (true) {
            default:
        }
}
}
*/
?&gt;

Actual result:
--------------
&lt;?php
/*
&lt;?php
class test
{
function test()
{
switch (true) {
default:
}
}
}
*/
?&gt;</pre>]]></description>
      <dc:date>2008-06-21T16:31:14+00:00</dc:date>
      <dc:creator>terrafrost &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13803">
      <title>PHP_Beautifier: Bug 13803 [Open] switches not properly indenting with IndentStyles(style=bsd)</title>
      <link>http://pear.php.net/bugs/13803</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by terrafrost
2008-04-29T16:47:02+00:00
PHP: Irrelevant OS:  Package Version: 0.1.13

Description:
------------
Run the following on the test script:

php_beautifier --filters &quot;IndentStyles(style=bsd)&quot; source.php source.txt

Test script:
---------------
&lt;?php
$a='b';
switch ($a){case 'a':case 'b':case 'c':break;default:break;}
?&gt;

Expected result:
----------------
&lt;?php
$a = 'b';
switch ($a) {
    case 'a':
    case 'b':
    case 'c':
        break;
    default:
        break;
}
?&gt;

Actual result:
--------------
&lt;?php
$a = 'b';
switch ($a) 
{
case 'a':
case 'b':
case 'c':
break;
default:
break;
}
?&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by terrafrost
2008-04-29T16:47:02+00:00
PHP: Irrelevant OS:  Package Version: 0.1.13

Description:
------------
Run the following on the test script:

php_beautifier --filters &quot;IndentStyles(style=bsd)&quot; source.php source.txt

Test script:
---------------
&lt;?php
$a='b';
switch ($a){case 'a':case 'b':case 'c':break;default:break;}
?&gt;

Expected result:
----------------
&lt;?php
$a = 'b';
switch ($a) {
    case 'a':
    case 'b':
    case 'c':
        break;
    default:
        break;
}
?&gt;

Actual result:
--------------
&lt;?php
$a = 'b';
switch ($a) 
{
case 'a':
case 'b':
case 'c':
break;
default:
break;
}
?&gt;</pre>]]></description>
      <dc:date>2008-04-29T16:47:02+00:00</dc:date>
      <dc:creator>terrafrost &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13601">
      <title>PHP_Beautifier: Feature/Change Request 13601 [Open] cannot trivially find the current version</title>
      <link>http://pear.php.net/bugs/13601</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by topbit
2008-04-05T09:55:25+00:00
PHP: 5.2.1 OS: irrelevant Package Version: 0.1.13

Description:
------------
add -V &amp; --version options to display the current version.
(-v is already used for 'verbose')


Test script:
---------------
php -V
php --version

Expected result:
----------------
PHP Beautifier 1.1.13
PHP Beautifier 1.1.13

(One each for -V and --verbose)


Actual result:
--------------
Console_Getopt: unrecognized option -- V

Console_Getopt: unrecognized option --version

(both followed by the --help text)</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by topbit
2008-04-05T09:55:25+00:00
PHP: 5.2.1 OS: irrelevant Package Version: 0.1.13

Description:
------------
add -V &amp; --version options to display the current version.
(-v is already used for 'verbose')


Test script:
---------------
php -V
php --version

Expected result:
----------------
PHP Beautifier 1.1.13
PHP Beautifier 1.1.13

(One each for -V and --verbose)


Actual result:
--------------
Console_Getopt: unrecognized option -- V

Console_Getopt: unrecognized option --version

(both followed by the --help text)</pre>]]></description>
      <dc:date>2008-12-08T05:54:22+00:00</dc:date>
      <dc:creator>topbit+pear-PHP_Beautifier &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Beautifier Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12271">
      <title>PHP_Beautifier: Feature/Change Request 12271 [Open] Don't strip all blank lines</title>
      <link>http://pear.php.net/bugs/12271</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by rigrig
2007-10-18T07:34:30+00:00
PHP: 5.2.3 OS: Linux Package Version: 0.1.13

Description:
------------
It would be nice if there was an option to leave blank lines, since they could be there to improve readability.
Ideally there would be an option to
* replace all white space-only lines with an empty line
* specify a maximum number of blank lines in a row (I used 2 in my example)

Test script:
---------------
//something followed by (too) many empty lines
   

      

    
//some more

//next line actually does something
echo (&quot;Hello world!&quot;);

Expected result:
----------------
//something followed by (too) many empty lines


//some more

//next line actually does something
echo (&quot;Hello world!&quot;);

Actual result:
--------------
//something followed by (too) many empty lines
//some more
//next line actually does something
echo (&quot;Hello world!&quot;);</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by rigrig
2007-10-18T07:34:30+00:00
PHP: 5.2.3 OS: Linux Package Version: 0.1.13

Description:
------------
It would be nice if there was an option to leave blank lines, since they could be there to improve readability.
Ideally there would be an option to
* replace all white space-only lines with an empty line
* specify a maximum number of blank lines in a row (I used 2 in my example)

Test script:
---------------
//something followed by (too) many empty lines
   

      

    
//some more

//next line actually does something
echo (&quot;Hello world!&quot;);

Expected result:
----------------
//something followed by (too) many empty lines


//some more

//next line actually does something
echo (&quot;Hello world!&quot;);

Actual result:
--------------
//something followed by (too) many empty lines
//some more
//next line actually does something
echo (&quot;Hello world!&quot;);</pre>]]></description>
      <dc:date>2007-10-18T07:34:30+00:00</dc:date>
      <dc:creator>rich &amp;#x61;&amp;#116; home &amp;#x64;&amp;#111;&amp;#x74; nl</dc:creator>
      <dc:subject>PHP_Beautifier Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/11245">
      <title>PHP_Beautifier: Bug 11245 [Open] Lowercase filter prepends ' '</title>
      <link>http://pear.php.net/bugs/11245</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by rrjanbiah
2007-06-07T02:38:37+00:00
PHP: 5.2.2 OS:  Package Version: 0.1.13

Description:
------------
Lowercase filter prepends the control structure with ugly ' '.  Lowercase.filter.php#116 has the reason, but can't just remove the ' '; and it needs more work, I think.</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by rrjanbiah
2007-06-07T02:38:37+00:00
PHP: 5.2.2 OS:  Package Version: 0.1.13

Description:
------------
Lowercase filter prepends the control structure with ugly ' '.  Lowercase.filter.php#116 has the reason, but can't just remove the ' '; and it needs more work, I think.</pre>]]></description>
      <dc:date>2008-07-12T14:10:13+00:00</dc:date>
      <dc:creator>ng4rrjanbiah &amp;#x61;&amp;#116; rediffmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/10019">
      <title>PHP_Beautifier: Bug 10019 [Open] switch indent</title>
      <link>http://pear.php.net/bugs/10019</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by crempa@...
2007-02-03T20:14:39+00:00
PHP: 5.2.0 OS: Windows Package Version: 0.1.11

Description:
------------
If I use IndentStyles filter with &quot;allman/bsd&quot; type than the content of switch is not indented.

Expected result:
----------------
switch
{
    //switch content
}

Actual result:
--------------
switch
{
//switch content
}</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by crempa@...
2007-02-03T20:14:39+00:00
PHP: 5.2.0 OS: Windows Package Version: 0.1.11

Description:
------------
If I use IndentStyles filter with &quot;allman/bsd&quot; type than the content of switch is not indented.

Expected result:
----------------
switch
{
    //switch content
}

Actual result:
--------------
switch
{
//switch content
}</pre>]]></description>
      <dc:date>2008-06-29T17:34:25+00:00</dc:date>
      <dc:creator>crempa &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/7776">
      <title>PHP_Beautifier: Bug 7776 [Open] Problem with recursivity scanning and outputing</title>
      <link>http://pear.php.net/bugs/7776</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by nicolasembleton@...
2006-06-01T02:45:34+00:00
PHP: 5.1.2 OS: Windows XP Pro SP2 Package Version: 0.1.8

Description:
------------
While trying to beautify a complete recursive file structure with pattern *.php5, outputing give completly messy files, with truncated names, without putting files correctly in the output structure, etc...

Filename are often truncated, like &quot;ss.xml.php5&quot; instead of &quot;/class/class.xml.php5&quot; ( with path truncated too, i guess, so that's why file structure is not respected.

When trying to parse myself directory, it gives something clean, but i have to let to false &quot;setRecursive()&quot; because problems come from here. Sometimes, it stops alone from scanning directories with a big .php5 file, so work is partially done.

What else can i say to help you... I think a part of the problem come from glob() function using. Don't really now why, but... 

Test script:
---------------
Tried:
------
$oBeaut	= new PHP_Beautifier( );
$oBatch	= new PHP_Beautifier_Batch( $oBeaut );
$oBatch-&gt;addFilter( 'Dirox' );

$oBatch-&gt;setRecursive( true );

// Contains my sources
$in_path = &quot;d:/Projects/regie_pub/_/_/*.php5&quot;;

// Will contain output
$out_path = &quot;c:/tests/test-&quot; .date( &quot;ymdHi&quot; ) .&quot;/&quot;;

$oBatch-&gt;setInputFile( $in_path );
$oBatch-&gt;setOutputFile( $out_path );
$oBatch-&gt;process();
$oBatch-&gt;save();

And also:
---------

$oBeaut	= new PHP_Beautifier( );
$oBatch	= new PHP_Beautifier_Batch(	$oBeaut	);

$oBatch-&gt;addFilter(	'Dirox' );
$oBatch-&gt;setRecursive( true );

$in_path = &quot;d:/Projects/regie_pub/_/_/*.php5&quot;;
$out_path = &quot;c:/tests/test-&quot; .date( &quot;ymdHi&quot; ) .&quot;/&quot;;

$oBatch-&gt;setInputFile( $in_path );
$oBatch-&gt;setOutputFile( $out_path );
$oBatch-&gt;process();

$oBatchDir = new PHP_Beautifier_Batch_Output_Directory( $oBatch );
$oBatchDir-&gt;save();


Expected result:
----------------
Same file structure as original one with file beautified

Actual result:
--------------
It only can be viewed as a screenshot. Result is written and beautifying is done, but files are messy.

Looks like:

Outputdir/ail.php5 instead of 
Outputdir/acces/detail.php5

... Everything like this with some dir created, but named with truncated strings.

One thing strange is that the output is ALWAYS the same. Tried lots of workaround, but everytime, same output.

( Under linux, the command line works nice, but it stops at a certain file ( very big ) and so the whole work is not done )</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by nicolasembleton@...
2006-06-01T02:45:34+00:00
PHP: 5.1.2 OS: Windows XP Pro SP2 Package Version: 0.1.8

Description:
------------
While trying to beautify a complete recursive file structure with pattern *.php5, outputing give completly messy files, with truncated names, without putting files correctly in the output structure, etc...

Filename are often truncated, like &quot;ss.xml.php5&quot; instead of &quot;/class/class.xml.php5&quot; ( with path truncated too, i guess, so that's why file structure is not respected.

When trying to parse myself directory, it gives something clean, but i have to let to false &quot;setRecursive()&quot; because problems come from here. Sometimes, it stops alone from scanning directories with a big .php5 file, so work is partially done.

What else can i say to help you... I think a part of the problem come from glob() function using. Don't really now why, but... 

Test script:
---------------
Tried:
------
$oBeaut	= new PHP_Beautifier( );
$oBatch	= new PHP_Beautifier_Batch( $oBeaut );
$oBatch-&gt;addFilter( 'Dirox' );

$oBatch-&gt;setRecursive( true );

// Contains my sources
$in_path = &quot;d:/Projects/regie_pub/_/_/*.php5&quot;;

// Will contain output
$out_path = &quot;c:/tests/test-&quot; .date( &quot;ymdHi&quot; ) .&quot;/&quot;;

$oBatch-&gt;setInputFile( $in_path );
$oBatch-&gt;setOutputFile( $out_path );
$oBatch-&gt;process();
$oBatch-&gt;save();

And also:
---------

$oBeaut	= new PHP_Beautifier( );
$oBatch	= new PHP_Beautifier_Batch(	$oBeaut	);

$oBatch-&gt;addFilter(	'Dirox' );
$oBatch-&gt;setRecursive( true );

$in_path = &quot;d:/Projects/regie_pub/_/_/*.php5&quot;;
$out_path = &quot;c:/tests/test-&quot; .date( &quot;ymdHi&quot; ) .&quot;/&quot;;

$oBatch-&gt;setInputFile( $in_path );
$oBatch-&gt;setOutputFile( $out_path );
$oBatch-&gt;process();

$oBatchDir = new PHP_Beautifier_Batch_Output_Directory( $oBatch );
$oBatchDir-&gt;save();


Expected result:
----------------
Same file structure as original one with file beautified

Actual result:
--------------
It only can be viewed as a screenshot. Result is written and beautifying is done, but files are messy.

Looks like:

Outputdir/ail.php5 instead of 
Outputdir/acces/detail.php5

... Everything like this with some dir created, but named with truncated strings.

One thing strange is that the output is ALWAYS the same. Tried lots of workaround, but everytime, same output.

( Under linux, the command line works nice, but it stops at a certain file ( very big ) and so the whole work is not done )</pre>]]></description>
      <dc:date>2006-06-05T23:37:24+00:00</dc:date>
      <dc:creator>nicolasembleton &amp;#x61;&amp;#116; yahoo &amp;#x64;&amp;#111;&amp;#x74; fr</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
</rdf:RDF>
