PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Tools and Utilities » CodeGen_PECL » Bug #8621

Prototype parsing - pass by reference

Details

Submitted2006-09-03 02:29 UTC
Fromskissane at gmail dot com
Assignedhholzgra
StatusAssigned
PackageCodeGen_PECL
PHP Version5.1.4
OSLinux
Roadmaps(Not assigned)

Comments

[2006-09-03 02:29 UTC] skissane at gmail dot com

Description:
------------
The below prototype gets parsed wrong. It gives the error message

"only 'array' and 'mixed' arguments may be passed by reference, 'xx' is of type 'char' in ./swe.xml on line 53:9"

Obviously, somewhere the Function->newSetProto method is screwing up, and somehow pulling the "char" from the array("char","&") and thinking its the type.

Test script:
---------------
<proto>
int swe_calc(float tjd,int ipl,int iflag,array &xx,mixed &serr)
</proto>

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

Actual result:
--------------
doesn't work