Page 1 of 1

DOMText issues

PostPosted: February 5th, 2014, 6:34 pm
by evbase
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.

Re: DOMText issues

PostPosted: February 10th, 2014, 4:50 pm
by Jakub Misek