From: Michael Wallner Date: Tue, 2 Aug 2005 08:25:38 +0000 (+0000) Subject: - fix PHP4 build (has no only_exceptions INI setting X-Git-Tag: RELEASE_0_12_0~50 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=1a9d067e67192694abbdbc828c66ff9b3298aa16 - fix PHP4 build (has no only_exceptions INI setting --- diff --git a/php_http_std_defs.h b/php_http_std_defs.h index 87bd58e..dc20aa1 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -333,9 +333,15 @@ typedef int STATUS; # define E_THROW 0 #endif #define HE_THROW E_THROW -#define HE_NOTICE (HTTP_G(only_exceptions) ? E_THROW : E_NOTICE) -#define HE_WARNING (HTTP_G(only_exceptions) ? E_THROW : E_WARNING) -#define HE_ERROR (HTTP_G(only_exceptions) ? E_THROW : E_ERROR) +#ifdef ZEND_ENGINE_2 +# define HE_NOTICE (HTTP_G(only_exceptions) ? E_THROW : E_NOTICE) +# define HE_WARNING (HTTP_G(only_exceptions) ? E_THROW : E_WARNING) +# define HE_ERROR (HTTP_G(only_exceptions) ? E_THROW : E_ERROR) +#else +# define HE_NOTICE E_NOTICE +# define HE_WARNING E_WARNING +# define HE_ERROR E_ERROR +#endif #define HTTP_E_RUNTIME 1L #define HTTP_E_INVALID_PARAM 2L