- Countable also requires PHP-5.1+
[m6w6/ext-http] / http_message_object.c
index c9505f6cb0f5a348bbc094eec378e09ad24f85b2..e69010c9b694407602d524bf7ab39aff51af5e2c 100644 (file)
@@ -31,9 +31,9 @@
 
 #ifndef WONKY
 #      include "zend_interfaces.h"
-#endif
-#ifdef HAVE_SPL
-#      include "ext/spl/spl_array.h"
+#      if defined(HAVE_SPL)
+#              include "ext/spl/spl_array.h"
+#      endif
 #endif
 
 ZEND_EXTERN_MODULE_GLOBALS(http);
@@ -158,10 +158,6 @@ PHP_MINIT_FUNCTION(http_message_object)
 #      else
        zend_class_implements(http_message_object_ce TSRMLS_CC, 1, zend_ce_serializable);
 #      endif
-#else
-#      ifdef HAVE_SPL
-       zend_class_implements(http_message_object_ce TSRMLS_CC, 1, spl_ce_Countable);
-#      endif
 #endif
 
        HTTP_LONG_CONSTANT("HTTP_MSG_NONE", HTTP_MSG_NONE);