add_next_index_stringl(&array, method, method_len, 0);
method_len = spprintf(&http_method, 0, "HTTP_METH_%s", method);
zend_register_long_constant(http_method, method_len + 1, meth_num, CONST_CS, http_module_number TSRMLS_CC);
efree(http_method);
add_next_index_stringl(&array, method, method_len, 0);
method_len = spprintf(&http_method, 0, "HTTP_METH_%s", method);
zend_register_long_constant(http_method, method_len + 1, meth_num, CONST_CS, http_module_number TSRMLS_CC);
efree(http_method);
method_len = spprintf(&http_method, 0, "METH_%s", method);
zend_declare_class_constant_long(http_request_object_ce, http_method, method_len, meth_num TSRMLS_CC);
efree(http_method);
method_len = spprintf(&http_method, 0, "METH_%s", method);
zend_declare_class_constant_long(http_request_object_ce, http_method, method_len, meth_num TSRMLS_CC);
efree(http_method);
method_len = spprintf(&http_method, 0, "METH_%s", Z_STRVAL_PP(zmethod));
if ((SUCCESS != zend_hash_del(&http_request_object_ce->constants_table, http_method, method_len + 1))) {
http_error_ex(HE_NOTICE, HTTP_E_REQUEST_METHOD, "Could not unregister request method: HttpRequest::%s", http_method);
method_len = spprintf(&http_method, 0, "METH_%s", Z_STRVAL_PP(zmethod));
if ((SUCCESS != zend_hash_del(&http_request_object_ce->constants_table, http_method, method_len + 1))) {
http_error_ex(HE_NOTICE, HTTP_E_REQUEST_METHOD, "Could not unregister request method: HttpRequest::%s", http_method);