peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.33k stars 202 forks source link

C14N() on a node returns the root-node #1065

Open kripper opened 2 years ago

kripper commented 2 years ago

Test case: https://onlinephp.io/c/f4d65

Given the following XML example, running C14N() on tag "NODE" returns the whole document (BUG). c14N() on tag "NODE" should only return the content of tag "NODE".

<?xml version="1.0"?>
<TEST>
  <NODE>
    here
  </NODE>
</TEST>