#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);
# 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);
#include "php_http_exception_object.h"
#include "zend_interfaces.h"
-#ifdef HAVE_SPL
+#if defined(HAVE_SPL) && !defined(WONKY)
# include "ext/spl/spl_array.h"
# include "ext/spl/spl_iterators.h"
#endif
PHP_MINIT_FUNCTION(http_requestpool_object)
{
HTTP_REGISTER_CLASS_EX(HttpRequestPool, http_requestpool_object, NULL, 0);
-#ifdef HAVE_SPL
+#if defined(HAVE_SPL) && !defined(WONKY)
zend_class_implements(http_requestpool_object_ce TSRMLS_CC, 2, spl_ce_Countable, spl_ce_Iterator);
#else
zend_class_implements(http_requestpool_object_ce TSRMLS_CC, 1, zend_ce_iterator);
</stability>
<license>BSD, revised</license>
<notes><![CDATA[
-+ Classes HttpMessage and HttpRequestPool implements Countable if SPL is available
-+ Class HttpMessage implements Serializable if PHP version is greater or equal to 5.1
++ Classes HttpMessage and HttpRequestPool implement Countable if PHP >= 5.1 with SPL is available
++ Class HttpMessage implements Serializable if PHP >= 5.1 is available
]]></notes>
<contents>
<dir name="/">