Debian compat=7 and use YAZ 5. PHPYAZ-21
[phpyaz-moved-to-github.git] / php_yaz.c
index 3dfdd5d..0964cbd 100644 (file)
--- a/php_yaz.c
+++ b/php_yaz.c
@@ -49,7 +49,7 @@
 #include <yaz/zoom.h>
 
 #ifndef ODR_INT_PRINTF
-#define ODR_INT_PRINTF %d
+#define ODR_INT_PRINTF "%d"
 #endif
 
 #define MAX_ASSOC 200
@@ -594,6 +594,9 @@ PHP_FUNCTION(yaz_wait)
                if (event_bool && *event_bool)
                        event_mode = 1;
        }
+       else if (ZEND_NUM_ARGS() > 1) {
+               WRONG_PARAM_COUNT;
+       }
 #ifdef ZTS
        tsrm_mutex_lock(yaz_mutex);
 #endif