Lines Matching refs:wrapper
39 php_stream_wrapper wrapper; member
45 static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const cha…
46 static int user_wrapper_close(php_stream_wrapper *wrapper, php_stream *stream);
47 static int user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, int flags, php_strea…
48 static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_strea…
49 static int user_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_t…
50 static int user_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, int options, …
51 static int user_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream…
52 static int user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, int option, void *va…
53 static php_stream *user_wrapper_opendir(php_stream_wrapper *wrapper, const char *filename, const ch…
92 struct php_user_stream_wrapper * wrapper; member
293 static php_stream *user_wrapper_opener(php_stream_wrapper *wrapper, const char *filename, const cha… in user_wrapper_opener() argument
296 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_opener()
306 php_stream_wrapper_log_error(wrapper, options, "infinite recursion prevented"); in user_wrapper_opener()
316 if(uwrap->wrapper.is_url == 0 && in user_wrapper_opener()
323 us->wrapper = uwrap; in user_wrapper_opener()
325 GC_ADDREF(us->wrapper->resource); in user_wrapper_opener()
362 php_stream_wrapper_log_error(wrapper, options, "\"%s::" USERSTREAM_OPEN "\" call failed", in user_wrapper_opener()
363 ZSTR_VAL(us->wrapper->ce->name)); in user_wrapper_opener()
370 zend_list_delete(us->wrapper->resource); in user_wrapper_opener()
386 static int user_wrapper_close(php_stream_wrapper *wrapper, php_stream *stream) in user_wrapper_close() argument
388 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_close()
394 static php_stream *user_wrapper_opendir(php_stream_wrapper *wrapper, const char *filename, const ch… in user_wrapper_opendir() argument
397 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_opendir()
406 php_stream_wrapper_log_error(wrapper, options, "infinite recursion prevented"); in user_wrapper_opendir()
412 us->wrapper = uwrap; in user_wrapper_opendir()
414 GC_ADDREF(us->wrapper->resource); in user_wrapper_opendir()
438 php_stream_wrapper_log_error(wrapper, options, "\"%s::" USERSTREAM_DIR_OPEN "\" call failed", in user_wrapper_opendir()
439 ZSTR_VAL(us->wrapper->ce->name)); in user_wrapper_opendir()
446 zend_list_delete(us->wrapper->resource); in user_wrapper_opendir()
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()
483 if (php_register_url_stream_wrapper_volatile(protocol, &uwrap->wrapper) == SUCCESS) { in PHP_FUNCTION()
510 …php_stream_wrapper *wrapper = zend_hash_find_ptr(php_stream_get_url_stream_wrappers_hash(), protoc… in PHP_FUNCTION() local
517 ZEND_ASSERT(wrapper != NULL); in PHP_FUNCTION()
518 if (wrapper->wops == &user_stream_wops) { in PHP_FUNCTION()
519 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper *)wrapper; in PHP_FUNCTION()
532 php_stream_wrapper *wrapper; in PHP_FUNCTION() local
540 if ((wrapper = zend_hash_find_ptr(global_wrapper_hash, protocol)) == NULL) { in PHP_FUNCTION()
546 if (wrapper_hash == global_wrapper_hash || zend_hash_find_ptr(wrapper_hash, protocol) == wrapper) { in PHP_FUNCTION()
554 if (php_register_url_stream_wrapper_volatile(protocol, wrapper) == FAILURE) { in PHP_FUNCTION()
595 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_write()
602 ZSTR_VAL(us->wrapper->ce->name), in php_userstreamop_write()
638 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_read()
655 …ZSTR_VAL(us->wrapper->ce->name), (zend_long)(didread - count), (zend_long)didread, (zend_long)coun… in php_userstreamop_read()
680 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_read()
788 …f(NULL, E_WARNING, "%s::" USERSTREAM_TELL " is not implemented!", ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_seek()
856 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_stat()
885 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
922 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
955 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
960 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
1011 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
1033 static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_strea… in user_wrapper_unlink() argument
1035 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_unlink()
1071 static int user_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_t… in user_wrapper_rename() argument
1074 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rename()
1112 static int user_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, in user_wrapper_mkdir() argument
1115 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_mkdir()
1155 static int user_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, in user_wrapper_rmdir() argument
1158 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rmdir()
1196 static int user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, int option, in user_wrapper_metadata() argument
1199 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_metadata()
1264 static int user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, int flags, in user_wrapper_stat_url() argument
1267 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_stat_url()
1336 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_readdir()
1413 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_cast()
1424 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_cast()
1431 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_cast()