mirror of
https://github.com/FriendsOfSymfony/FOSRest.git
synced 2026-03-24 00:32:21 +01:00
Dealing with huge XML file (more than 2 Mo) #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fma-emakinafr on GitHub (Jan 10, 2013).
I have a problem with files bigger than 2 Mo, nothing is decoded.
I found where is the problem but i can't solve it.
In the file :
https://github.com/FriendsOfSymfony/FOSRest/blob/master/Decoder/XmlDecoder.php (line 28)
line 28 : $xml = @simplexml_load_string($data);
If the file is greater than 2 Mo, the simplexml_load_string will return false.
Is there a way to bypass this ?
@fma-emakinafr commented on GitHub (Jan 10, 2013):
My bad, this was not a problem with the filesize but with an element who was at the exact 2 Mo limit of my file :/