Home » Tools and Utilities » CodeGen_PECL » Bug #8621
Prototype parsing - pass by reference
Details
| Submitted | 2006-09-03 02:29 UTC |
|---|---|
| From | skissane at gmail dot com |
| Assigned | hholzgra |
| Status | Assigned |
| Package | CodeGen_PECL |
| PHP Version | 5.1.4 |
| OS | Linux |
| 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