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->classname); in stream_wrapper_dtor()
77 efree(uwrap); in stream_wrapper_dtor()
282 static void user_stream_create_object(struct php_user_stream_wrapper *uwrap, php_stream_context *co… in user_stream_create_object() argument
284 …if (uwrap->ce->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND… in user_stream_create_object()
290 if (object_init_ex(object, uwrap->ce) == FAILURE) { in user_stream_create_object()
302 if (uwrap->ce->constructor) { in user_stream_create_object()
315 fcc.function_handler = uwrap->ce->constructor; in user_stream_create_object()
320 …ref(NULL, E_WARNING, "Could not execute %s::%s()", ZSTR_VAL(uwrap->ce->name), ZSTR_VAL(uwrap->ce->… in user_stream_create_object()
332 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_opener() local
352 if(uwrap->wrapper.is_url == 0 && in user_wrapper_opener()
359 us->wrapper = uwrap; in user_wrapper_opener()
361 user_stream_create_object(uwrap, context, &us->object); in user_wrapper_opener()
427 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_opendir() local
442 us->wrapper = uwrap; in user_wrapper_opendir()
444 user_stream_create_object(uwrap, context, &us->object); in user_wrapper_opendir()
498 struct php_user_stream_wrapper * uwrap; in PHP_FUNCTION() local
506 uwrap = (struct php_user_stream_wrapper *)ecalloc(1, sizeof(*uwrap)); in PHP_FUNCTION()
507 uwrap->protoname = estrndup(ZSTR_VAL(protocol), ZSTR_LEN(protocol)); in PHP_FUNCTION()
508 uwrap->classname = estrndup(ZSTR_VAL(classname), ZSTR_LEN(classname)); in PHP_FUNCTION()
509 uwrap->wrapper.wops = &user_stream_wops; in PHP_FUNCTION()
510 uwrap->wrapper.abstract = uwrap; in PHP_FUNCTION()
511 uwrap->wrapper.is_url = ((flags & PHP_STREAM_IS_URL) != 0); in PHP_FUNCTION()
513 rsrc = zend_register_resource(uwrap, le_protocols); in PHP_FUNCTION()
515 if ((uwrap->ce = zend_lookup_class(classname)) != NULL) { in PHP_FUNCTION()
516 if (php_register_url_stream_wrapper_volatile(protocol, &uwrap->wrapper) == SUCCESS) { in PHP_FUNCTION()
1112 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_unlink() local
1120 user_stream_create_object(uwrap, context, &object); in user_wrapper_unlink()
1140 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_UNLINK " is not implemented!", uwrap->classnam… in user_wrapper_unlink()
1156 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rename() local
1164 user_stream_create_object(uwrap, context, &object); in user_wrapper_rename()
1185 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_RENAME " is not implemented!", uwrap->classnam… in user_wrapper_rename()
1202 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_mkdir() local
1210 user_stream_create_object(uwrap, context, &object); in user_wrapper_mkdir()
1232 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_MKDIR " is not implemented!", uwrap->classname… in user_wrapper_mkdir()
1250 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_rmdir() local
1258 user_stream_create_object(uwrap, context, &object); in user_wrapper_rmdir()
1279 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_RMDIR " is not implemented!", uwrap->classname… in user_wrapper_rmdir()
1296 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_metadata() local
1328 user_stream_create_object(uwrap, context, &object); in user_wrapper_metadata()
1350 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_METADATA " is not implemented!", uwrap->classn… in user_wrapper_metadata()
1369 struct php_user_stream_wrapper *uwrap = (struct php_user_stream_wrapper*)wrapper->abstract; in user_wrapper_stat_url() local
1377 user_stream_create_object(uwrap, context, &object); in user_wrapper_stat_url()
1402 uwrap->classname); in user_wrapper_stat_url()