Martialdelastic / google-api-adwords-php

Automatically exported from code.google.com/p/google-api-adwords-php
Apache License 2.0
0 stars 0 forks source link

Downloading an XML report runs out of memory #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you try and download a large XML report using the ReportUtils:: 
DownloadReport method PHP will error out with a memory exceeded error in client 
library version 2.4.1 (haven't tried in other versions.

This is due to the method attempting to read in the entire report in order to 
determine whether or not an error has occurred (line 119) because the XML is 
downloaded as one line of text. 

Original issue reported on code.google.com by david.no...@jellyfish.co.uk on 19 Jan 2011 at 4:07

GoogleCodeExporter commented 8 years ago
Changing line 119 to the following should fix the problem:

$result = fgets($file, 1024);

Can you confirm if this works?

Original comment by api.ekol...@gmail.com on 19 Jan 2011 at 5:07

GoogleCodeExporter commented 8 years ago
Fixed in r121.

Original comment by api.ekol...@gmail.com on 26 Jan 2011 at 6:13