From 487009cea79ba813c5da44572f947939949ad3e2 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 17 Oct 2013 13:38:43 +0200 Subject: [PATCH] Check parameter count for yaz_wai PHPYAZ-22 --- php_yaz.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php_yaz.c b/php_yaz.c index 1ba1217..0964cbd 100644 --- a/php_yaz.c +++ b/php_yaz.c @@ -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 -- 1.7.10.4