On Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}', I've found the solution.
It has to do with the fact that PHP 4 doesn't like private and public statements. So, I've replaced private and public with var for the variable declaration and removed private and public at the function declarations.