X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_url.c;h=32bae585790a2d866f7d2ccbbddce5910d626370;hb=880c496e720bc7e8ac5368cd02bd82ce6e3d72f3;hp=2055df7a33890724162dd292e4f085f06e071ee6;hpb=d5d03014cff8c8ca80ee7866af100d3ceae1bd8f;p=m6w6%2Fext-http diff --git a/src/php_http_url.c b/src/php_http_url.c index 2055df7..32bae58 100644 --- a/src/php_http_url.c +++ b/src/php_http_url.c @@ -1021,7 +1021,7 @@ static ZEND_RESULT_CODE parse_uidn_2003(struct parse_state *state, size_t prev_l # endif efree(uhost_str); - if (error > U_ZERO_ERROR) { + if (rc > U_ZERO_ERROR) { goto error; } @@ -2088,14 +2088,14 @@ PHP_MINIT_FUNCTION(http_url) #endif zend_declare_class_constant_long(php_http_url_class_entry, ZEND_STRL("PARSE_TOPCT"), PHP_HTTP_URL_PARSE_TOPCT); - INIT_NS_CLASS_ENTRY(ce, "http\\Env", "Url", php_http_url_methods); - php_http_env_url_class_entry = zend_register_internal_class_ex(&ce, php_http_url_class_entry); - zend_declare_class_constant_long(php_http_url_class_entry, ZEND_STRL("IGNORE_ERRORS"), PHP_HTTP_URL_IGNORE_ERRORS); zend_declare_class_constant_long(php_http_url_class_entry, ZEND_STRL("SILENT_ERRORS"), PHP_HTTP_URL_SILENT_ERRORS); zend_declare_class_constant_long(php_http_url_class_entry, ZEND_STRL("STDFLAGS"), PHP_HTTP_URL_STDFLAGS); + INIT_NS_CLASS_ENTRY(ce, "http\\Env", "Url", NULL); + php_http_env_url_class_entry = zend_register_internal_class_ex(&ce, php_http_url_class_entry); + return SUCCESS; } @@ -2108,4 +2108,3 @@ PHP_MINIT_FUNCTION(http_url) * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 */ -