<?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_Shell&amp;PHPSESSID=6sh8hov6085gl1gd4s43b0k8h0</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/16028" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14938" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14276" />
      <rdf:li rdf:resource="http://pear.php.net/bug/9556" />
      <rdf:li rdf:resource="http://pear.php.net/bug/8554" />

     </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/16028">
      <title>PHP_Shell: Bug 16028 [Open] arrows don't work on os x</title>
      <link>http://pear.php.net/bugs/16028</link>
      <content:encoded><![CDATA[<pre>PHP_Shell Bug
Reported by quinn
2009-03-12T17:28:40+00:00
PHP: 5.2.5 OS: os x 10.5.6 Package Version: 0.3.0

Description:
------------
using the arrow keys causes strange characters to be written to the screen, 
rather than navigating through whats been typed or the command history. 

Test script:
---------------
:php-shell.sh 
PHP-Shell - Version 0.3.0
(c) 2006, Jan Kneschke &lt;jan@kneschke.de&gt;

&gt;&gt; use '?' to open the inline help 

&gt;&gt; array();
array (
)
&gt;&gt; ^[[A^[[C^[[B^[[D^[[B</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Shell Bug
Reported by quinn
2009-03-12T17:28:40+00:00
PHP: 5.2.5 OS: os x 10.5.6 Package Version: 0.3.0

Description:
------------
using the arrow keys causes strange characters to be written to the screen, 
rather than navigating through whats been typed or the command history. 

Test script:
---------------
:php-shell.sh 
PHP-Shell - Version 0.3.0
(c) 2006, Jan Kneschke &lt;jan@kneschke.de&gt;

&gt;&gt; use '?' to open the inline help 

&gt;&gt; array();
array (
)
&gt;&gt; ^[[A^[[C^[[B^[[D^[[B</pre>]]></description>
      <dc:date>2009-03-12T17:28:40+00:00</dc:date>
      <dc:creator>q &amp;#x64;&amp;#111;&amp;#x74; shanahan &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Shell Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14938">
      <title>PHP_Shell: Feature/Change Request 14938 [Open] Improve PHPCS results</title>
      <link>http://pear.php.net/bugs/14938</link>
      <content:encoded><![CDATA[<pre>PHP_Shell Feature/Change Request
Reported by doconnor
2008-11-01T22:26:34+00:00
PHP: 5.2.6 OS:  Package Version: CVS

Description:
------------
See http://pear.cweiske.de/codingstandards/PHP_Shell.html

8593 errors and 980 warnings :(</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Shell Feature/Change Request
Reported by doconnor
2008-11-01T22:26:34+00:00
PHP: 5.2.6 OS:  Package Version: CVS

Description:
------------
See http://pear.cweiske.de/codingstandards/PHP_Shell.html

8593 errors and 980 warnings :(</pre>]]></description>
      <dc:date>2008-11-01T22:26:34+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_Shell Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14276">
      <title>PHP_Shell: Bug 14276 [Open] path not quoted in php-shell.bat</title>
      <link>http://pear.php.net/bugs/14276</link>
      <content:encoded><![CDATA[<pre>PHP_Shell Bug
Reported by tgr
2008-07-02T07:35:39+00:00
PHP: 5.2.4 OS: Windows Package Version: 0.3.0

Description:
------------
The pear installer under Windows creates a php-shell.bat file in the php directory whith a line like

C:\Program Files\php\.\php.exe -q C:\Program Files\php\pear/php-shell-cmd.php

The Windows interpreter will try to run &quot;C:/Program&quot;. Both the command name and the parameter should be quoted for correct results:

&quot;C:\Program Files\php\.\php.exe&quot; -q &quot;C:\Program Files\php\pear/php-shell-cmd.php&quot;

(The dot in the command name and the normal slash in the argument look weird but cause no problems.)</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Shell Bug
Reported by tgr
2008-07-02T07:35:39+00:00
PHP: 5.2.4 OS: Windows Package Version: 0.3.0

Description:
------------
The pear installer under Windows creates a php-shell.bat file in the php directory whith a line like

C:\Program Files\php\.\php.exe -q C:\Program Files\php\pear/php-shell-cmd.php

The Windows interpreter will try to run &quot;C:/Program&quot;. Both the command name and the parameter should be quoted for correct results:

&quot;C:\Program Files\php\.\php.exe&quot; -q &quot;C:\Program Files\php\pear/php-shell-cmd.php&quot;

(The dot in the command name and the normal slash in the argument look weird but cause no problems.)</pre>]]></description>
      <dc:date>2008-07-02T07:35:39+00:00</dc:date>
      <dc:creator>gtisza &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Shell Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/9556">
      <title>PHP_Shell: Bug 9556 [Open] curly open not recognized</title>
      <link>http://pear.php.net/bugs/9556</link>
      <content:encoded><![CDATA[<pre>PHP_Shell Bug
Reported by glen@...
2006-12-06T06:02:26+00:00
PHP: 5.2.0 RC4 OS: PLD Linux Package Version: 0.3.0

Description:
------------
works from CLI:

# php -r '$z=array(1,33);echo &quot;jura: {$z[1]}\n&quot;;'
jura: 33
#

and warns from php-shell:

# php-shell
PHP-Shell - Version 0.3.1, with readline() support
&gt;&gt; $z=array(1,33);
array (
  0 =&gt; 1,
  1 =&gt; 33,
)
&gt;&gt; echo &quot;jura: {$z[1]}\n&quot;;
unknown tag: 374 (T_CURLY_OPEN): {

jura :  { Array [1 ]}

# php -v
PHP 5.2.0 (cli) (built: Nov 20 2006 01:08:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend 
Technologies</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Shell Bug
Reported by glen@...
2006-12-06T06:02:26+00:00
PHP: 5.2.0 RC4 OS: PLD Linux Package Version: 0.3.0

Description:
------------
works from CLI:

# php -r '$z=array(1,33);echo &quot;jura: {$z[1]}\n&quot;;'
jura: 33
#

and warns from php-shell:

# php-shell
PHP-Shell - Version 0.3.1, with readline() support
&gt;&gt; $z=array(1,33);
array (
  0 =&gt; 1,
  1 =&gt; 33,
)
&gt;&gt; echo &quot;jura: {$z[1]}\n&quot;;
unknown tag: 374 (T_CURLY_OPEN): {

jura :  { Array [1 ]}

# php -v
PHP 5.2.0 (cli) (built: Nov 20 2006 01:08:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend 
Technologies</pre>]]></description>
      <dc:date>2006-12-06T06:02:26+00:00</dc:date>
      <dc:creator>glen &amp;#x61;&amp;#116; delfi &amp;#x64;&amp;#111;&amp;#x74; ee</dc:creator>
      <dc:subject>PHP_Shell Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/8554">
      <title>PHP_Shell: Bug 8554 [Open] Raises Exception for Dynamically Dispatched Functions</title>
      <link>http://pear.php.net/bugs/8554</link>
      <content:encoded><![CDATA[<pre>PHP_Shell Bug
Reported by ripta.pasay@...
2006-08-24T15:57:55+00:00
PHP: 5.1.4 OS: CentOS release 3.5 (Final) Package Version: 0.3.0

Description:
------------
When function calls are handled by __call (PHP 5.x only), PHPShell will raise an Exception on line 346, because it uses method_exists() to check whether the function exists or not.

Using is_callable() instead of method_exists() will handle __call()s correctly. A down side: is_callable() seems to always return TRUE if __call() exists.



Test script:
---------------
class Test
{
  public function __call($methodName, $argList)
  {
    echo &quot;$methodName called\n&quot;;
  }
}

$t = new Test();
$t-&gt;doIt();

Expected result:
----------------
doIt called

Actual result:
--------------
Exception (code: 0) got thrown
exception 'Exception' with message 'Variable $t (Class 'Test') doesn't have a method named 'doIt'' in /usr/local/lib/php/PHP/Shell.php:346
Stack trace:
#0 /usr/local/lib/php/php-shell-cmd.php(116): PHP_Shell-&gt;parse()
#1 {main}</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_Shell Bug
Reported by ripta.pasay@...
2006-08-24T15:57:55+00:00
PHP: 5.1.4 OS: CentOS release 3.5 (Final) Package Version: 0.3.0

Description:
------------
When function calls are handled by __call (PHP 5.x only), PHPShell will raise an Exception on line 346, because it uses method_exists() to check whether the function exists or not.

Using is_callable() instead of method_exists() will handle __call()s correctly. A down side: is_callable() seems to always return TRUE if __call() exists.



Test script:
---------------
class Test
{
  public function __call($methodName, $argList)
  {
    echo &quot;$methodName called\n&quot;;
  }
}

$t = new Test();
$t-&gt;doIt();

Expected result:
----------------
doIt called

Actual result:
--------------
Exception (code: 0) got thrown
exception 'Exception' with message 'Variable $t (Class 'Test') doesn't have a method named 'doIt'' in /usr/local/lib/php/PHP/Shell.php:346
Stack trace:
#0 /usr/local/lib/php/php-shell-cmd.php(116): PHP_Shell-&gt;parse()
#1 {main}</pre>]]></description>
      <dc:date>2006-10-18T15:33:15+00:00</dc:date>
      <dc:creator>ripta &amp;#x64;&amp;#111;&amp;#x74; pasay &amp;#x61;&amp;#116; lunarpages &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_Shell Bug</dc:subject>
    </item>
</rdf:RDF>
