fix "comparing size_t to <0" warning
eliminate usage of deprecated zend_get_parameters_ex