Intermittent PHP error: Undefined function <core function>

Posted by Daniel on Server Fault See other posts from Server Fault or by Daniel
Published on 2010-03-26T18:29:01Z Indexed on 2010/03/26 18:33 UTC
Read the original article Hit count: 498

Filed under:
|

In the last week I've been coming across an incredibly annoying error on one of Slicehost slices. It appears that every now and then PHP will fail with a fatal error, saying a certain function is undefined. The function changes, but is always a core PHP function e.g. defined(), version_compare(), etc. This problem has occurred while using several different PHP applications - PHPMyAdmin, my own custom built apps, etc, leading me to believe that the problem is not specific to the running code.

Here are some details: - Debian Lenny - Apache 2.2.9 - PHP 5.2.6-1+lenny4 with Suhosin-Patch (running eAccelerator 0.9.6)

Apache and PHP are installed from Debian packages. Error logs show nothing out of the ordinary.

I thought memory might be an issue, but free -m reports upwards of 100MB free almost all the time. Another thing I'm trying to investigate is if the problem might be related to eAccelerator, but testing this theory out is incredibly hard because the issue doesn't appear very often and I've been using eAccelerator for months on this install without any problems up until now.

Has anyone ever come across anything like this? Why would PHP report undefined core functions?

© Server Fault or respective owner

Related posts about php

Related posts about apache