Passing parameters by reference to function (XML extension->xml_parse_into_struct)
2 posts
• Page 1 of 1
Passing parameters by reference to function (XML extension->xml_parse_into_struct)
Firstly, allow me to offer my compliments, I think Phalanger is a great project and I hope it goes a long way. Keep up the good work.
I've encountered a problem that seems to be occuring with a few functions for extensions that require an argument to be passed by reference. In this case ``xmlparseinto_struct()`` which requires its 3rd and optionally its 4th argument to be passed by reference. I found the error trying to build a console app.
It results in an ``Error: Parameter '3' must be passed by reference`` error.
I've not been using Phalanger for that long, but I can't see any obvious way around this, prefixing the argument with & doesn't seem to make a difference. It usually doesn't anyway in a non-phalanger environment.
I've encountered a problem that seems to be occuring with a few functions for extensions that require an argument to be passed by reference. In this case ``xmlparseinto_struct()`` which requires its 3rd and optionally its 4th argument to be passed by reference. I found the error trying to build a console app.
It results in an ``Error: Parameter '3' must be passed by reference`` error.
I've not been using Phalanger for that long, but I can't see any obvious way around this, prefixing the argument with & doesn't seem to make a difference. It usually doesn't anyway in a non-phalanger environment.
- Pharcyde@codeplex
- Posts: 1
- Joined: January 7th, 2012, 8:56 pm
RE: Passing parameters by reference to function (XML extension->xml_parse_into_struct)
Hi, I have no solution for you :-( but this seems like my problem with geting getimagesize I'v posted in http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=Phalanger&ForumId=269&ThreadId=2181&ANCHOR#Post6924.
From my point of view it seems like there is problem with some wrappers for PHP functions.
From my point of view it seems like there is problem with some wrappers for PHP functions.
- Dzonny@codeplex
- Posts: 4
- Joined: January 7th, 2012, 8:54 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests