Quantcast
Channel: 500 – WordPress.org Forums
Viewing all articles
Browse latest Browse all 2443

dwinden on "[Plugin: iThemes Security (formerly Better WP Security)] Database backup error, cause and solution"

$
0
0

@vladax
@Solution #2: Fix the memory overflow

I see what you are trying to do.
Prevent all the table data from being loaded into $result at once.

However it seems to me you are shifting the same issue to $return ...

You start with 1000 rows, then add another 1000 rows etc.
At some point, let's say after 7000 rows added to $return, adding the next 1000 rows to $return may lead to the same error message ...

But I could be wrong. If so please explain it to me.
Why could $return variable store more data in memory than $result variable ?

Perhaps because $result is an array variable, while $return is not ...

dwinden


Viewing all articles
Browse latest Browse all 2443

Trending Articles