]> granicus.if.org Git - php/commit
Fix compile error using zend_parse_parameters_throw()
authorTyson Andre <tysonandre775@hotmail.com>
Fri, 8 Nov 2019 14:58:05 +0000 (09:58 -0500)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 8 Nov 2019 15:29:10 +0000 (16:29 +0100)
commit70b4bc963c559aba8d036a47804c8b21ca41a668
tree2885885347769ae15c0b0f09a15e9adf7066f710
parent1cb69c44d716cfea98a9566c80dd21a58732bbf8
Fix compile error using zend_parse_parameters_throw()

Fixes a bug introduced in 4008704f62

The trailing comma is followed by `)` when the varargs list
is empty in the macro, which is a syntax error in C

This fixes compilation of code such as the following

    PHP_FUNCTION(get_metadata) {
      if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "") == FAILURE) {
        return;
      }

Closes GH-4896.
Zend/zend_API.h