Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default for parseHuge to false to avoid OOM on xml expansion #11094

Merged
merged 1 commit into from
Aug 25, 2017

Conversation

ceeram
Copy link
Contributor

@ceeram ceeram commented Aug 24, 2017

The option was added to allow for enabling (#10034) parseHuge as the docblock also decribes, having this enabled though by default is not recommended.

@ceeram ceeram self-assigned this Aug 24, 2017
@markstory markstory added this to the 3.5.1 milestone Aug 25, 2017
@markstory markstory self-assigned this Aug 25, 2017
@codecov-io
Copy link

Codecov Report

Merging #11094 into master will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #11094      +/-   ##
============================================
+ Coverage     94.87%   94.92%   +0.05%     
- Complexity    12838    13059     +221     
============================================
  Files           437      437              
  Lines         32732    33060     +328     
============================================
+ Hits          31053    31381     +328     
  Misses         1679     1679
Impacted Files Coverage Δ Complexity Δ
src/Utility/Xml.php 100% <ø> (ø) 73 <0> (ø) ⬇️
src/Http/ActionDispatcher.php 100% <0%> (ø) 21% <0%> (+2%) ⬆️
src/Controller/Controller.php 99.53% <0%> (+0.07%) 102% <0%> (+25%) ⬆️
src/Http/ServerRequest.php 99.65% <0%> (+0.16%) 432% <0%> (+194%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e64e0a9...e9fdee3. Read the comment docs.

@markstory markstory merged commit 2222034 into master Aug 25, 2017
@markstory markstory deleted the xml-expansion branch August 25, 2017 13:29
@inoas
Copy link
Contributor

inoas commented Aug 28, 2017

Doesn't look BC to me, is it?

@ceeram
Copy link
Contributor Author

ceeram commented Aug 28, 2017 via email

@ravage84
Copy link
Member

@markstory This should be shown very prominently in the release notes, then. So pepole don't trip over it.

@ceeram
Copy link
Contributor Author

ceeram commented Aug 29, 2017

I doubt if many users will trip. First off, Most users don't use Xml, those that do use it would only need parseHuge in edge cases. The docs already stated to set parseHuge option to true, even though the code itself didnt need it, because of the default. So most likely for those edge cases people are passing the parseHuge option as true already.

@ravage84
Copy link
Member

@ceeram thanks for the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants