Lines Matching refs:retval

305 		zval retval;  in user_stream_create_object()  local
310 fci.retval = &retval; in user_stream_create_object()
324 zval_ptr_dtor(&retval); in user_stream_create_object()
595 zval retval; in php_userstreamop_write() local
610 &retval, in php_userstreamop_write()
620 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_write()
621 if (Z_TYPE(retval) == IS_FALSE) { in php_userstreamop_write()
624 convert_to_long(&retval); in php_userstreamop_write()
625 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()
681 if (Z_TYPE(retval) == IS_FALSE) { in php_userstreamop_read()
685 if (!try_convert_to_string(&retval)) { in php_userstreamop_read()
689 didread = Z_STRLEN(retval); in php_userstreamop_read()
696 memcpy(buf, Z_STRVAL(retval), didread); in php_userstreamop_read()
699 zval_ptr_dtor(&retval); in php_userstreamop_read()
700 ZVAL_UNDEF(&retval); in php_userstreamop_read()
708 &retval, in php_userstreamop_read()
717 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) { in php_userstreamop_read()
727 zval_ptr_dtor(&retval); in php_userstreamop_read()
735 zval retval; in php_userstreamop_close() local
745 &retval, in php_userstreamop_close()
748 zval_ptr_dtor(&retval); in php_userstreamop_close()
762 zval retval; in php_userstreamop_flush() local
773 &retval, in php_userstreamop_flush()
776 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) in php_userstreamop_flush()
781 zval_ptr_dtor(&retval); in php_userstreamop_flush()
790 zval retval; in php_userstreamop_seek() local
805 &retval, in php_userstreamop_seek()
818 zval_ptr_dtor(&retval); in php_userstreamop_seek()
821 } else if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) { in php_userstreamop_seek()
827 zval_ptr_dtor(&retval); in php_userstreamop_seek()
828 ZVAL_UNDEF(&retval); in php_userstreamop_seek()
840 &retval, in php_userstreamop_seek()
843 if (call_result == SUCCESS && Z_TYPE(retval) == IS_LONG) { in php_userstreamop_seek()
844 *newoffs = Z_LVAL(retval); in php_userstreamop_seek()
853 zval_ptr_dtor(&retval); in php_userstreamop_seek()
900 zval retval; in php_userstreamop_stat() local
910 &retval, in php_userstreamop_stat()
913 if (call_result == SUCCESS && Z_TYPE(retval) == IS_ARRAY) { in php_userstreamop_stat()
914 if (SUCCESS == statbuf_from_array(&retval, ssb)) in php_userstreamop_stat()
923 zval_ptr_dtor(&retval); in php_userstreamop_stat()
932 zval retval; in php_userstreamop_set_option() local
941 … call_user_function(NULL, Z_ISUNDEF(us->object)? NULL : &us->object, &func_name, &retval, 0, NULL); in php_userstreamop_set_option()
942 if (call_result == SUCCESS && (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE)) { in php_userstreamop_set_option()
943 ret = zval_is_true(&retval) ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; in php_userstreamop_set_option()
950 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
978 &retval, in php_userstreamop_set_option()
981 if (call_result == SUCCESS && (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE)) { in php_userstreamop_set_option()
982 ret = (Z_TYPE(retval) == IS_FALSE); in php_userstreamop_set_option()
994 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1019 &retval, in php_userstreamop_set_option()
1021 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_set_option()
1022 if (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE) { in php_userstreamop_set_option()
1023 ret = (Z_TYPE(retval) == IS_TRUE) ? PHP_STREAM_OPTION_RETURN_OK : in php_userstreamop_set_option()
1035 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1083 &retval, in php_userstreamop_set_option()
1090 } else if (zend_is_true(&retval)) { in php_userstreamop_set_option()
1096 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1421 zval retval; in php_userstreamop_readdir() local
1436 &retval, in php_userstreamop_readdir()
1439 if (call_result == SUCCESS && Z_TYPE(retval) != IS_FALSE && Z_TYPE(retval) != IS_TRUE) { in php_userstreamop_readdir()
1440 convert_to_string(&retval); in php_userstreamop_readdir()
1441 PHP_STRLCPY(ent->d_name, Z_STRVAL(retval), sizeof(ent->d_name), Z_STRLEN(retval)); in php_userstreamop_readdir()
1449 zval_ptr_dtor(&retval); in php_userstreamop_readdir()
1458 zval retval; in php_userstreamop_closedir() local
1468 &retval, in php_userstreamop_closedir()
1471 zval_ptr_dtor(&retval); in php_userstreamop_closedir()
1484 zval retval; in php_userstreamop_rewinddir() local
1492 &retval, in php_userstreamop_rewinddir()
1495 zval_ptr_dtor(&retval); in php_userstreamop_rewinddir()
1506 zval retval; in php_userstreamop_cast() local
1526 &retval, in php_userstreamop_cast()
1535 if (!zend_is_true(&retval)) { in php_userstreamop_cast()
1538 php_stream_from_zval_no_verify(intstream, &retval); in php_userstreamop_cast()
1553 zval_ptr_dtor(&retval); in php_userstreamop_cast()