Bug #76417 [Opn]: DOMText doesn't inherit $data and $wholeText properties from DOMCharacterData

From: Date: Wed, 06 Jun 2018 19:22:21 +0000
Subject: Bug #76417 [Opn]: DOMText doesn't inherit $data and $wholeText properties from DOMCharacterData
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215524@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76417&edit=1 ID: 76417 User updated by: pandenitz at mail dot ru Reported by: pandenitz at mail dot ru Summary: DOMText doesn't inherit $data and $wholeText properties from DOMCharacterData Status: Open Type: Bug Package: DOM XML related Operating System: Linux PHP Version: 7.1.18 Block user comment: N Private report: N New Comment: Can it be related to outdated libxml2 lib? These properties are part of DOM level 3 Previous Comments: ------------------------------------------------------------------------ [2018-06-06 13:26:29] pandenitz at mail dot ru $ php --rc DOMText Class [ <internal:dom> class DOMText extends DOMCharacterData ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [32] { Method [ <internal:dom> public method splitText ] { ... ------------------------------------------------------------------------ [2018-06-06 07:03:27] pandenitz at mail dot ru Also tested via ReflectionClass::getExtension() and ReflectionExtension::isInternal() - yes, it's 'internal' 'dom'. ------------------------------------------------------------------------ [2018-06-06 06:52:54] pandenitz at mail dot ru print_r(class_parents('\DOMText')) output: Array ( [DOMCharacterData] => DOMCharacterData [DOMNode] => DOMNode ) Really strange issue, but it does exist, I continue to explore it. ------------------------------------------------------------------------ [2018-06-06 02:53:52] requinix@php.net Yeah, everything looks fine on this end. You've tried running that exact script as you've posted it? What extensions are enabled? Does php --rc DOMText output Class [ <internal:dom> class DOMText extends DOMCharacterData ] { ------------------------------------------------------------------------ [2018-06-06 01:36:58] a at b dot c dot de Could be configuration-related: https://3v4l.org/5qeXM The only difference I'm seeing is that the object had a "nextSibling" attribute added in 7.1.2. In particular, "wholeText" and "data" are both there in all versions. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=76417 -- Edit this bug report at https://bugs.php.net/bug.php?id=76417&edit=1

« previous php.bugs (#215524) next »