- fix php4 build
authorMichael Wallner <mike@php.net>
Mon, 8 Aug 2005 07:23:27 +0000 (07:23 +0000)
committerMichael Wallner <mike@php.net>
Mon, 8 Aug 2005 07:23:27 +0000 (07:23 +0000)
missing.c

index aefbdb9f08674d59571b7600e9015f6cb17baff8..d60d55d21110b422c1214204e47c41d8fe324727 100644 (file)
--- 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: