From 1a9d067e67192694abbdbc828c66ff9b3298aa16 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 2 Aug 2005 08:25:38 +0000 Subject: [PATCH] - fix PHP4 build (has no only_exceptions INI setting --- php_http_std_defs.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 -- 2.30.2