Lines Matching refs:uwrap

70 	struct php_user_stream_wrapper * uwrap = (struct php_user_stream_wrapper*)rsrc->ptr;  in stream_wrapper_dtor()  local
72 efree(uwrap->protoname); in stream_wrapper_dtor()
73 efree(uwrap); in stream_wrapper_dtor()
278 static void user_stream_create_object(struct php_user_stream_wrapper *uwrap, php_stream_context *co… in user_stream_create_object() argument
280 …if (uwrap->ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND… in user_stream_create_object()
286 if (object_init_ex(object, uwrap->ce) == FAILURE) { in user_stream_create_object()
298 if (uwrap->ce->constructor) { in user_stream_create_object()
300 uwrap->ce->constructor, Z_OBJ_P(object), NULL); in user_stream_create_object()
307 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_opener() local
327 if(uwrap->wrapper.is_url == 0 && in user_wrapper_opener()
334 us->wrapper = uwrap; in user_wrapper_opener()
336 user_stream_create_object(uwrap, context, &us->object); in user_wrapper_opener()
401 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_opendir() local
416 us->wrapper = uwrap; in user_wrapper_opendir()
418 user_stream_create_object(uwrap, context, &us->object); in user_wrapper_opendir()
470 struct php_user_stream_wrapper *uwrap; in PHP_FUNCTION() local
479 uwrap = (struct php_user_stream_wrapper *)ecalloc(1, sizeof(*uwrap)); in PHP_FUNCTION()
480 uwrap->ce = ce; in PHP_FUNCTION()
481 uwrap->protoname = estrndup(ZSTR_VAL(protocol), ZSTR_LEN(protocol)); in PHP_FUNCTION()
482 uwrap->wrapper.wops = &user_stream_wops; in PHP_FUNCTION()
483 uwrap->wrapper.abstract = uwrap; in PHP_FUNCTION()
484 uwrap->wrapper.is_url = ((flags & PHP_STREAM_IS_URL) != 0); in PHP_FUNCTION()
486 rsrc = zend_register_resource(uwrap, le_protocols); in PHP_FUNCTION()
488 if (php_register_url_stream_wrapper_volatile(protocol, &uwrap->wrapper) == SUCCESS) { in PHP_FUNCTION()
497 …scheme specified. Unable to register wrapper class %s to %s://", ZSTR_VAL(uwrap->ce->name), ZSTR_V… in PHP_FUNCTION()
1077 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_unlink() local
1085 user_stream_create_object(uwrap, context, &object); in user_wrapper_unlink()
1104 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_UNLINK " is not implemented!", ZSTR_VAL(uwrap-… in user_wrapper_unlink()
1120 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rename() local
1128 user_stream_create_object(uwrap, context, &object); in user_wrapper_rename()
1148 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_RENAME " is not implemented!", ZSTR_VAL(uwrap-… in user_wrapper_rename()
1165 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_mkdir() local
1173 user_stream_create_object(uwrap, context, &object); in user_wrapper_mkdir()
1194 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_MKDIR " is not implemented!", ZSTR_VAL(uwrap->… in user_wrapper_mkdir()
1212 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rmdir() local
1220 user_stream_create_object(uwrap, context, &object); in user_wrapper_rmdir()
1240 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_RMDIR " is not implemented!", ZSTR_VAL(uwrap->… in user_wrapper_rmdir()
1257 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_metadata() local
1289 user_stream_create_object(uwrap, context, &object); in user_wrapper_metadata()
1310 …ref(NULL, E_WARNING, "%s::" USERSTREAM_METADATA " is not implemented!", ZSTR_VAL(uwrap->ce->name)); in user_wrapper_metadata()
1329 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_stat_url() local
1337 user_stream_create_object(uwrap, context, &object); in user_wrapper_stat_url()
1361 ZSTR_VAL(uwrap->ce->name)); in user_wrapper_stat_url()