Lines Matching refs:retval

255 		zval *object, zval *method_name, zval *retval, uint32_t param_count, zval *params)  in call_method_if_exists()  argument
258 Z_OBJ_P(object), Z_STR_P(method_name), retval, param_count, params); in call_method_if_exists()
566 zval retval; in php_userstreamop_write() local
578 call_result = call_method_if_exists(&us->object, &func_name, &retval, 1, args); in php_userstreamop_write()
586 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_write()
587 if (Z_TYPE(retval) == IS_FALSE) { in php_userstreamop_write()
590 convert_to_long(&retval); in php_userstreamop_write()
591 didwrite = Z_LVAL(retval); in php_userstreamop_write()
607 zval_ptr_dtor(&retval); in php_userstreamop_write()
615 zval retval; in php_userstreamop_read() local
627 call_result = call_method_if_exists(&us->object, &func_name, &retval, 1, args); in php_userstreamop_read()
642 if (Z_TYPE(retval) == IS_FALSE) { in php_userstreamop_read()
646 if (!try_convert_to_string(&retval)) { in php_userstreamop_read()
647 zval_ptr_dtor(&retval); in php_userstreamop_read()
651 didread = Z_STRLEN(retval); in php_userstreamop_read()
658 memcpy(buf, Z_STRVAL(retval), didread); in php_userstreamop_read()
661 zval_ptr_dtor(&retval); in php_userstreamop_read()
662 ZVAL_UNDEF(&retval); in php_userstreamop_read()
667 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_read()
675 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) { in php_userstreamop_read()
685 zval_ptr_dtor(&retval); in php_userstreamop_read()
693 zval retval; in php_userstreamop_close() local
700 call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_close()
702 zval_ptr_dtor(&retval); in php_userstreamop_close()
716 zval retval; in php_userstreamop_flush() local
724 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_flush()
726 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) in php_userstreamop_flush()
731 zval_ptr_dtor(&retval); in php_userstreamop_flush()
740 zval retval; in php_userstreamop_seek() local
752 call_result = call_method_if_exists(&us->object, &func_name, &retval, 2, args); in php_userstreamop_seek()
763 zval_ptr_dtor(&retval); in php_userstreamop_seek()
766 } else if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) { in php_userstreamop_seek()
772 zval_ptr_dtor(&retval); in php_userstreamop_seek()
773 ZVAL_UNDEF(&retval); in php_userstreamop_seek()
782 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_seek()
784 if (call_result == SUCCESS && Z_TYPE(retval) == IS_LONG) { in php_userstreamop_seek()
785 *newoffs = Z_LVAL(retval); in php_userstreamop_seek()
794 zval_ptr_dtor(&retval); in php_userstreamop_seek()
841 zval retval; in php_userstreamop_stat() local
848 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_stat()
850 if (call_result == SUCCESS && Z_TYPE(retval) == IS_ARRAY) { in php_userstreamop_stat()
851 if (SUCCESS == statbuf_from_array(&retval, ssb)) in php_userstreamop_stat()
860 zval_ptr_dtor(&retval); in php_userstreamop_stat()
869 zval retval; 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()
879 if (call_result == SUCCESS && (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE)) { in php_userstreamop_set_option()
880 ret = zval_is_true(&retval) ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; in php_userstreamop_set_option()
887 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
912 call_result = call_method_if_exists(&us->object, &func_name, &retval, 1, args); in php_userstreamop_set_option()
914 if (call_result == SUCCESS && (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE)) { in php_userstreamop_set_option()
915 ret = (Z_TYPE(retval) == IS_FALSE); in php_userstreamop_set_option()
927 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
947 call_result = call_method_if_exists(&us->object, &func_name, &retval, 1, args); in php_userstreamop_set_option()
948 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_set_option()
949 if (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE) { in php_userstreamop_set_option()
950 ret = (Z_TYPE(retval) == IS_TRUE) ? PHP_STREAM_OPTION_RETURN_OK : in php_userstreamop_set_option()
962 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1007 call_result = call_method_if_exists(&us->object, &func_name, &retval, 3, args); in php_userstreamop_set_option()
1013 } else if (zend_is_true(&retval)) { in php_userstreamop_set_option()
1019 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1314 zval retval; in php_userstreamop_readdir() local
1326 call_result = call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_readdir()
1328 if (call_result == SUCCESS && Z_TYPE(retval) != IS_FALSE && Z_TYPE(retval) != IS_TRUE) { in php_userstreamop_readdir()
1329 convert_to_string(&retval); in php_userstreamop_readdir()
1330 PHP_STRLCPY(ent->d_name, Z_STRVAL(retval), sizeof(ent->d_name), Z_STRLEN(retval)); in php_userstreamop_readdir()
1339 zval_ptr_dtor(&retval); in php_userstreamop_readdir()
1348 zval retval; in php_userstreamop_closedir() local
1355 call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_closedir()
1357 zval_ptr_dtor(&retval); in php_userstreamop_closedir()
1370 zval retval; in php_userstreamop_rewinddir() local
1375 call_method_if_exists(&us->object, &func_name, &retval, 0, NULL); in php_userstreamop_rewinddir()
1377 zval_ptr_dtor(&retval); in php_userstreamop_rewinddir()
1388 zval retval; in php_userstreamop_cast() local
1407 call_result = call_method_if_exists(&us->object, &func_name, &retval, 1, args); in php_userstreamop_cast()
1417 if (!zend_is_true(&retval)) { in php_userstreamop_cast()
1420 php_stream_from_zval_no_verify(intstream, &retval); in php_userstreamop_cast()
1439 zval_ptr_dtor(&retval); in php_userstreamop_cast()