C# - PhpReference prolem

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

C# - PhpReference prolem

Postby samuelmpmac@codeplex » June 24th, 2008, 7:47 pm

I'm trying to use phalanger in an application in wich i need to use both php and c# pages. Everything works fine, but after i execute any page in .php with phalanger, when i try to run any c# page i receive an error saying that the type 'PHP.Core.PhpReference' can't be converted in 'MXM.Connection.AmbienteList'. It happens when i try to make this cast:

    protected void Page_Load(object sender, EventArgs e)
    {
        UsuarioPresenter UP = new UsuarioPresenter(((AmbienteList)Session[0]), this);
    }

From what i understood, phalanger must have converted Session[0] wich is originally of type 'object' to this 'PHP.Core.PhpReference' and is not converting it back... Is there any way to work this out?
samuelmpmac@codeplex
 
Posts: 1
Joined: January 7th, 2012, 8:53 pm

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 30 guests

cron

User Control Panel

Login

Who is online

In total there are 30 users online :: 0 registered, 0 hidden and 30 guests (based on users active over the past 5 minutes)
Most users ever online was 398 on April 19th, 2024, 9:04 pm

Users browsing this forum: No registered users and 30 guests