Lines Matching refs:uwrap
73 struct php_user_stream_wrapper * uwrap = (struct php_user_stream_wrapper*)rsrc->ptr; in stream_wrapper_dtor() local
75 efree(uwrap->protoname); in stream_wrapper_dtor()
76 efree(uwrap); in stream_wrapper_dtor()
261 static void user_stream_create_object(struct php_user_stream_wrapper *uwrap, php_stream_context *co… in user_stream_create_object() argument
263 …if (uwrap->ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND… in user_stream_create_object()
269 if (object_init_ex(object, uwrap->ce) == FAILURE) { in user_stream_create_object()
287 if (uwrap->ce->constructor) { in user_stream_create_object()
289 uwrap->ce->constructor, Z_OBJ_P(object), NULL); in user_stream_create_object()
296 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_opener() local
316 if(uwrap->wrapper.is_url == 0 && in user_wrapper_opener()
323 us->wrapper = uwrap; in user_wrapper_opener()
327 user_stream_create_object(uwrap, context, &us->object); in user_wrapper_opener()
388 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_close() local
389 zend_list_delete(uwrap->resource); in user_wrapper_close()
397 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_opendir() local
412 us->wrapper = uwrap; in user_wrapper_opendir()
416 user_stream_create_object(uwrap, context, &us->object); in user_wrapper_opendir()
465 struct php_user_stream_wrapper *uwrap; in PHP_FUNCTION() local
474 uwrap = (struct php_user_stream_wrapper *)ecalloc(1, sizeof(*uwrap)); in PHP_FUNCTION()
475 uwrap->ce = ce; in PHP_FUNCTION()
476 uwrap->protoname = estrndup(ZSTR_VAL(protocol), ZSTR_LEN(protocol)); in PHP_FUNCTION()
477 uwrap->wrapper.wops = &user_stream_wops; in PHP_FUNCTION()
478 uwrap->wrapper.abstract = uwrap; in PHP_FUNCTION()
479 uwrap->wrapper.is_url = ((flags & PHP_STREAM_IS_URL) != 0); in PHP_FUNCTION()
481 rsrc = zend_register_resource(uwrap, le_protocols); in PHP_FUNCTION()
483 if (php_register_url_stream_wrapper_volatile(protocol, &uwrap->wrapper) == SUCCESS) { in PHP_FUNCTION()
484 uwrap->resource = rsrc; in PHP_FUNCTION()
493 …scheme specified. Unable to register wrapper class %s to %s://", ZSTR_VAL(uwrap->ce->name), ZSTR_V… in PHP_FUNCTION()
519 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper *)wrapper; in PHP_FUNCTION() local
521 zend_list_delete(uwrap->resource); in PHP_FUNCTION()
1035 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_unlink() local
1043 user_stream_create_object(uwrap, context, &object); in user_wrapper_unlink()
1058 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_UNLINK " is not implemented!", ZSTR_VAL(uwrap-… in user_wrapper_unlink()
1074 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rename() local
1082 user_stream_create_object(uwrap, context, &object); in user_wrapper_rename()
1098 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_RENAME " is not implemented!", ZSTR_VAL(uwrap-… in user_wrapper_rename()
1115 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_mkdir() local
1123 user_stream_create_object(uwrap, context, &object); in user_wrapper_mkdir()
1140 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_MKDIR " is not implemented!", ZSTR_VAL(uwrap->… in user_wrapper_mkdir()
1158 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rmdir() local
1166 user_stream_create_object(uwrap, context, &object); in user_wrapper_rmdir()
1182 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_RMDIR " is not implemented!", ZSTR_VAL(uwrap->… in user_wrapper_rmdir()
1199 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_metadata() local
1231 user_stream_create_object(uwrap, context, &object); in user_wrapper_metadata()
1248 …ref(NULL, E_WARNING, "%s::" USERSTREAM_METADATA " is not implemented!", ZSTR_VAL(uwrap->ce->name)); in user_wrapper_metadata()
1267 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_stat_url() local
1275 user_stream_create_object(uwrap, context, &object); in user_wrapper_stat_url()
1295 ZSTR_VAL(uwrap->ce->name)); in user_wrapper_stat_url()