File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
#include <php.h>
18
18
#include <Zend/zend_interfaces.h>
19
- #include <ext/spl/spl_iterators.h>
20
19
21
20
#ifdef HAVE_CONFIG_H
22
21
#include "config.h"
27
26
#include "php_phongo.h"
28
27
#include "php_bson.h"
29
28
29
+ #if PHP_VERSION_ID < 70200
30
+ #include <ext/spl/spl_iterators.h>
31
+ #define zend_ce_countable spl_ce_Countable
32
+ #endif /* PHP_VERSION_ID < 70200 */
33
+
30
34
#define PHONGO_BULKWRITE_BYPASS_UNSET -1
31
35
32
36
zend_class_entry * php_phongo_bulkwrite_ce ;
@@ -669,7 +673,7 @@ void php_phongo_bulkwrite_init_ce(INIT_FUNC_ARGS) /* {{{ */
669
673
php_phongo_handler_bulkwrite .free_obj = php_phongo_bulkwrite_free_object ;
670
674
php_phongo_handler_bulkwrite .offset = XtOffsetOf (php_phongo_bulkwrite_t , std );
671
675
672
- zend_class_implements (php_phongo_bulkwrite_ce , 1 , spl_ce_Countable );
676
+ zend_class_implements (php_phongo_bulkwrite_ce , 1 , zend_ce_countable );
673
677
} /* }}} */
674
678
675
679
/*
You can’t perform that action at this time.
0 commit comments