DOMText issues

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

DOMText issues

Postby evbase » February 5th, 2014, 6:34 pm

Hello there, I am having problems working with a library that deals with DOM functions. I have finally traced the issue down to the DOMText class. More specifically the splitText() function of that class.

Here is a sample of test code that shows the issue:
Code: Select all
<?php
$node = new DOMText("some sample text");
echo "node class = " . get_class($node) . "<br>";
$node2 = $node->splitText(5);
echo "node2 class = " . get_class($node);
?>


So, in Apache with regular PHP, the output of this is:

node class = DOMText
node2 class = DOMText

but in Phalanger 3.0 the output is:

node class = PHP\Library\Xml\DOMText

Error: Uncaught exception 'DOMException' with message 'Invalid State Error' Stack trace: #10 : ProcessRequestNotificationHelper #9 : MgdIndicateCompletion #8 : ProcessRequestNotification #7 : ProcessRequestNotificationHelper #6 : ProcessRequestNotificationPrivate #5 : BeginProcessRequestNotification #4 : ResumeSteps #3 : ExecuteStep #2 : System.Web.HttpApplication.IExecutionStep.Execute #1 :
#0 C:\inetpub\wwwroot\PDFclass\test.php(4,1): splitText_ #11 {main}.

Is this a known issue? I'm kind of new to Phalanger so I'm not even sure of the bug reporting procedure. I'm mostly wondering if anyone else has run into this and if maybe I'm not loading an extension properly or something.

Thanks.
evbase
 
Posts: 5
Joined: January 13th, 2014, 10:48 pm

Re: DOMText issues

Postby Jakub Misek » February 10th, 2014, 4:50 pm

Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 23 guests

cron

User Control Panel

Login

Who is online

In total there are 23 users online :: 0 registered, 0 hidden and 23 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 23 guests