The constructor of the MigrationBase abstract class assumes that ini_get('memory_limit') will always return a value that ends in either g, m, or k. My ISP sets a pure numeric value, which causes the constructor to throw an exception for "Invalid PHP memory_limit".

I would suggest that you first test to see if the value returned from ini_get('memory_limit') is a number. Then, only if it is not a number, look for the g, m, or k values.

I'll attach a patch that does this in a reply, once an issue number is assigned.

CommentFileSizeAuthor
#1 numeric_memory_limit-1447368-1.patch1.06 KBDavid4514

Comments

David4514’s picture

StatusFileSize
new1.06 KB

The attached patch first tests for a numeric value in $limit.

mikeryan’s picture

Status: Active » Fixed

Committed to D6 and D7, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.