I am having problem with a php script running from Cron (executed by php).
Script runs fine but crashes after using 512 mb, I can not understand why because I have set the script to use much more, and the server can handle it for sure.
The executed php file is located before the web folder (can this cause the problem?).
Php.ini is set to handle 8192M
What am I doing wrong here (this is declared on top of the executed php file)?
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
ini_set('max_execution_time', 0);
ini_set('memory_limit', '8191M');
//ini_set('memory_limit', -1);
ob_implicit_flush(true);