Lines Matching refs:us

297 	php_userstream_data_t *us;  in user_wrapper_opener()  local
322 us = emalloc(sizeof(*us)); in user_wrapper_opener()
323 us->wrapper = uwrap; in user_wrapper_opener()
325 GC_ADDREF(us->wrapper->resource); in user_wrapper_opener()
327 user_stream_create_object(uwrap, context, &us->object); in user_wrapper_opener()
328 if (Z_TYPE(us->object) == IS_UNDEF) { in user_wrapper_opener()
331 efree(us); in user_wrapper_opener()
344 call_result = call_method_if_exists(&us->object, &zfuncname, &zretval, 4, args); in user_wrapper_opener()
352 stream = php_stream_alloc_rel(&php_stream_userspace_ops, us, 0, mode); in user_wrapper_opener()
360 ZVAL_COPY(&stream->wrapperdata, &us->object); in user_wrapper_opener()
363 ZSTR_VAL(us->wrapper->ce->name)); in user_wrapper_opener()
368 zval_ptr_dtor(&us->object); in user_wrapper_opener()
369 ZVAL_UNDEF(&us->object); in user_wrapper_opener()
370 zend_list_delete(us->wrapper->resource); in user_wrapper_opener()
371 efree(us); in user_wrapper_opener()
398 php_userstream_data_t *us; in user_wrapper_opendir() local
411 us = emalloc(sizeof(*us)); in user_wrapper_opendir()
412 us->wrapper = uwrap; in user_wrapper_opendir()
414 GC_ADDREF(us->wrapper->resource); in user_wrapper_opendir()
416 user_stream_create_object(uwrap, context, &us->object); in user_wrapper_opendir()
417 if (Z_TYPE(us->object) == IS_UNDEF) { in user_wrapper_opendir()
419 efree(us); in user_wrapper_opendir()
429 call_result = call_method_if_exists(&us->object, &zfuncname, &zretval, 2, args); in user_wrapper_opendir()
433 stream = php_stream_alloc_rel(&php_stream_userspace_dir_ops, us, 0, mode); in user_wrapper_opendir()
436 ZVAL_COPY(&stream->wrapperdata, &us->object); in user_wrapper_opendir()
439 ZSTR_VAL(us->wrapper->ce->name)); in user_wrapper_opendir()
444 zval_ptr_dtor(&us->object); in user_wrapper_opendir()
445 ZVAL_UNDEF(&us->object); in user_wrapper_opendir()
446 zend_list_delete(us->wrapper->resource); in user_wrapper_opendir()
447 efree(us); in user_wrapper_opendir()
568 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_write() local
572 assert(us != NULL); in php_userstreamop_write()
578 call_result = call_method_if_exists(&us->object, &func_name, &retval, 1, args); in php_userstreamop_write()
595 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_write()
602 ZSTR_VAL(us->wrapper->ce->name), in php_userstreamop_write()
619 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_read() local
621 assert(us != NULL); in php_userstreamop_read()
627 call_result = call_method_if_exists(&us->object, &func_name, &retval, 1, args); in php_userstreamop_read()
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()
667 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_read()
680 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_read()
694 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_close() local
696 assert(us != NULL); in php_userstreamop_close()
700 call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_close()
705 zval_ptr_dtor(&us->object); in php_userstreamop_close()
706 ZVAL_UNDEF(&us->object); in php_userstreamop_close()
708 efree(us); in php_userstreamop_close()
718 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_flush() local
720 assert(us != NULL); in php_userstreamop_flush()
724 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_flush()
742 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_seek() local
745 assert(us != NULL); in php_userstreamop_seek()
752 call_result = call_method_if_exists(&us->object, &func_name, &retval, 2, args); in php_userstreamop_seek()
782 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_seek()
788 …php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_TELL " is not implemented!", ZSTR_VAL(us->wrap… in php_userstreamop_seek()
843 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_stat() local
848 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_stat()
856 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_stat()
871 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_set_option() local
878 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_set_option()
885 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
912 call_result = call_method_if_exists(&us->object, &func_name, &retval, 1, args); in php_userstreamop_set_option()
922 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
937 …if (zend_is_callable_ex(&func_name, Z_OBJ(us->object), IS_CALLABLE_SUPPRESS_DEPRECATIONS, NULL, NU… in php_userstreamop_set_option()
947 call_result = call_method_if_exists(&us->object, &func_name, &retval, 1, args); 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()
1007 call_result = call_method_if_exists(&us->object, &func_name, &retval, 3, args); in php_userstreamop_set_option()
1011 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_set_option()
1317 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_readdir() local
1326 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_readdir()
1336 ZSTR_VAL(us->wrapper->ce->name)); in php_userstreamop_readdir()
1349 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_closedir() local
1351 assert(us != NULL); in php_userstreamop_closedir()
1355 call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_closedir()
1359 zval_ptr_dtor(&us->object); in php_userstreamop_closedir()
1360 ZVAL_UNDEF(&us->object); in php_userstreamop_closedir()
1362 efree(us); in php_userstreamop_closedir()
1371 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_rewinddir() local
1375 call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_rewinddir()
1386 php_userstream_data_t *us = (php_userstream_data_t *)stream->abstract; in php_userstreamop_cast() local
1407 call_result = call_method_if_exists(&us->object, &func_name, &retval, 1, args); in php_userstreamop_cast()
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()