Passing parameters by reference to function (XML extension->xml_parse_into_struct)

Discussion about the open-source Phalanger [?] project.

Passing parameters by reference to function (XML extension->xml_parse_into_struct)

Postby Pharcyde@codeplex » November 28th, 2006, 12:37 am

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.
Pharcyde@codeplex
 
Posts: 1
Joined: January 7th, 2012, 8:56 pm

RE: Passing parameters by reference to function (XML extension->xml_parse_into_struct)

Postby Dzonny@codeplex » November 28th, 2006, 3:57 pm

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.
Dzonny@codeplex
 
Posts: 4
Joined: January 7th, 2012, 8:54 pm


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 9 guests

User Control Panel

Login

Who is online

In total there are 9 users online :: 0 registered, 0 hidden and 9 guests (based on users active over the past 5 minutes)
Most users ever online was 511 on April 27th, 2024, 10:11 pm

Users browsing this forum: No registered users and 9 guests