Skip to content

Conversation

camporter
Copy link
Contributor

Default to letting the XML parser handle documents larger than 10 MB, which is a restriction set by libxml.

Addresses https://bugs.php.net/bug.php?id=65604

@yohgaki
Copy link
Contributor

yohgaki commented Sep 11, 2015

The restriction is for DoS protection. I think this options should be a setting. Perhaps, new INI for this?

@krakjoe
Copy link
Member

krakjoe commented Jan 1, 2017

It cannot be the default as @yohgaki has pointed out.

Since we don't like adding configuration options, I'd prefer if you could set this from PHP somehow.

@camporter please review and rework the patch :)

@staabm
Copy link
Contributor

staabm commented Jan 1, 2017

Not sure which apis use this method overall, but I would e.g. add a Flag/Option in http://php.net/manual/en/xmlreader.xml.php

@krakjoe
Copy link
Member

krakjoe commented Feb 22, 2017

Having waited more than a month for feedback, and having received nothing, I'm closing this PR as it would appear abandoned.

@krakjoe krakjoe closed this Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants