free() 中的 php:错误:块已经空闲
我开发了一个使用 php 的 imap_search
的脚本,当它进入使用函数 imap_search()
查找电子邮件的阶段时,我收到一个错误
php in free(): 错误:块已经存在 免费
中止陷阱:6(核心转储)
此脚本需要通过 cron 运行,但是当它执行时,它会执行上述错误并且似乎中止脚本,如果我从浏览器运行,错误日志中会出现此错误,但仍然存在完整运行脚本。
下面是它失败的线路:
$this->mailbox_emails = imap_search($this->mailbox_stream,'ALL');
I have developed a script that uses php's imap_search
and when it gets to the stage of finding the emails with the function imap_search()
i get a error being produced
php in free(): error: chunk is already
free
Abort trap: 6 (core dumped)
This script requires to be run through a cron, But when it does it does that above error and seems to abort the script, If i run from the browser it has this error inside the error logs but still runs the script in full.
Below is the line it is failing on:
$this->mailbox_emails = imap_search($this->mailbox_stream,'ALL');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个 php 内部错误。 在 imap 模块上提交错误(如果您希望快速修复它,请包含 SSCCE)。
另请注意,这是一个内存损坏问题,通常是在注意到之前(很久)就引起的。因此,
imap_search
函数可能不是有问题的函数;您之前使用过的imap_*
函数是一个不错的候选者。This is an internal php error. File a bug on the imap module (if you want it fixed fast, include an SSCCE).
Also note that this is a memory corruption issue, which is usually caused (long) before it is noticed. Therefore, the
imap_search
function is probably not the buggy one; theimap_*
function you used just before it is a good candidate.