<?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/21067" />
      <rdf:li rdf:resource="http://pear.php.net/bug/20277" />
      <rdf:li rdf:resource="http://pear.php.net/bug/18718" />
      <rdf:li rdf:resource="http://pear.php.net/bug/18475" />
      <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/21067">
      <title>CodeGen_PECL: Feature/Change Request 21067 [Open] Package a new version?</title>
      <link>http://pear.php.net/bugs/21067</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Feature/Change Request
Reported by alan_k
2016-05-26T09:04:55+00:00
PHP: Irrelevant OS: any Package Version: 1.1.3

Description:
------------
can some one package a new version - the fixes in git make it usable..

Test script:
---------------
na

Expected result:
----------------
na

Actual result:
--------------
na</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Feature/Change Request
Reported by alan_k
2016-05-26T09:04:55+00:00
PHP: Irrelevant OS: any Package Version: 1.1.3

Description:
------------
can some one package a new version - the fixes in git make it usable..

Test script:
---------------
na

Expected result:
----------------
na

Actual result:
--------------
na</pre>]]></description>
      <dc:date>2016-05-26T09:04:55+00:00</dc:date>
      <dc:creator>alan &amp;#x61;&amp;#116; roojs &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/20277">
      <title>CodeGen_PECL: Feature/Change Request 20277 [Open] input stream resource do not convert php_stream</title>
      <link>http://pear.php.net/bugs/20277</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Feature/Change Request
Reported by ggtakec
2014-05-21T16:13:49+00:00
PHP: 5.3.28 OS: ubuntu Package Version: 1.1.3

Description:
------------
When a function which get stream resource parameter is specified 
in spec.xml, it seems that peck-gen puts wrong codes.

I think Function.php in CodeGen/PECL/Element directory should be 
following:

------
L:1160	case &quot;stream&quot;:
		$zvalType     = true;
		$argString   .= &quot;r&quot;;
		$var_decl    .= &quot;    zval * {$name} = NULL;\n&quot;;
		$var_decl    .= &quot;    php_stream * res_{$name} = 
NULL;\n&quot;;
		$postProcess .= &quot;    
php_stream_from_zval(res_{$name}, &amp;{$name});\n&quot;;
		break;
------

Because the parameter in zend_parse_parameters function which 
is put by peck-gen is specified as &quot;$name&quot;.

I changed my local Function.php, it worked good for me.

Regards,</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Feature/Change Request
Reported by ggtakec
2014-05-21T16:13:49+00:00
PHP: 5.3.28 OS: ubuntu Package Version: 1.1.3

Description:
------------
When a function which get stream resource parameter is specified 
in spec.xml, it seems that peck-gen puts wrong codes.

I think Function.php in CodeGen/PECL/Element directory should be 
following:

------
L:1160	case &quot;stream&quot;:
		$zvalType     = true;
		$argString   .= &quot;r&quot;;
		$var_decl    .= &quot;    zval * {$name} = NULL;\n&quot;;
		$var_decl    .= &quot;    php_stream * res_{$name} = 
NULL;\n&quot;;
		$postProcess .= &quot;    
php_stream_from_zval(res_{$name}, &amp;{$name});\n&quot;;
		break;
------

Because the parameter in zend_parse_parameters function which 
is put by peck-gen is specified as &quot;$name&quot;.

I changed my local Function.php, it worked good for me.

Regards,</pre>]]></description>
      <dc:date>2014-05-21T16:13:49+00:00</dc:date>
      <dc:creator>ggtakec &amp;#x61;&amp;#116; gmail &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/18718">
      <title>CodeGen_PECL: Bug 18718 [Open] Issue with manual generation</title>
      <link>http://pear.php.net/bugs/18718</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Bug
Reported by jbboehr
2011-08-12T03:39:26+00:00
PHP: 5.3.6 OS: Ubuntu 11.04 Package Version: 1.1.3

Description:
------------
I'm not very familiar with the whole docbook thing yet, but there appears to be some issues building the manual (as well as a lack of documentation).

The constants and ini sections aren't being included, and it appears to be this code in Extension.php around lines 822 and 839:

&amp;reference.extname.ini;

&amp;reference.extname.constants;

should be

&amp;reference.$idName.ini

&amp;reference.$idName.constants

I may just have no idea how to use it though.</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Bug
Reported by jbboehr
2011-08-12T03:39:26+00:00
PHP: 5.3.6 OS: Ubuntu 11.04 Package Version: 1.1.3

Description:
------------
I'm not very familiar with the whole docbook thing yet, but there appears to be some issues building the manual (as well as a lack of documentation).

The constants and ini sections aren't being included, and it appears to be this code in Extension.php around lines 822 and 839:

&amp;reference.extname.ini;

&amp;reference.extname.constants;

should be

&amp;reference.$idName.ini

&amp;reference.$idName.constants

I may just have no idea how to use it though.</pre>]]></description>
      <dc:date>2011-08-12T03:39:26+00:00</dc:date>
      <dc:creator>jbboehr &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/18475">
      <title>CodeGen_PECL: Bug 18475 [Open] resources in parameters don't work</title>
      <link>http://pear.php.net/bugs/18475</link>
      <content:encoded><![CDATA[<pre>CodeGen_PECL Bug
Reported by jille
2011-04-24T20:33:36+00:00
PHP: 5.3.6 OS: N/A Package Version: 1.1.3

Description:
------------
When you specify a resource in the parameters it writes:
  zval * argname_zval = NULL;
  php_stream * argname = NULL:
the second line ends with a colon instead of semicolon.

and the parameter-parsing line reads &amp;argname for the resource 
instead of &amp;argname_zval</pre>]]></content:encoded>
      <description><![CDATA[<pre>CodeGen_PECL Bug
Reported by jille
2011-04-24T20:33:36+00:00
PHP: 5.3.6 OS: N/A Package Version: 1.1.3

Description:
------------
When you specify a resource in the parameters it writes:
  zval * argname_zval = NULL;
  php_stream * argname = NULL:
the second line ends with a colon instead of semicolon.

and the parameter-parsing line reads &amp;argname for the resource 
instead of &amp;argname_zval</pre>]]></description>
      <dc:date>2011-04-24T20:33:36+00:00</dc:date>
      <dc:creator>jille &amp;#x61;&amp;#116; hexon &amp;#x64;&amp;#111;&amp;#x74; cx</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-02T13: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-02T13: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-02T13: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-02T13: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-02T13: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-02T13: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-28T21: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-28T21: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-28T21: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-30T18: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-30T18: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-30T18: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-04T17: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-04T17: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-06T22: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-03T02: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-03T02: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-19T12: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>
