PHP: validateForRead was not called in non-oop mode, fixed