Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.3

Bug #8621 Prototype parsing - pass by reference
Submitted: 2006-09-03 02:29 UTC
From: skissane at gmail dot com Assigned: hholzgra
Status: Assigned Package: CodeGen_PECL (version 1.0.3)
PHP Version: 5.1.4 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 12 + 7 = ?

 
 [2006-09-03 02:29 UTC] skissane at gmail dot com (sj kissane)
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

Comments

 [2006-09-05 08:44 UTC] hholzgra (Hartmut Holzgraefe)
suspended for now as i am about to redo the "pass by reference" stuff for a complete implementation supporting all types