add minor changes to ensure compatibility with PHP4

More...