X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fmodule.c;h=7332474fba8c2cf75c5c21a7dc83784d8f7f1523;hp=08db8149c8db7ae22a65346237b1fe779dc8c453;hb=d2e0af1718294569a84c3c15616c74e4d55ea579;hpb=a0f437f26cd0f121ee911a55327a68a3544bf15f diff --git a/src/module.c b/src/module.c index 08db814..7332474 100644 --- a/src/module.c +++ b/src/module.c @@ -23,7 +23,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ -#include "php_psi_stdinc.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#else +# include "php_config.h" +#endif #include "php.h" #include "php_ini.h" @@ -166,7 +170,7 @@ static PHP_FUNCTION(psi_dump) { php_stream *s; zval *r = NULL; - struct psi_dump dump = {.fun = php_stream_printf}; + struct psi_dump dump = {.fun = (psi_dump_cb) php_stream_printf}; if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "|r!", &r)) { return;