bugfix toenable errors even in php 5.2.x