X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_url.c;h=24a13ff6df31818563e9217ee58532f70cbf11a4;hp=71ca6e958a52301274b4a6cc9c090d696c0fae72;hb=f94c237788db6949e7ea63f360ad45412de50267;hpb=68359d47e9dd6680697835ba5643d871d759b069 diff --git a/src/php_http_url.c b/src/php_http_url.c index 71ca6e9..24a13ff 100644 --- a/src/php_http_url.c +++ b/src/php_http_url.c @@ -2035,7 +2035,7 @@ PHP_METHOD(HttpUrl, toArray) } static zend_function_entry php_http_url_methods[] = { - PHP_ME(HttpUrl, __construct, ai_HttpUrl___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_ME(HttpUrl, __construct, ai_HttpUrl___construct, ZEND_ACC_PUBLIC) PHP_ME(HttpUrl, mod, ai_HttpUrl_mod, ZEND_ACC_PUBLIC) PHP_ME(HttpUrl, toString, ai_HttpUrl_toString, ZEND_ACC_PUBLIC) ZEND_MALIAS(HttpUrl, __toString, toString, ai_HttpUrl_toString, ZEND_ACC_PUBLIC) @@ -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; }