php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61868 ext\dom\tests\DOMDocument_validate_on_parse_variation.phpt fails
Submitted: 2012-04-27 16:41 UTC Modified: 2013-06-27 06:54 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: DOM XML related
PHP Version: 5.3.11 OS: windows
Private report: No CVE-ID: None
 [2012-04-27 16:41 UTC] ab@php.net
Description:
------------
Test diff:

001+ Warning: chdir(): No such file or directory (errno 2) in C:\snaps\php-test-pack-5.4-nts-windows-vc9-x86-rff7e1ff\ext\dom\tests\DOMDocument_validate_on_parse_variation.php on line 5
002+
003+ Warning: file_get_contents(note.xml): failed to open stream: No such file or directory in C:\snaps\php-test-pack-5.4-nts-windows-vc9-x86-rff7e1ff\ext\dom\tests\DOMDocument_validate_on_parse_variation.php on line 6
003- validateOnParse set to TRUE:
005+
006+ Warning: DOMDocument::loadXML(): Empty string supplied as input in C:\snaps\php-test-pack-5.4-nts-windows-vc9-x86-rff7e1ff\ext\dom\tests\DOMDocument_validate_on_parse_variation.php on line 13
005- Warning: DOMDocument::loadXML(): No declaration for element NYPHP in Entity, line: %d in %s on line %d
009+ Fatal error: Call to a member function appendChild() on a non-object in C:\snaps\php-test-pack-5.4-nts-windows-vc9-x86-rff7e1ff\ext\dom\tests\DOMDocument_validate_on_parse_variation.php on line 18
006-
007- Warning: DOMDocument::loadXML(): Element from was declared #PCDATA but contains non text nodes in Entity, line: %d in %s on line %d
008- Error Report Above

The test tries to chdir(__DIR__ . "/../examples") and some files in there, but that's not present in the test pack.

Expected result:
----------------
test pass

Actual result:
--------------
test fail

Patches

dom.diff (last revision 2012-04-27 16:43 UTC by ab@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-27 16:43 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: dom.diff
Revision:   1335544986
URL:        https://bugs.php.net/patch-display.php?bug=61868&patch=dom.diff&revision=1335544986
 [2013-06-26 18:18 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: ab
 [2013-06-27 06:54 UTC] ab@php.net
-Status: Assigned +Status: Closed
 [2013-06-27 06:54 UTC] ab@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 14:01:31 2024 UTC