X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_header_parser.c;h=2526835f90cf929cd096515ccdb050305112e8b6;hp=f560a8561a5917f241500b1c53a647f28e60a66e;hb=refs%2Fheads%2Fv2.1.x;hpb=d739650057f4ca2fc67f1ae2bfd1d24c3f2f9e7b diff --git a/php_http_header_parser.c b/php_http_header_parser.c index f560a85..2526835 100644 --- a/php_http_header_parser.c +++ b/php_http_header_parser.c @@ -59,10 +59,8 @@ php_http_header_parser_state_t php_http_header_parser_state_push(php_http_header php_http_header_parser_state_t php_http_header_parser_state_is(php_http_header_parser_t *parser) { - php_http_header_parser_state_t state; - if (parser->stack.top) { - return (php_http_header_parser_state_t) zend_ptr_stack_top(&parser->stack); + return (php_http_header_parser_state_t) parser->stack.elements[parser->stack.top - 1]; } return PHP_HTTP_HEADER_PARSER_STATE_START;