Comment 7 for bug 1015964

Revision history for this message
Rodolfo Ochoa (rodolfo-ochoa) wrote : Re: PHP5 bindings build failure

This is a SWIG error, and this error appears only on some compilers, here is the reported error:
http://sourceforge.net/tracker/index.php?func=detail&aid=3479190&group_id=1645&atid=101645
here is another complain from Graphviz (don't use Graphviz fix)
http://www.graphviz.org/mantisbt/view.php?id=2177

a possible workaround over this bug is to cast type_name, in line 953, you should have a call like this:
return SWIG_ZTS_ConvertResourceData(p, type_name, ty TSRMLS_CC);

change to:
return SWIG_ZTS_ConvertResourceData(p, const_cast<const char*>(type_name), ty TSRMLS_CC);