Bug #70558 [NEW]: "Couldn't fetch" error in DOMDocument::registerNodeClass()
| From: | sebastian@php.net | Date: | Wed, 23 Sep 2015 09:39:24 +0000 |
| Subject: | Bug #70558 [NEW]: "Couldn't fetch" error in DOMDocument::registerNodeClass() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-196179@lists.php.net to get a copy of this message | ||
From: sebastian
Operating system: Irrelevant
PHP version: 7.0Git-2015-09-23 (Git)
Package: DOM XML related
Bug Type: Bug
Bug description:"Couldn't fetch" error in DOMDocument::registerNodeClass()
Description:
------------
I am seeing weird "DOMDocument::registerNodeClass(): Couldn't fetch
TheSeer\fDOM\fDOMDocument" errors when running the fDOMDocument test
suite with PHP 7 (current PHP-7.0 branch, problem also present on
master).
The tests in question work fine with PHP 5.6. This is a regression from
PHP 5 to PHP 7.
At this time I do not have a minimal, self-contained, reproducing test
script but I will try to provide one.
Test script:
---------------
$ git clone https://github.com/theseer/fDOMDocument.git
$ cd fDOMDocument
$ wget https://phar.phpunit.de/phpunit.phar
$ php phpunit.phar --no-coverage
Expected result:
----------------
PHPUnit 4.8.9 by Sebastian Bergmann and contributors.
Runtime: PHP 5.6.13 with Xdebug 2.3.3
Configuration: /home/sb/fDOMDocument/phpunit.xml.dist
............................................................... 63 /
120 ( 52%)
.........................................................
Time: 153 ms, Memory: 15.25Mb
OK (120 tests, 168 assertions)
Actual result:
--------------
PHPUnit 4.8.9 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.0-dev
Configuration: /home/sb/fDOMDocument/phpunit.xml.dist
............................................................... 63 /
120 ( 52%)
................EEE......................................
Time: 420 ms, Memory: 10.00Mb
There were 3 errors:
1)
TheSeer\fDOM\Tests\fDOMDocumentTest::testCloningTriggersCreationOfNewDOMXPathInstance
DOMDocument::registerNodeClass(): Couldn't fetch
TheSeer\fDOM\fDOMDocument
/home/sb/fDOMDocument/src/fDOMDocument.php:605
/home/sb/fDOMDocument/src/fDOMDocument.php:99
/home/sb/fDOMDocument/tests/fDOMDocument.test.php:278
2)
TheSeer\fDOM\Tests\fDOMDocumentTest::testRegisteredNamespacePrefixesGetCopiedToClonedDocument
DOMDocument::registerNodeClass(): Couldn't fetch
TheSeer\fDOM\fDOMDocument
/home/sb/fDOMDocument/src/fDOMDocument.php:605
/home/sb/fDOMDocument/src/fDOMDocument.php:99
/home/sb/fDOMDocument/tests/fDOMDocument.test.php:290
3)
TheSeer\fDOM\Tests\fDOMDocumentTest::testQueryReturnsNodeFromClonedDocument
DOMDocument::registerNodeClass(): Couldn't fetch
TheSeer\fDOM\fDOMDocument
/home/sb/fDOMDocument/src/fDOMDocument.php:605
/home/sb/fDOMDocument/src/fDOMDocument.php:99
/home/sb/fDOMDocument/tests/fDOMDocument.test.php:301
FAILURES!
Tests: 120, Assertions: 165, Errors: 3.
--
Edit bug report at https://bugs.php.net/bug.php?id=70558&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70558&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70558&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70558&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70558&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70558&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70558&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70558&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70558&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70558&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70558&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70558&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70558&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70558&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70558&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70558&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70558&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70558&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70558&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70558&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70558&r=mysqlcfg