From a8230e38566547ed14c101bbf026904acdf0d458 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 8 Aug 2005 07:23:27 +0000 Subject: [PATCH] - fix php4 build --- missing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/missing.c b/missing.c index aefbdb9..d60d55d 100644 --- a/missing.c +++ b/missing.c @@ -71,6 +71,8 @@ void zend_update_property_bool(zend_class_entry *scope, zval *object, char *name #endif +#if (PHP_MAJOR_VERSION >= 5) + static inline zval *new_class_constant_zval(zend_class_entry *ce) { zval *z; @@ -124,7 +126,7 @@ int zend_declare_class_constant_stringl(zend_class_entry *ce, char *name, size_t Z_STRVAL_P(constant)[value_length] = '\0'; return zend_declare_class_constant(ce, name, name_length, constant TSRMLS_CC); } - +#endif /* * Local variables: -- 2.30.2