There appears to be a syntax error in the auto-generated php code. On line 2328 of php4.cxx, there is a missing closing parenthesis for the if staement:
change:
Printf\(s\_phpclasses, "\t\tif \(function\_exists\($func\) call\_user\_func\($func,$this->%s,$value\);\n", SWIG\_PTR\);
to:
Printf\(s\_phpclasses, "\t\tif \(function\_exists\($func\)\) call\_user\_func\($func,$this->%s,$value\);\n", SWIG\_PTR\);
Logged In: YES
user_id=14972
Originator: NO
Thanks for your report. I've commit a fix for this (and the same issue at line 2349) to the SVN repository.