X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_misc.c;h=f52c9d6348b3b7839cf90105e1805baaba01adcf;hp=b345eff6e20800e290a9d597101ffb760928c072;hb=a65a722cb32032edba03073b4f7cc0fe744a04dc;hpb=0a0f485c70d8571a954cb5fccc53e104540b9a30 diff --git a/php_http_misc.c b/php_http_misc.c index b345eff..f52c9d6 100644 --- a/php_http_misc.c +++ b/php_http_misc.c @@ -210,12 +210,10 @@ void php_http_error(long type TSRMLS_DC, long code, const char *format, ...) switch (scope_error_handling(type TSRMLS_CC)) { case EH_THROW: { char *message; - zend_class_entry *ce; + zend_class_entry *ce = php_http_exception_class_entry; if (0&& EG(exception_class) && instanceof_function(EG(exception_class), php_http_exception_class_entry)) { ce = EG(exception_class); - } else { - ce = php_http_exception_get_for_code(code); } vspprintf(&message, 0, format, args);