I developed a script that uses php imap_search , and when it comes to the stage of searching for emails using the imap_search() function, I get an error
php in free (): error: chunk is already free
Interrupt Trap: 6 (core discarded)
This script requires running through cron, but when it does it above the error and seems to abort the script, if I run from the browser, it has this error inside the error logs, but the script is still running in full.
Below is the line in which it does not work:
$this->mailbox_emails = imap_search($this->mailbox_stream,'ALL');
source share