<?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=CodeGen_PECL</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/16011" />
      <rdf:li rdf:resource="http://pear.php.net/bug/15209" />
      <rdf:li rdf:resource="http://pear.php.net/bug/15208" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13526" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13008" />
      <rdf:li rdf:resource="http://pear.php.net/bug/10613" />
      <rdf:li rdf:resource="http://pear.php.net/bug/8621" />

     </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/16011">
      <title>CodeGen_PECL: Bug 16011 [Open] improper handling of array in proto</title>
      <link>http://pear.php.net/bugs/16011</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Bug
Reported by tommyo
2009-03-10T17:50:55+00:00
PHP: 5.2.5 OS: Linux Package Version: 1.1.2

Description:
------------
zval array type is defined but never properly initialized, resulting in a NULL value when a zval is expected, thus failing when the HASH_OF() macro is triggered.

Patch is attached.

Test script:
---------------
&lt;function name=&quot;requestAction&quot; access=&quot;public&quot;&gt;
 	&lt;proto&gt;mixed requestAction( mixed url [, array extra ] )&lt;/proto&gt;
&lt;/function&gt;

Expected result:
----------------
/* {{{ proto mixed requestAction( mixed url [, array extra ] )
   */
PHP_METHOD(Object, requestAction)
{
        zend_class_entry * _this_ce;

        zval * _this_zval = NULL;
        zval * url = NULL;
        zval * extra = NULL;
        HashTable * extra_hash = NULL;


        MAKE_STD_ZVAL(extra);
        array_init(extra);

        if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), &quot;Oz/|a/&quot;, &amp;_this_zval, Object_ce_ptr, &amp;url, &amp;extra) == FAILURE) {
                return;
        }

        _this_ce = Z_OBJCE_P(_this_zval);

        extra_hash = HASH_OF(extra);

        do {
                ...
        } while (0);
}

Actual result:
--------------
/* {{{ proto mixed requestAction( mixed url [, array extra ] )
   */
PHP_METHOD(Object, requestAction)
{
        zend_class_entry * _this_ce;

        zval * _this_zval = NULL;
        zval * url = NULL;
        zval * extra = NULL;
        HashTable * extra_hash = NULL;

        if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), &quot;Oz/|a/&quot;, &amp;_this_zval, Object_ce_ptr, &amp;url, &amp;extra) == FAILURE) {
                return;
        }

        _this_ce = Z_OBJCE_P(_this_zval);

        extra_hash = HASH_OF(extra);

        do {
                ...
        } while (0);
}</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Bug
Reported by tommyo
2009-03-10T17:50:55+00:00
PHP: 5.2.5 OS: Linux Package Version: 1.1.2

Description:
------------
zval array type is defined but never properly initialized, resulting in a NULL value when a zval is expected, thus failing when the HASH_OF() macro is triggered.

Patch is attached.

Test script:
---------------
&lt;function name=&quot;requestAction&quot; access=&quot;public&quot;&gt;
 	&lt;proto&gt;mixed requestAction( mixed url [, array extra ] )&lt;/proto&gt;
&lt;/function&gt;

Expected result:
----------------
/* {{{ proto mixed requestAction( mixed url [, array extra ] )
   */
PHP_METHOD(Object, requestAction)
{
        zend_class_entry * _this_ce;

        zval * _this_zval = NULL;
        zval * url = NULL;
        zval * extra = NULL;
        HashTable * extra_hash = NULL;


        MAKE_STD_ZVAL(extra);
        array_init(extra);

        if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), &quot;Oz/|a/&quot;, &amp;_this_zval, Object_ce_ptr, &amp;url, &amp;extra) == FAILURE) {
                return;
        }

        _this_ce = Z_OBJCE_P(_this_zval);

        extra_hash = HASH_OF(extra);

        do {
                ...
        } while (0);
}

Actual result:
--------------
/* {{{ proto mixed requestAction( mixed url [, array extra ] )
   */
PHP_METHOD(Object, requestAction)
{
        zend_class_entry * _this_ce;

        zval * _this_zval = NULL;
        zval * url = NULL;
        zval * extra = NULL;
        HashTable * extra_hash = NULL;

        if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), &quot;Oz/|a/&quot;, &amp;_this_zval, Object_ce_ptr, &amp;url, &amp;extra) == FAILURE) {
                return;
        }

        _this_ce = Z_OBJCE_P(_this_zval);

        extra_hash = HASH_OF(extra);

        do {
                ...
        } while (0);
}</pre>]]></description>
      <dc:date>2009-03-10T17:50:55+00:00</dc:date>
      <dc:creator>tworeilly &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>CodeGen_PECL Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/15209">
      <title>CodeGen_PECL: Bug 15209 [Open] Property for classes could not be mixed or object</title>
      <link>http://pear.php.net/bugs/15209</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Bug
Reported by metal3d
2008-12-02T08:46:54+00:00
PHP: 5.2.6 OS: Linux Fedora 9 Package Version: 1.1.2

Description:
------------
I need to add other type on class as property, like object or array... But It doesn't works at all.

Only intergers, doubles and strings are allowed... Booleans don't works.

Test script:
---------------
&lt;!-- trying to set test property to be other than int or string --&gt;
 &lt;class name=&quot;Person&quot;&gt;
       &lt;property name=&quot;test&quot; type=&quot;array&quot; access=&quot;public&quot;/&gt;
 &lt;/class&gt;

Expected result:
----------------
working

Actual result:
--------------
[pafer@localhost extension2]$ pecl-gen  -f  ./monextension.xml
'object' is not a valid property type in ./monextension.xml on line 71:35
[pafer@localhost extension2]$ pecl-gen  -f  ./monextension.xml
'mixed' is not a valid property type in ./monextension.xml on line 71:35
[pafer@localhost extension2]$ pecl-gen  -f  ./monextension.xml
'array' is not a valid property type in ./monextension.xml on line 71:35
[pafer@localhost extension2]$ pecl-gen  -f  ./monextension.xml
'bool' is not a valid property type in ./monextension.xml on line 71:35</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Bug
Reported by metal3d
2008-12-02T08:46:54+00:00
PHP: 5.2.6 OS: Linux Fedora 9 Package Version: 1.1.2

Description:
------------
I need to add other type on class as property, like object or array... But It doesn't works at all.

Only intergers, doubles and strings are allowed... Booleans don't works.

Test script:
---------------
&lt;!-- trying to set test property to be other than int or string --&gt;
 &lt;class name=&quot;Person&quot;&gt;
       &lt;property name=&quot;test&quot; type=&quot;array&quot; access=&quot;public&quot;/&gt;
 &lt;/class&gt;

Expected result:
----------------
working

Actual result:
--------------
[pafer@localhost extension2]$ pecl-gen  -f  ./monextension.xml
'object' is not a valid property type in ./monextension.xml on line 71:35
[pafer@localhost extension2]$ pecl-gen  -f  ./monextension.xml
'mixed' is not a valid property type in ./monextension.xml on line 71:35
[pafer@localhost extension2]$ pecl-gen  -f  ./monextension.xml
'array' is not a valid property type in ./monextension.xml on line 71:35
[pafer@localhost extension2]$ pecl-gen  -f  ./monextension.xml
'bool' is not a valid property type in ./monextension.xml on line 71:35</pre>]]></description>
      <dc:date>2008-12-02T08:46:54+00:00</dc:date>
      <dc:creator>metal3d &amp;#x61;&amp;#116; copix &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>CodeGen_PECL Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/15208">
      <title>CodeGen_PECL: Feature/Change Request 15208 [Open] Return type doesn't allow var name</title>
      <link>http://pear.php.net/bugs/15208</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Feature/Change Request
Reported by metal3d
2008-12-02T08:32:24+00:00
PHP: 5.2.6 OS: Linux Fedora 9 Package Version: 1.1.2

Description:
------------
return variable name is only allowed with resource:
  &lt;function name=&quot;foo_open&quot;&gt;
   &lt;proto&gt;resource foo foo_open(string path)&lt;/proto&gt;
   &lt;code&gt;
    return_res = foo_open(path);

    if (!return_res) RETURN_FALSE;
   &lt;/code&gt;
  &lt;/function&gt;

It declare return_res as void *, why not do it with other return value ?</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Feature/Change Request
Reported by metal3d
2008-12-02T08:32:24+00:00
PHP: 5.2.6 OS: Linux Fedora 9 Package Version: 1.1.2

Description:
------------
return variable name is only allowed with resource:
  &lt;function name=&quot;foo_open&quot;&gt;
   &lt;proto&gt;resource foo foo_open(string path)&lt;/proto&gt;
   &lt;code&gt;
    return_res = foo_open(path);

    if (!return_res) RETURN_FALSE;
   &lt;/code&gt;
  &lt;/function&gt;

It declare return_res as void *, why not do it with other return value ?</pre>]]></description>
      <dc:date>2008-12-02T08:32:24+00:00</dc:date>
      <dc:creator>metal3d &amp;#x61;&amp;#116; copix &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>CodeGen_PECL Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13526">
      <title>CodeGen_PECL: Bug 13526 [Assigned] embedding DocBook XML in &lt;description&gt; no longer works</title>
      <link>http://pear.php.net/bugs/13526</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Bug
Reported by hholzgra
2008-03-28T17:28:43+00:00
PHP: Irrelevant OS:  Package Version: CVS

Description:
------------
DocBook XML in &lt;description&gt; no longer works and confuses the XML parser</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Bug
Reported by hholzgra
2008-03-28T17:28:43+00:00
PHP: Irrelevant OS:  Package Version: CVS

Description:
------------
DocBook XML in &lt;description&gt; no longer works and confuses the XML parser</pre>]]></description>
      <dc:date>2008-03-28T17:29:39+00:00</dc:date>
      <dc:creator>hholzgra &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>CodeGen_PECL Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13008">
      <title>CodeGen_PECL: Feature/Change Request 13008 [Open] No encoding option</title>
      <link>http://pear.php.net/bugs/13008</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Feature/Change Request
Reported by gruik
2008-01-30T13:35:18+00:00
PHP: 5.2.5 OS: Linux 2.4 Package Version: 1.1.0

Description:
------------
Hi,
pecl-gen generates files in UTF-8 even if i've specified another charset in the xml header. That's quite annoying if had some litteral strings in my &lt;code&gt; sections or in my &lt;test&gt; sections.

Expected result:
----------------
Taking base xml encoding in count or adding tags that allows us to specify output encodings</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Feature/Change Request
Reported by gruik
2008-01-30T13:35:18+00:00
PHP: 5.2.5 OS: Linux 2.4 Package Version: 1.1.0

Description:
------------
Hi,
pecl-gen generates files in UTF-8 even if i've specified another charset in the xml header. That's quite annoying if had some litteral strings in my &lt;code&gt; sections or in my &lt;test&gt; sections.

Expected result:
----------------
Taking base xml encoding in count or adding tags that allows us to specify output encodings</pre>]]></description>
      <dc:date>2008-01-30T13:35:18+00:00</dc:date>
      <dc:creator>poletto &amp;#x61;&amp;#116; jeuxvideo &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>CodeGen_PECL Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/10613">
      <title>CodeGen_PECL: Feature/Change Request 10613 [Assigned] patches to add a attribute 'throws' to a function element</title>
      <link>http://pear.php.net/bugs/10613</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Feature/Change Request
Reported by dimension
2007-04-04T12:51:43+00:00
PHP: 5.2.1 OS:  Package Version: 1.0.3

Description:
------------
Hello.

I created a patch (against 1.0.3) to add a attribute 'throws' to a function element. You can be found at http://www.doyouphp.jp/CodeGen_PECL_throws_patch.zip .

An example of a spec file and a generated C code was shown at http://d.hatena.ne.jp/shimooka/20070405/1175707692 (sorry, an explanation is in Japanese, but those code are written in ASCII) .</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Feature/Change Request
Reported by dimension
2007-04-04T12:51:43+00:00
PHP: 5.2.1 OS:  Package Version: 1.0.3

Description:
------------
Hello.

I created a patch (against 1.0.3) to add a attribute 'throws' to a function element. You can be found at http://www.doyouphp.jp/CodeGen_PECL_throws_patch.zip .

An example of a spec file and a generated C code was shown at http://d.hatena.ne.jp/shimooka/20070405/1175707692 (sorry, an explanation is in Japanese, but those code are written in ASCII) .</pre>]]></description>
      <dc:date>2007-04-06T17:01:52+00:00</dc:date>
      <dc:creator>shimooka &amp;#x61;&amp;#116; doyouphp &amp;#x64;&amp;#111;&amp;#x74; jp</dc:creator>
      <dc:subject>CodeGen_PECL Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/8621">
      <title>CodeGen_PECL: Bug 8621 [Assigned] Prototype parsing - pass by reference</title>
      <link>http://pear.php.net/bugs/8621</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Bug
Reported by skissane@...
2006-09-02T21:29:58+00:00
PHP: 5.1.4 OS: Linux Package Version: 1.0.3

Description:
------------
The below prototype gets parsed wrong. It gives the error message 

&quot;only 'array' and 'mixed' arguments may be passed by reference, 'xx' is of type 'char' in ./swe.xml on line 53:9&quot;

Obviously, somewhere the Function-&gt;newSetProto method is screwing up, and somehow pulling the &quot;char&quot; from the array(&quot;char&quot;,&quot;&amp;&quot;) and thinking its the type.

Test script:
---------------
&lt;proto&gt;
int swe_calc(float tjd,int ipl,int iflag,array &amp;amp;xx,mixed &amp;amp;serr)
&lt;/proto&gt;


Expected result:
----------------
works

Actual result:
--------------
doesn't work</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Bug
Reported by skissane@...
2006-09-02T21:29:58+00:00
PHP: 5.1.4 OS: Linux Package Version: 1.0.3

Description:
------------
The below prototype gets parsed wrong. It gives the error message 

&quot;only 'array' and 'mixed' arguments may be passed by reference, 'xx' is of type 'char' in ./swe.xml on line 53:9&quot;

Obviously, somewhere the Function-&gt;newSetProto method is screwing up, and somehow pulling the &quot;char&quot; from the array(&quot;char&quot;,&quot;&amp;&quot;) and thinking its the type.

Test script:
---------------
&lt;proto&gt;
int swe_calc(float tjd,int ipl,int iflag,array &amp;amp;xx,mixed &amp;amp;serr)
&lt;/proto&gt;


Expected result:
----------------
works

Actual result:
--------------
doesn't work</pre>]]></description>
      <dc:date>2007-11-19T07:03:02+00:00</dc:date>
      <dc:creator>skissane &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>CodeGen_PECL Bug</dc:subject>
    </item>
</rdf:RDF>
