You should use PHP 4.3.x (latest is 4.3.8 I think) with eZ publish. PHP 5 isn't supported, as mentioned by the various install documents like: http://ez.no/ez_publish/documentation/installation/normal_installation/requirements_for_doing_a_normal_installation