Php in free (): error: the piece is already free

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'); 
+4
source share
1 answer

This is an internal php error. Error file in the imap module (if you want it to be fixed quickly, enable SSCCE ).

Also note that this is a memory corruption issue that is usually caused (long) before it is noticed. Therefore, the imap_search function is probably not an error; the imap_* function that you used before it becomes a good candidate.

+1
source

All Articles