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()
855 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_stat()
884 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
921 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
954 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
959 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
1010 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
1032 static int user_wrapper_unlink(php_stream_wrapper *wrapper, const char *url, int options, php_strea… in user_wrapper_unlink() argument
1034 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_unlink()
1070 static int user_wrapper_rename(php_stream_wrapper *wrapper, const char *url_from, const char *url_t… in user_wrapper_rename() argument
1073 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rename()
1111 static int user_wrapper_mkdir(php_stream_wrapper *wrapper, const char *url, int mode, in user_wrapper_mkdir() argument
1114 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_mkdir()
1154 static int user_wrapper_rmdir(php_stream_wrapper *wrapper, const char *url, in user_wrapper_rmdir() argument
1157 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rmdir()
1195 static int user_wrapper_metadata(php_stream_wrapper *wrapper, const char *url, int option, in user_wrapper_metadata() argument
1198 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_metadata()
1263 static int user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, int flags, in user_wrapper_stat_url() argument
1266 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_stat_url()
1335 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_readdir()
1412 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_cast()
1423 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_cast()
1430 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_cast()