Баг в eAccelerator с open_basedir

Вчера настраивая eAccelerator на VPS столкнулся с проблемой связанной с open_basedir.

В лог записывались следующие ошибки:

PHP Warning: require(): open_basedir restriction in effect. File() is not within the allowed path(s);

PHP Warning: Unknown: open_basedir restriction in effect. File() is not within the allowed path(s);

Версия eAccelerator – 0.9.6.1

Решает этот баг исправлением одной строчки кода в исходнике eAccelerator – eaccelerator.c, строка 867:

if (php_check_open_basedir(realfilename TSRMLS_CC)) {

на

if (php_check_open_basedir(p->realfilename TSRMLS_CC)) {

После всего заново компилируем eAccelerator, переустанавливаем.

Удачи! ;-)