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

From: Date: Wed, 06 Jun 2018 19:43:48 +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-215525@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: I see the only difference between configure commands, different server PHP versions have different endings of 'configure': PHP 5.6 (no bugs): ... build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 '-g' '-pipe' '-Wall' '-Wp,-D_FORTIFY_SOURCE=2' '-fexceptions' '-fstack-protector' '--param=ssp-buffer-size=4' '-m64' '-mtune=generic' '-fno-strict-aliasing' '-Wno-pointer-sign'' 'LDFLAGS= '-L/opt/alt/openssl/lib64' '-L/opt/alt/net-snmp/usr/lib64' '-Wl,-rpath=/opt/alt/openssl/lib64,-rpath=/opt/alt/curlssl/usr/lib64,-rpath=/opt/alt/net-snmp/usr/lib64,-rpath=/opt/alt/libssh2/usr/lib64,-rpath=/opt/alt/libxml2/usr/lib64,-rpath=/opt/alt/pcre/usr/lib64,-rpath=/opt/alt/t1lib/usr/lib64,-rpath=/opt/alt/freetds/usr/lib64,-rpath=/opt/alt/sqlite/usr/lib64,-rpath=/opt/alt/libicu/usr/lib64' All PHP 7.x (with bugz) ... build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' Any clues? Previous Comments: ------------------------------------------------------------------------ [2018-06-06 19:22:19] pandenitz at mail dot ru Can it be related to outdated libxml2 lib? These properties are part of DOM level 3 ------------------------------------------------------------------------ [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 ] { ------------------------------------------------------------------------ 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 (#215525) next »