Lines Matching refs:uwrap
72 struct php_user_stream_wrapper * uwrap = (struct php_user_stream_wrapper*)rsrc->ptr; in stream_wrapper_dtor() local
74 efree(uwrap->protoname); in stream_wrapper_dtor()
75 efree(uwrap); in stream_wrapper_dtor()
287 static void user_stream_create_object(struct php_user_stream_wrapper *uwrap, php_stream_context *co… in user_stream_create_object() argument
289 …if (uwrap->ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND… in user_stream_create_object()
295 if (object_init_ex(object, uwrap->ce) == FAILURE) { in user_stream_create_object()
313 if (uwrap->ce->constructor) { in user_stream_create_object()
315 uwrap->ce->constructor, Z_OBJ_P(object), NULL); in user_stream_create_object()
322 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_opener() local
342 if(uwrap->wrapper.is_url == 0 && in user_wrapper_opener()
349 us->wrapper = uwrap; in user_wrapper_opener()
353 user_stream_create_object(uwrap, context, &us->object); in user_wrapper_opener()
414 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_close() local
415 zend_list_delete(uwrap->resource); in user_wrapper_close()
423 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_opendir() local
438 us->wrapper = uwrap; in user_wrapper_opendir()
442 user_stream_create_object(uwrap, context, &us->object); in user_wrapper_opendir()
491 struct php_user_stream_wrapper *uwrap; in PHP_FUNCTION() local
500 uwrap = (struct php_user_stream_wrapper *)ecalloc(1, sizeof(*uwrap)); in PHP_FUNCTION()
501 uwrap->ce = ce; in PHP_FUNCTION()
502 uwrap->protoname = estrndup(ZSTR_VAL(protocol), ZSTR_LEN(protocol)); in PHP_FUNCTION()
503 uwrap->wrapper.wops = &user_stream_wops; in PHP_FUNCTION()
504 uwrap->wrapper.abstract = uwrap; in PHP_FUNCTION()
505 uwrap->wrapper.is_url = ((flags & PHP_STREAM_IS_URL) != 0); in PHP_FUNCTION()
506 uwrap->resource = NULL; in PHP_FUNCTION()
508 rsrc = zend_register_resource(uwrap, le_protocols); in PHP_FUNCTION()
510 if (php_register_url_stream_wrapper_volatile(protocol, &uwrap->wrapper) == SUCCESS) { in PHP_FUNCTION()
511 uwrap->resource = rsrc; in PHP_FUNCTION()
520 …scheme specified. Unable to register wrapper class %s to %s://", ZSTR_VAL(uwrap->ce->name), ZSTR_V… in PHP_FUNCTION()
546 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper *)wrapper; in PHP_FUNCTION() local
548 zend_list_delete(uwrap->resource); in PHP_FUNCTION()
1062 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_unlink() local
1070 user_stream_create_object(uwrap, context, &object); in user_wrapper_unlink()
1085 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_UNLINK " is not implemented!", ZSTR_VAL(uwrap-… in user_wrapper_unlink()
1101 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rename() local
1109 user_stream_create_object(uwrap, context, &object); in user_wrapper_rename()
1125 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_RENAME " is not implemented!", ZSTR_VAL(uwrap-… in user_wrapper_rename()
1142 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_mkdir() local
1150 user_stream_create_object(uwrap, context, &object); in user_wrapper_mkdir()
1167 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_MKDIR " is not implemented!", ZSTR_VAL(uwrap->… in user_wrapper_mkdir()
1185 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rmdir() local
1193 user_stream_create_object(uwrap, context, &object); in user_wrapper_rmdir()
1209 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_RMDIR " is not implemented!", ZSTR_VAL(uwrap->… in user_wrapper_rmdir()
1226 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_metadata() local
1258 user_stream_create_object(uwrap, context, &object); in user_wrapper_metadata()
1275 …ref(NULL, E_WARNING, "%s::" USERSTREAM_METADATA " is not implemented!", ZSTR_VAL(uwrap->ce->name)); in user_wrapper_metadata()
1294 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_stat_url() local
1302 user_stream_create_object(uwrap, context, &object); in user_wrapper_stat_url()
1322 ZSTR_VAL(uwrap->ce->name)); in user_wrapper_stat_url()