permit php to use as much memory as possible as this script is made to be run once offline, also increase the number of character read by line, as some lines are quite long
corrected a stupid segfault, if item is null we can't do item->id to print an error message ....