<?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/20533" />
      <rdf:li rdf:resource="http://pear.php.net/bug/20405" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19981" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19979" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19783" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19349" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19048" />
      <rdf:li rdf:resource="http://pear.php.net/bug/18444" />
      <rdf:li rdf:resource="http://pear.php.net/bug/18243" />
      <rdf:li rdf:resource="http://pear.php.net/bug/17780" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16196" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14575" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13803" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12271" />
      <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/20533">
      <title>PHP_Beautifier: Bug 20533 [Open] help for php_beautifier Pear.filter.php question</title>
      <link>http://pear.php.net/bugs/20533</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by jouny
2015-04-20T16:47:06+00:00
PHP: 5.4.35 OS: win7 &amp;&amp; ceontos6.5 Package Version: 0.1.15

Description:
------------
Dear Claudio Bustos:
i'am jouny
when i used filters Pear like this:
php_beautifier -l &quot;Lowercase Pear&quot; -f F:\WebRoot\_test\oa.pro\a.php -
o F:\WebRoot\_test\oa.pro\b.php

the &quot;interface&quot; class &quot;{&quot; can't format on new line
code:
------
interface Kohana_Config_Reader extends Kohana_Config_Source {
------

how can fixed it?

Test script:
---------------
Dear Claudio Bustos:
i'am jouny
when i used filters Pear like this:
php_beautifier -l &quot;Lowercase Pear&quot; -f F:\WebRoot\_test\oa.pro\a.php -o F:\WebRoot\_test\oa.pro\b.php

the &quot;interface&quot; class &quot;{&quot; can't format on new line
code:
------
interface Kohana_Config_Reader extends Kohana_Config_Source {
------

how can fixed it?</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by jouny
2015-04-20T16:47:06+00:00
PHP: 5.4.35 OS: win7 &amp;&amp; ceontos6.5 Package Version: 0.1.15

Description:
------------
Dear Claudio Bustos:
i'am jouny
when i used filters Pear like this:
php_beautifier -l &quot;Lowercase Pear&quot; -f F:\WebRoot\_test\oa.pro\a.php -
o F:\WebRoot\_test\oa.pro\b.php

the &quot;interface&quot; class &quot;{&quot; can't format on new line
code:
------
interface Kohana_Config_Reader extends Kohana_Config_Source {
------

how can fixed it?

Test script:
---------------
Dear Claudio Bustos:
i'am jouny
when i used filters Pear like this:
php_beautifier -l &quot;Lowercase Pear&quot; -f F:\WebRoot\_test\oa.pro\a.php -o F:\WebRoot\_test\oa.pro\b.php

the &quot;interface&quot; class &quot;{&quot; can't format on new line
code:
------
interface Kohana_Config_Reader extends Kohana_Config_Source {
------

how can fixed it?</pre>]]></description>
      <dc:date>2015-04-20T16:47:06+00:00</dc:date>
      <dc:creator>303170436 &amp;#x61;&amp;#116; qq &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/20405">
      <title>PHP_Beautifier: Bug 20405 [Open] simple patch for dirname() return dot</title>
      <link>http://pear.php.net/bugs/20405</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by wlshyu
2014-09-11T19:27:18+00:00
PHP: Irrelevant OS: Irrelevant Package Version: 0.1.15

Description:
------------
Common.php, getSavePath():
Line 130: $sPrevious = dirname($sFile);
Line 141: $iCut = strlen($sPrevious);
Line 144: ... substr($sFile, $iCut) ...

After Line 130, add this:
if($sPrevious=='.') $sPrevious = '';</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by wlshyu
2014-09-11T19:27:18+00:00
PHP: Irrelevant OS: Irrelevant Package Version: 0.1.15

Description:
------------
Common.php, getSavePath():
Line 130: $sPrevious = dirname($sFile);
Line 141: $iCut = strlen($sPrevious);
Line 144: ... substr($sFile, $iCut) ...

After Line 130, add this:
if($sPrevious=='.') $sPrevious = '';</pre>]]></description>
      <dc:date>2014-09-11T19:27:18+00:00</dc:date>
      <dc:creator>wlshyu &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/19981">
      <title>PHP_Beautifier: Bug 19981 [Open] some automatic requires are missing</title>
      <link>http://pear.php.net/bugs/19981</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by spuhler
2013-06-18T03:44:53+00:00
PHP: HEAD SVN-2013-06-17 OS: Linux Package Version: 0.1.15

Description:
------------
The following requires are missing:
pear(dbobject.class.php) not found
pear(footer.php) not found
pear(kfp-globals.inc.php) not found</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by spuhler
2013-06-18T03:44:53+00:00
PHP: HEAD SVN-2013-06-17 OS: Linux Package Version: 0.1.15

Description:
------------
The following requires are missing:
pear(dbobject.class.php) not found
pear(footer.php) not found
pear(kfp-globals.inc.php) not found</pre>]]></description>
      <dc:date>2013-06-18T03:44:53+00:00</dc:date>
      <dc:creator>thomas &amp;#x61;&amp;#116; btspuhler &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/19979">
      <title>PHP_Beautifier: Bug 19979 [Open] dependencis missing</title>
      <link>http://pear.php.net/bugs/19979</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by spuhler
2013-06-17T06:48:57+00:00
PHP: Irrelevant OS: Linux Package Version: 0.1.15

Description:
------------
usiong pear make-rpm-spec doesn't require deps that would provide these files:
pear(PHP/DocBlockGenerator/Align.php) not found
php-pear-PHP_Beautifier	pear(PHPUnit/Framework.php) not found
php-pear-PHP_Beautifier	pear(dbobject.class.php) not found
php-pear-PHP_Beautifier	pear(footer.php) not found
php-pear-PHP_Beautifier	pear(kfp-globals.inc.php) not found</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by spuhler
2013-06-17T06:48:57+00:00
PHP: Irrelevant OS: Linux Package Version: 0.1.15

Description:
------------
usiong pear make-rpm-spec doesn't require deps that would provide these files:
pear(PHP/DocBlockGenerator/Align.php) not found
php-pear-PHP_Beautifier	pear(PHPUnit/Framework.php) not found
php-pear-PHP_Beautifier	pear(dbobject.class.php) not found
php-pear-PHP_Beautifier	pear(footer.php) not found
php-pear-PHP_Beautifier	pear(kfp-globals.inc.php) not found</pre>]]></description>
      <dc:date>2013-06-17T06:48:57+00:00</dc:date>
      <dc:creator>thomas &amp;#x61;&amp;#116; btspuhler &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/19783">
      <title>PHP_Beautifier: Bug 19783 [Open] {} after case after switch cause  Fatal error: Uncaught exception 'Exception'</title>
      <link>http://pear.php.net/bugs/19783</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by pierre_talmontiers
2013-01-14T09:21:36+00:00
PHP: 5.3.5 OS: windows 7 Package Version: 0.1.15

Description:
------------
switch($T){
	case'd'	:$a=&quot;it's ok&quot;;break;
	case('l')	:$a=&quot;it's ok&quot;;
	case('e')	:{$a=&quot;some code&quot;;} // it's not ok cause {}
	default		:{$a=&quot;some code&quot;;break;} // but here it's ok
		}

Actual result:
--------------
Fatal error: Uncaught exception 'Exception'  with message 'Token doesn't exists'</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by pierre_talmontiers
2013-01-14T09:21:36+00:00
PHP: 5.3.5 OS: windows 7 Package Version: 0.1.15

Description:
------------
switch($T){
	case'd'	:$a=&quot;it's ok&quot;;break;
	case('l')	:$a=&quot;it's ok&quot;;
	case('e')	:{$a=&quot;some code&quot;;} // it's not ok cause {}
	default		:{$a=&quot;some code&quot;;break;} // but here it's ok
		}

Actual result:
--------------
Fatal error: Uncaught exception 'Exception'  with message 'Token doesn't exists'</pre>]]></description>
      <dc:date>2013-01-14T09:21:36+00:00</dc:date>
      <dc:creator>pierre_de_talmontiers &amp;#x61;&amp;#116; yahoo &amp;#x64;&amp;#111;&amp;#x74; fr</dc:creator>
      <dc:subject>PHP_Beautifier Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/19349">
      <title>PHP_Beautifier: Bug 19349 [Open] elseif bug</title>
      <link>http://pear.php.net/bugs/19349</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by overcross
2012-03-26T15:46:59+00:00
PHP: 5.3.8 OS: windows xp Package Version: 0.1.15

Description:
------------
something wrong about elseif beautifier

Test script:
---------------
&lt;?php
function  test(){
    global $var;
    if($var-&gt;name == 'x'){
        $r1 = 'aa';
        $r2 = 'bb';
    }elseif($var-&gt;name == 'y'){
        $r1 = 'cc';
        $r2 = 'dd';
    }else{
        $r1 = 'ee';
        $r2 = 'ff';
    }
}
?&gt;

Expected result:
----------------
&lt;?php
function test() 
{
	global $var;
	if ($var-&gt;name == 'x') 
	{
		$r1 = 'aa';
		$r2 = 'bb';
	}
	elseif ($var-&gt;name == 'y')
	{
		$r1 = 'cc';
		$r2 = 'dd';
	}
	else
	{
		$r1 = 'ee';
		$r2 = 'ff';
	}
}
?&gt;

Actual result:
--------------
&lt;?php
function test() 
{
	global $var;
	if ($var-&gt;name == 'x') 
	{
		$r1 = 'aa';
		$r2 = 'bb';
	}
	elseif
	{
		($var-&gt;name == 'y') 
		{
			$r1 = 'cc';
		}
		$r2 = 'dd';
	}
	else
	{
		$r1 = 'ee';
		$r2 = 'ff';
	}
}
?&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by overcross
2012-03-26T15:46:59+00:00
PHP: 5.3.8 OS: windows xp Package Version: 0.1.15

Description:
------------
something wrong about elseif beautifier

Test script:
---------------
&lt;?php
function  test(){
    global $var;
    if($var-&gt;name == 'x'){
        $r1 = 'aa';
        $r2 = 'bb';
    }elseif($var-&gt;name == 'y'){
        $r1 = 'cc';
        $r2 = 'dd';
    }else{
        $r1 = 'ee';
        $r2 = 'ff';
    }
}
?&gt;

Expected result:
----------------
&lt;?php
function test() 
{
	global $var;
	if ($var-&gt;name == 'x') 
	{
		$r1 = 'aa';
		$r2 = 'bb';
	}
	elseif ($var-&gt;name == 'y')
	{
		$r1 = 'cc';
		$r2 = 'dd';
	}
	else
	{
		$r1 = 'ee';
		$r2 = 'ff';
	}
}
?&gt;

Actual result:
--------------
&lt;?php
function test() 
{
	global $var;
	if ($var-&gt;name == 'x') 
	{
		$r1 = 'aa';
		$r2 = 'bb';
	}
	elseif
	{
		($var-&gt;name == 'y') 
		{
			$r1 = 'cc';
		}
		$r2 = 'dd';
	}
	else
	{
		$r1 = 'ee';
		$r2 = 'ff';
	}
}
?&gt;</pre>]]></description>
      <dc:date>2012-03-26T15:46:59+00:00</dc:date>
      <dc:creator>overcross &amp;#x61;&amp;#116; qq &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/19048">
      <title>PHP_Beautifier: Bug 19048 [Open] Switch without break causes all subsequent lines to be indented improperly</title>
      <link>http://pear.php.net/bugs/19048</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by spectre256
2011-11-16T07:04:21+00:00
PHP: 5.2.10 OS: CentOS Linux Package Version: 0.1.15

Description:
------------
This may be related to many of the other switch related bugs, but when using the k&amp;r style (but not the default style within the Pear filter), a switch statement in a class function where the default case does not have a break at the end will cause all subsequent functions to be unindented relative to the class they are contained within

Test script:
---------------
$ cat test.php &lt;?php

class Foo {

	function withASwitch($param) {
		switch($param) {
			case &quot;a&quot;:
				echo &quot;a\n&quot;;

			default:
		}
	}

	function anotherFunction() {
		echo &quot;hello\n&quot;;
	}
}
$ cat testWorking.php 
&lt;?php

class Foo {

	function withASwitch($param) {
		switch($param) {
			case &quot;a&quot;:
				echo &quot;a\n&quot;;
			default:
			break;
		}
	}

	function anotherFunction() {
		echo &quot;hello\n&quot;;
	}
}


Expected result:
----------------
$ php_beautifier -t --filters &quot;IndentStyles(style=k&amp;r)&quot; testWorking.php
&lt;?php
class Foo {
	function withASwitch($param) {
		switch ($param) {
			case &quot;a&quot;:
				echo &quot;a\n&quot;;
			default:
			break;
		}
	}
	function anotherFunction() {
		echo &quot;hello\n&quot;;
	}
}


Actual result:
--------------
$ php_beautifier -t --filters &quot;IndentStyles(style=k&amp;r)&quot; test.php
&lt;?php
class Foo {
	function withASwitch($param) {
		switch ($param) {
			case &quot;a&quot;:
				echo &quot;a\n&quot;;
			default:
		}
}
function anotherFunction() {
	echo &quot;hello\n&quot;;
}
}</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by spectre256
2011-11-16T07:04:21+00:00
PHP: 5.2.10 OS: CentOS Linux Package Version: 0.1.15

Description:
------------
This may be related to many of the other switch related bugs, but when using the k&amp;r style (but not the default style within the Pear filter), a switch statement in a class function where the default case does not have a break at the end will cause all subsequent functions to be unindented relative to the class they are contained within

Test script:
---------------
$ cat test.php &lt;?php

class Foo {

	function withASwitch($param) {
		switch($param) {
			case &quot;a&quot;:
				echo &quot;a\n&quot;;

			default:
		}
	}

	function anotherFunction() {
		echo &quot;hello\n&quot;;
	}
}
$ cat testWorking.php 
&lt;?php

class Foo {

	function withASwitch($param) {
		switch($param) {
			case &quot;a&quot;:
				echo &quot;a\n&quot;;
			default:
			break;
		}
	}

	function anotherFunction() {
		echo &quot;hello\n&quot;;
	}
}


Expected result:
----------------
$ php_beautifier -t --filters &quot;IndentStyles(style=k&amp;r)&quot; testWorking.php
&lt;?php
class Foo {
	function withASwitch($param) {
		switch ($param) {
			case &quot;a&quot;:
				echo &quot;a\n&quot;;
			default:
			break;
		}
	}
	function anotherFunction() {
		echo &quot;hello\n&quot;;
	}
}


Actual result:
--------------
$ php_beautifier -t --filters &quot;IndentStyles(style=k&amp;r)&quot; test.php
&lt;?php
class Foo {
	function withASwitch($param) {
		switch ($param) {
			case &quot;a&quot;:
				echo &quot;a\n&quot;;
			default:
		}
}
function anotherFunction() {
	echo &quot;hello\n&quot;;
}
}</pre>]]></description>
      <dc:date>2011-11-16T07:04:21+00:00</dc:date>
      <dc:creator>julian &amp;#x64;&amp;#111;&amp;#x74; simioni &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/18444">
      <title>PHP_Beautifier: Feature/Change Request 18444 [Open] Remove the use of PEAR_Config, PEAR_Registry</title>
      <link>http://pear.php.net/bugs/18444</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by peelsasleep
2011-04-14T07:33:59+00:00
PHP: 5.3.1 OS: OSX 10.6.6 Package Version: 0.1.15

Description:
------------
Gedit prints this to the top of my beautified document:

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 650

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 697

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 757

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 786

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 914

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 1577

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 1607

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 2038

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 2091

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Registry.php on line 322

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Registry.php on line 1450

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Registry.php on line 1458</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Feature/Change Request
Reported by peelsasleep
2011-04-14T07:33:59+00:00
PHP: 5.3.1 OS: OSX 10.6.6 Package Version: 0.1.15

Description:
------------
Gedit prints this to the top of my beautified document:

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 650

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 697

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 757

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 786

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 914

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 1577

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 1607

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 2038

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Config.php on line 2091

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Registry.php on line 322

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Registry.php on line 1450

Deprecated: Assigning the return value of new by reference is 
deprecated in /usr/lib/php/PEAR/Registry.php on line 1458</pre>]]></description>
      <dc:date>2011-09-29T14:24:17+00:00</dc:date>
      <dc:creator>billy &amp;#x64;&amp;#111;&amp;#x74; rennekamp &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/18243">
      <title>PHP_Beautifier: Bug 18243 [Open] command line options</title>
      <link>http://pear.php.net/bugs/18243</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by mauricebis
2011-02-05T17:04:57+00:00
PHP: 5.3.1 OS: ubuntu 10.04 Lucid Package Version: 0.1.15

Description:
------------
PHP Version 5.3.2-1ubuntu4.7.

I tried the command line:

$php_beautifier -f scratch.php -o ~/.jedit/tmp_php_beautifier.php --indent_spaces 1 

and it doesn't work whereas the option -s2 (without space between s and 2) works fine.

Test script:
---------------
 $php_beautifier -f scratch.php -o ~/.jedit/tmp_php_beautifier.php --indent_spaces 2

Expected result:
----------------
Beautified output with 2 space indent is expected.

Actual result:
--------------
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0

Feb 05 11:51:59 php_beautifier [error] Can't match any file
Process php_beautifier exited with code 0</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by mauricebis
2011-02-05T17:04:57+00:00
PHP: 5.3.1 OS: ubuntu 10.04 Lucid Package Version: 0.1.15

Description:
------------
PHP Version 5.3.2-1ubuntu4.7.

I tried the command line:

$php_beautifier -f scratch.php -o ~/.jedit/tmp_php_beautifier.php --indent_spaces 1 

and it doesn't work whereas the option -s2 (without space between s and 2) works fine.

Test script:
---------------
 $php_beautifier -f scratch.php -o ~/.jedit/tmp_php_beautifier.php --indent_spaces 2

Expected result:
----------------
Beautified output with 2 space indent is expected.

Actual result:
--------------
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0

Feb 05 11:51:59 php_beautifier [error] Can't match any file
Process php_beautifier exited with code 0</pre>]]></description>
      <dc:date>2011-02-05T17:04:57+00:00</dc:date>
      <dc:creator>mauricebis &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/17780">
      <title>PHP_Beautifier: Bug 17780 [Open] Associative arrays indent incorrectly with BSD, GNU, WS filters</title>
      <link>http://pear.php.net/bugs/17780</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by rboudrie
2010-08-21T21:51:04+00:00
PHP: 5.3.2 OS: Fedora 12 Package Version: 0.1.15

Description:
------------
Associative arrays constructs like $foo{&quot;bar&quot;} treat the braces used for the associative indent as nexting braces with filters other that the default.  I see this problem with BSD, WS and GNU.  I am using the BSD filter for the demo of the problem.

Note how $vector{$foo} is broken in the php_beautify result with the BSD filter below.

This bug makes PhpBeautifier useless for those of us who loathe the K&amp;R style indentation and use lots of associative arrays in our code.  If this could be fixed, it would greatly improve the product.  Thanks.

Test script:
---------------
[root@dogs /tmp]# cat in.php
&lt;?php
$foo=&quot;Testing&quot;;
$vector{$foo}=&quot;bar&quot;;
if($vector{$foo} == &quot;bar&quot;)
  {
    print &quot;Yes, it is bar\n&quot;;
  }
?&gt;


Expected result:
----------------
&lt;?php
$foo = &quot;Testing&quot;;
$vector{$foo} = &quot;bar&quot;;

if ($vector{$foo} == &quot;bar&quot;)
{
      print &quot;Yes, it is bar\n&quot;;
}
?&gt;


Actual result:
--------------
[root@dogs /tmp]# php_beautifier --filters &quot;IndentStyles(style=bsd)&quot; in.php
&lt;?php
$foo = &quot;Testing&quot;;
$vector
{
    $foo} = &quot;bar&quot;;
    if ($vector
    {
        $foo} == &quot;bar&quot;)
        {
            print &quot;Yes, it is bar\n&quot;;
        }
?&gt;
[root@dogs /tmp]#</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Beautifier Bug
Reported by rboudrie
2010-08-21T21:51:04+00:00
PHP: 5.3.2 OS: Fedora 12 Package Version: 0.1.15

Description:
------------
Associative arrays constructs like $foo{&quot;bar&quot;} treat the braces used for the associative indent as nexting braces with filters other that the default.  I see this problem with BSD, WS and GNU.  I am using the BSD filter for the demo of the problem.

Note how $vector{$foo} is broken in the php_beautify result with the BSD filter below.

This bug makes PhpBeautifier useless for those of us who loathe the K&amp;R style indentation and use lots of associative arrays in our code.  If this could be fixed, it would greatly improve the product.  Thanks.

Test script:
---------------
[root@dogs /tmp]# cat in.php
&lt;?php
$foo=&quot;Testing&quot;;
$vector{$foo}=&quot;bar&quot;;
if($vector{$foo} == &quot;bar&quot;)
  {
    print &quot;Yes, it is bar\n&quot;;
  }
?&gt;


Expected result:
----------------
&lt;?php
$foo = &quot;Testing&quot;;
$vector{$foo} = &quot;bar&quot;;

if ($vector{$foo} == &quot;bar&quot;)
{
      print &quot;Yes, it is bar\n&quot;;
}
?&gt;


Actual result:
--------------
[root@dogs /tmp]# php_beautifier --filters &quot;IndentStyles(style=bsd)&quot; in.php
&lt;?php
$foo = &quot;Testing&quot;;
$vector
{
    $foo} = &quot;bar&quot;;
    if ($vector
    {
        $foo} == &quot;bar&quot;)
        {
            print &quot;Yes, it is bar\n&quot;;
        }
?&gt;
[root@dogs /tmp]#</pre>]]></description>
      <dc:date>2010-08-21T21:51:04+00:00</dc:date>
      <dc:creator>rob &amp;#x61;&amp;#116; boudrie &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/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-07T05: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-07T05: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-20T19: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/14575">
      <title>PHP_Beautifier: Bug 14575 [Assigned] 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-27T20: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-27T20: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>2010-03-16T11:13:47+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/13803">
      <title>PHP_Beautifier: Bug 13803 [Assigned] 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-29T21: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-29T21: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>2010-08-06T02:51:22+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/12271">
      <title>PHP_Beautifier: Feature/Change Request 12271 [Assigned] 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-18T12: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-18T12: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>2010-09-08T10:28:29+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/10019">
      <title>PHP_Beautifier: Bug 10019 [Assigned] switch indent</title>
      <link>http://pear.php.net/bugs/10019</link>
      <content:encoded><![CDATA[<pre>PHP_Beautifier Bug
Reported by crempa@...
2007-02-04T01: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-04T01: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>2010-03-16T11:12:12+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-01T07:45:34+00:00
PHP: 5.1.2 OS: n/a Package Version: 0.1.15

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-01T07:45:34+00:00
PHP: 5.1.2 OS: n/a Package Version: 0.1.15

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>2012-09-20T14:25:21+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>
