Lines Matching refs:retval
304 zval retval; in user_stream_create_object() local
309 fci.retval = &retval; in user_stream_create_object()
325 zval_ptr_dtor(&retval); in user_stream_create_object()
596 zval retval; in php_userstreamop_write() local
611 &retval, in php_userstreamop_write()
623 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_write()
624 convert_to_long(&retval); in php_userstreamop_write()
625 didwrite = Z_LVAL(retval); in php_userstreamop_write()
639 zval_ptr_dtor(&retval); in php_userstreamop_write()
647 zval retval; in php_userstreamop_read() local
662 &retval, in php_userstreamop_read()
673 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_read()
674 convert_to_string(&retval); in php_userstreamop_read()
675 didread = Z_STRLEN(retval); in php_userstreamop_read()
682 memcpy(buf, Z_STRVAL(retval), didread); in php_userstreamop_read()
688 zval_ptr_dtor(&retval); in php_userstreamop_read()
689 ZVAL_UNDEF(&retval); in php_userstreamop_read()
698 &retval, in php_userstreamop_read()
701 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) { in php_userstreamop_read()
711 zval_ptr_dtor(&retval); in php_userstreamop_read()
720 zval retval; in php_userstreamop_close() local
730 &retval, in php_userstreamop_close()
733 zval_ptr_dtor(&retval); in php_userstreamop_close()
747 zval retval; in php_userstreamop_flush() local
758 &retval, in php_userstreamop_flush()
761 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) in php_userstreamop_flush()
766 zval_ptr_dtor(&retval); in php_userstreamop_flush()
775 zval retval; in php_userstreamop_seek() local
790 &retval, in php_userstreamop_seek()
803 zval_ptr_dtor(&retval); in php_userstreamop_seek()
806 } else if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) { in php_userstreamop_seek()
812 zval_ptr_dtor(&retval); in php_userstreamop_seek()
813 ZVAL_UNDEF(&retval); in php_userstreamop_seek()
825 &retval, in php_userstreamop_seek()
828 if (call_result == SUCCESS && Z_TYPE(retval) == IS_LONG) { in php_userstreamop_seek()
829 *newoffs = Z_LVAL(retval); in php_userstreamop_seek()
838 zval_ptr_dtor(&retval); in php_userstreamop_seek()
891 zval retval; in php_userstreamop_stat() local
901 &retval, in php_userstreamop_stat()
904 if (call_result == SUCCESS && Z_TYPE(retval) == IS_ARRAY) { in php_userstreamop_stat()
905 if (SUCCESS == statbuf_from_array(&retval, ssb)) in php_userstreamop_stat()
914 zval_ptr_dtor(&retval); in php_userstreamop_stat()
923 zval retval; in php_userstreamop_set_option() local
932 …unction_ex(NULL, Z_ISUNDEF(us->object)? NULL : &us->object, &func_name, &retval, 0, NULL, 0, NULL); in php_userstreamop_set_option()
933 if (call_result == SUCCESS && (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE)) { in php_userstreamop_set_option()
934 ret = zval_is_true(&retval) ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; in php_userstreamop_set_option()
941 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
969 &retval, in php_userstreamop_set_option()
972 if (call_result == SUCCESS && (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE)) { in php_userstreamop_set_option()
973 ret = (Z_TYPE(retval) == IS_FALSE); in php_userstreamop_set_option()
985 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1010 &retval, in php_userstreamop_set_option()
1012 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_set_option()
1013 if (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE) { in php_userstreamop_set_option()
1014 ret = (Z_TYPE(retval) == IS_TRUE) ? PHP_STREAM_OPTION_RETURN_OK : in php_userstreamop_set_option()
1026 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1074 &retval, in php_userstreamop_set_option()
1081 } else if (Z_TYPE(retval) != IS_UNDEF && zend_is_true(&retval)) { in php_userstreamop_set_option()
1087 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1412 zval retval; in php_userstreamop_readdir() local
1427 &retval, in php_userstreamop_readdir()
1431 if (call_result == SUCCESS && Z_TYPE(retval) != IS_FALSE && Z_TYPE(retval) != IS_TRUE) { in php_userstreamop_readdir()
1432 convert_to_string(&retval); in php_userstreamop_readdir()
1433 PHP_STRLCPY(ent->d_name, Z_STRVAL(retval), sizeof(ent->d_name), Z_STRLEN(retval)); in php_userstreamop_readdir()
1441 zval_ptr_dtor(&retval); in php_userstreamop_readdir()
1450 zval retval; in php_userstreamop_closedir() local
1460 &retval, in php_userstreamop_closedir()
1463 zval_ptr_dtor(&retval); in php_userstreamop_closedir()
1476 zval retval; in php_userstreamop_rewinddir() local
1484 &retval, in php_userstreamop_rewinddir()
1487 zval_ptr_dtor(&retval); in php_userstreamop_rewinddir()
1498 zval retval; in php_userstreamop_cast() local
1518 &retval, in php_userstreamop_cast()
1527 if (Z_ISUNDEF(retval) || !zend_is_true(&retval)) { in php_userstreamop_cast()
1530 php_stream_from_zval_no_verify(intstream, &retval); in php_userstreamop_cast()
1545 zval_ptr_dtor(&retval); in php_userstreamop_cast()