Lines Matching refs:retval
304 zval retval; in user_stream_create_object() local
311 fci.retval = &retval; in user_stream_create_object()
327 zval_ptr_dtor(&retval); in user_stream_create_object()
598 zval retval; in php_userstreamop_write() local
613 &retval, in php_userstreamop_write()
625 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_write()
626 convert_to_long(&retval); in php_userstreamop_write()
627 didwrite = Z_LVAL(retval); in php_userstreamop_write()
641 zval_ptr_dtor(&retval); in php_userstreamop_write()
649 zval retval; in php_userstreamop_read() local
664 &retval, in php_userstreamop_read()
675 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_read()
676 convert_to_string(&retval); in php_userstreamop_read()
677 didread = Z_STRLEN(retval); in php_userstreamop_read()
684 memcpy(buf, Z_STRVAL(retval), didread); in php_userstreamop_read()
690 zval_ptr_dtor(&retval); in php_userstreamop_read()
691 ZVAL_UNDEF(&retval); in php_userstreamop_read()
700 &retval, in php_userstreamop_read()
703 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) { in php_userstreamop_read()
713 zval_ptr_dtor(&retval); in php_userstreamop_read()
722 zval retval; in php_userstreamop_close() local
732 &retval, in php_userstreamop_close()
735 zval_ptr_dtor(&retval); in php_userstreamop_close()
749 zval retval; in php_userstreamop_flush() local
760 &retval, in php_userstreamop_flush()
763 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) in php_userstreamop_flush()
768 zval_ptr_dtor(&retval); in php_userstreamop_flush()
777 zval retval; in php_userstreamop_seek() local
792 &retval, in php_userstreamop_seek()
805 zval_ptr_dtor(&retval); in php_userstreamop_seek()
808 } else if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) { in php_userstreamop_seek()
814 zval_ptr_dtor(&retval); in php_userstreamop_seek()
815 ZVAL_UNDEF(&retval); in php_userstreamop_seek()
827 &retval, in php_userstreamop_seek()
830 if (call_result == SUCCESS && Z_TYPE(retval) == IS_LONG) { in php_userstreamop_seek()
831 *newoffs = Z_LVAL(retval); in php_userstreamop_seek()
840 zval_ptr_dtor(&retval); in php_userstreamop_seek()
893 zval retval; in php_userstreamop_stat() local
903 &retval, in php_userstreamop_stat()
906 if (call_result == SUCCESS && Z_TYPE(retval) == IS_ARRAY) { in php_userstreamop_stat()
907 if (SUCCESS == statbuf_from_array(&retval, ssb)) in php_userstreamop_stat()
916 zval_ptr_dtor(&retval); in php_userstreamop_stat()
925 zval retval; in php_userstreamop_set_option() local
934 …unction_ex(NULL, Z_ISUNDEF(us->object)? NULL : &us->object, &func_name, &retval, 0, NULL, 0, NULL); in php_userstreamop_set_option()
935 if (call_result == SUCCESS && (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE)) { in php_userstreamop_set_option()
936 ret = zval_is_true(&retval) ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; in php_userstreamop_set_option()
943 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
971 &retval, in php_userstreamop_set_option()
974 if (call_result == SUCCESS && (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE)) { in php_userstreamop_set_option()
975 ret = (Z_TYPE(retval) == IS_FALSE); in php_userstreamop_set_option()
987 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1012 &retval, in php_userstreamop_set_option()
1014 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_set_option()
1015 if (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE) { in php_userstreamop_set_option()
1016 ret = (Z_TYPE(retval) == IS_TRUE) ? PHP_STREAM_OPTION_RETURN_OK : in php_userstreamop_set_option()
1028 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1076 &retval, in php_userstreamop_set_option()
1083 } else if (Z_TYPE(retval) != IS_UNDEF && zend_is_true(&retval)) { in php_userstreamop_set_option()
1089 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1414 zval retval; in php_userstreamop_readdir() local
1429 &retval, in php_userstreamop_readdir()
1433 if (call_result == SUCCESS && Z_TYPE(retval) != IS_FALSE && Z_TYPE(retval) != IS_TRUE) { in php_userstreamop_readdir()
1434 convert_to_string(&retval); in php_userstreamop_readdir()
1435 PHP_STRLCPY(ent->d_name, Z_STRVAL(retval), sizeof(ent->d_name), Z_STRLEN(retval)); in php_userstreamop_readdir()
1443 zval_ptr_dtor(&retval); in php_userstreamop_readdir()
1452 zval retval; in php_userstreamop_closedir() local
1462 &retval, in php_userstreamop_closedir()
1465 zval_ptr_dtor(&retval); in php_userstreamop_closedir()
1478 zval retval; in php_userstreamop_rewinddir() local
1486 &retval, in php_userstreamop_rewinddir()
1489 zval_ptr_dtor(&retval); in php_userstreamop_rewinddir()
1500 zval retval; in php_userstreamop_cast() local
1520 &retval, in php_userstreamop_cast()
1529 if (Z_ISUNDEF(retval) || !zend_is_true(&retval)) { in php_userstreamop_cast()
1532 php_stream_from_zval_no_verify(intstream, &retval); in php_userstreamop_cast()
1547 zval_ptr_dtor(&retval); in php_userstreamop_cast()