Bug #73053 [Sus]: XML reader with setSchema now fails under 5.6.25

From: Date: Sat, 10 Sep 2016 22:24:07 +0000
Subject: Bug #73053 [Sus]: XML reader with setSchema now fails under 5.6.25
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203952@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73053&edit=1

 ID:                 73053
 Updated by:         cmb@php.net
 Reported by:        bruceleister at gmail dot com
 Summary:            XML reader with setSchema now fails under 5.6.25
 Status:             Suspended
 Type:               Bug
 Package:            XML Reader
 Operating System:   Windows Server 2012R2 Standard
 PHP Version:        5.6.25
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Added a test case: <http://git.php.net/?p=php-src.git;a=commit;h=326a4e38>.


Previous Comments:
------------------------------------------------------------------------
[2016-09-10 19:38:50] cmb@php.net

I have submitted PR <https://github.com/winlibs/libxml2/pull/2>.

I'm suspending this ticket until the issue will be fixed with a
new libxml2 release.

------------------------------------------------------------------------
[2016-09-10 15:19:46] cmb@php.net

I can reproduce the issue as of PHP 5.6.23. The culprit is libxml2
2.9.4, which introduced a severe regression with regard to XSD
schema validation[1].

As libxml2 2.9.4 fixed several security issues, I don't think it
would be good to switch back to 2.9.3 for now, but perhaps a
bugfix in winlibs/libxml2[2] would be appropriate, so that PHP
5.6.26+ could be shipped with working XSD validation even if no
new libxml2 version would be released in the meantime).

[1] <https://bugzilla.gnome.org/show_bug.cgi?id=766834>
[2] <https://github.com/winlibs/libxml2>

------------------------------------------------------------------------
[2016-09-10 00:53:19] cmb@php.net

Thanks! I'll have a look at it ASAP.

------------------------------------------------------------------------
[2016-09-10 00:39:04] bruceleister at gmail dot com

Thanks for looking at this,

I saw the point increase of libXMl2, but I'm running on Windows pre-build binaries, so can not
change the build.

I have sent sample files via email from my work's email

------------------------------------------------------------------------
[2016-09-09 18:20:57] cmb@php.net

There haven't been any relevant changes to XMLReader for years (at
least in the PHP-5.6 branch)[1]. The behavioral change might
simply be caused by an updated libxml.

Anyhow, it would be helpful if you could make sample XML and XSD
files available.

[1] <https://github.com/php/php-src/commits/PHP-5.6/ext/xmlreader>

------------------------------------------------------------------------


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=73053


--
Edit this bug report at https://bugs.php.net/bug.php?id=73053&edit=1


Thread (9 messages)

« previous php.bugs (#203952) next »