[php-src] Issue #12892: documentElement not being created on Power9

From: Date: Thu, 07 Dec 2023 19:36:45 +0000
Subject: [php-src] Issue #12892: documentElement not being created on Power9
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246004@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12892 Author: alecpl ### Description The following code that worked some time ago, stopped working. We tried PHP 8.0.27 and 8.0.30: ```php <?php $nameSpace = "uri:FolderHierarchy"; $tag = "FolderSync"; $imp = new DOMImplementation(); $dtd = $imp->createDocumentType('AirSync', "-//AIRSYNC//DTD AirSync//EN", "http://www.microsoft.com/"); $dom = $imp->createDocument($nameSpace, $tag, $dtd); // $dom->createElementNS($nameSpace, $tag); // this does not help echo ($dom->documentElement ? 'GOOD' : 'BAD'); ``` Resulted in this output: ``` BAD ``` But I expected this output instead: ``` GOOD ``` Source : php-8.0.27-1.el9_1.src.rpm From repo : rhel-9-for-ppc64le-appstream-rpms Linux 5.14.0-284.18.1.el9_2.ppc64le #1 SMP Wed May 31 10:42:31 EDT 2023 ppc64le ppc64le ppc64le GNU/Linux Such code works as expected on PHP 8.0.30 (and more recent versions) x86. ### PHP Version 8.0.30 ### Operating System RHEL/Alma 9

« previous php.bugs (#246004) next »