File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 39
39
librdkafka : ' v0.11.6'
40
40
- php : ' 7.3.0'
41
41
librdkafka : ' v0.11.6'
42
+ - php : ' 7.2.0'
43
+ librdkafka : ' v0.11.6'
44
+ - php : ' 7.1.0'
45
+ librdkafka : ' v0.11.6'
46
+ - php : ' 7.0.0'
47
+ librdkafka : ' v0.11.6'
42
48
- php : ' 8.0.0'
43
49
librdkafka : ' master'
44
50
experimental : true
Original file line number Diff line number Diff line change 55
55
56
56
#define rdkafka_get_debug_object (type , object ) get_object(object)
57
57
58
+ #if PHP_MINOR_VERSION < 3
59
+ /* Allocates object type and zeros it, but not the properties.
60
+ * Properties MUST be initialized using object_properties_init(). */
61
+ static zend_always_inline void * zend_object_alloc (size_t obj_size , zend_class_entry * ce ) {
62
+ void * obj = emalloc (obj_size + zend_object_properties_size (ce ));
63
+ /* Subtraction of sizeof(zval) is necessary, because zend_object_properties_size() may be
64
+ * -sizeof(zval), if the object has no properties. */
65
+ memset (obj , 0 , obj_size - sizeof (zval ));
66
+ return obj ;
67
+ }
58
68
#endif
59
69
70
+ #endif // PHP 7
71
+
60
72
#define Z_RDKAFKA_P (php_kafka_type , zobject ) php_kafka_from_obj(php_kafka_type, Z_OBJ_P(zobject))
61
73
62
74
#define php_kafka_from_obj (php_kafka_type , object ) \
You can’t perform that action at this time.
0 commit comments