#783 syntax error in generated php proxy class

closed-fixed
kruland
php (58)
5
2006-12-14
2006-12-12
David Walluck
No

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\);

Discussion

  • Olly Betts
    Olly Betts
    2006-12-14

    • status: open --> closed-fixed
     
  • Olly Betts
    Olly Betts
    2006-12-14

    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.