getObjectEx(http_requestdatashare_object, obj, object);
SEPARATE_ZVAL_IF_NOT_REF(&value);
- status = http_request_datashare_set(obj->share, Z_STRVAL_P(member), Z_STRLEN_P(member), zval_is_true(value));
+ status = http_request_datashare_set(obj->share, Z_STRVAL_P(member), Z_STRLEN_P(member), (zend_bool) zval_is_true(value));
if (orig != value) {
zval_ptr_dtor(&value);
value = orig;
NO_ARGS;
- RETURN_LONG(zend_llist_count(&obj->share->handles));
+ RETURN_LONG(zend_llist_count(HTTP_RSHARE_HANDLES(obj->share)));
}
/* }}} */
if (!this_ptr) {
MAKE_STD_ZVAL(this_ptr);
Z_TYPE_P(this_ptr) = IS_OBJECT;
- this_ptr->value.obj = http_requestdatashare_object_new(http_requestdatashare_object_ce);
+ this_ptr->value.obj = http_requestdatashare_object_new_ex(http_requestdatashare_object_ce, global ? http_request_datashare_global_get() : NULL, NULL);
}
if (global) {
if (HTTP_G->request.datashare.cookie) {