Lines Matching refs:retval

630 	zval *retval = NULL;  in php_userstreamop_write()  local
648 &retval, in php_userstreamop_write()
659 if (call_result == SUCCESS && retval != NULL) { in php_userstreamop_write()
660 convert_to_long(retval); in php_userstreamop_write()
661 didwrite = Z_LVAL_P(retval); in php_userstreamop_write()
675 if (retval) in php_userstreamop_write()
676 zval_ptr_dtor(&retval); in php_userstreamop_write()
684 zval *retval = NULL; in php_userstreamop_read() local
702 &retval, in php_userstreamop_read()
712 if (call_result == SUCCESS && retval != NULL) { in php_userstreamop_read()
713 convert_to_string(retval); in php_userstreamop_read()
714 didread = Z_STRLEN_P(retval); in php_userstreamop_read()
721 memcpy(buf, Z_STRVAL_P(retval), didread); in php_userstreamop_read()
727 if (retval) { in php_userstreamop_read()
728 zval_ptr_dtor(&retval); in php_userstreamop_read()
729 retval = NULL; in php_userstreamop_read()
739 &retval, in php_userstreamop_read()
742 if (call_result == SUCCESS && retval != NULL && zval_is_true(retval)) { in php_userstreamop_read()
752 if (retval) { in php_userstreamop_read()
753 zval_ptr_dtor(&retval); in php_userstreamop_read()
754 retval = NULL; in php_userstreamop_read()
763 zval *retval = NULL; in php_userstreamop_close() local
773 &retval, in php_userstreamop_close()
776 if (retval) in php_userstreamop_close()
777 zval_ptr_dtor(&retval); in php_userstreamop_close()
789 zval *retval = NULL; in php_userstreamop_flush() local
800 &retval, in php_userstreamop_flush()
803 if (call_result == SUCCESS && retval != NULL && zval_is_true(retval)) in php_userstreamop_flush()
808 if (retval) in php_userstreamop_flush()
809 zval_ptr_dtor(&retval); in php_userstreamop_flush()
817 zval *retval = NULL; in php_userstreamop_seek() local
838 &retval, in php_userstreamop_seek()
850 if (retval) in php_userstreamop_seek()
851 zval_ptr_dtor(&retval); in php_userstreamop_seek()
854 } else if (call_result == SUCCESS && retval != NULL && zval_is_true(retval)) { in php_userstreamop_seek()
860 if (retval) { in php_userstreamop_seek()
861 zval_ptr_dtor(&retval); in php_userstreamop_seek()
862 retval = NULL; in php_userstreamop_seek()
875 &retval, in php_userstreamop_seek()
878 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_LONG) { in php_userstreamop_seek()
879 *newoffs = Z_LVAL_P(retval); in php_userstreamop_seek()
888 if (retval) { in php_userstreamop_seek()
889 zval_ptr_dtor(&retval); in php_userstreamop_seek()
944 zval *retval = NULL; in php_userstreamop_stat() local
954 &retval, in php_userstreamop_stat()
957 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_ARRAY) { in php_userstreamop_stat()
958 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC)) in php_userstreamop_stat()
967 if (retval) in php_userstreamop_stat()
968 zval_ptr_dtor(&retval); in php_userstreamop_stat()
976 zval *retval = NULL; in php_userstreamop_set_option() local
986 …call_result = call_user_function_ex(NULL, &us->object, &func_name, &retval, 0, NULL, 0, NULL TSRML… in php_userstreamop_set_option()
987 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_BOOL) { in php_userstreamop_set_option()
988 ret = zval_is_true(retval) ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; in php_userstreamop_set_option()
1024 &retval, in php_userstreamop_set_option()
1027 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_BOOL) { in php_userstreamop_set_option()
1028 ret = !Z_LVAL_P(retval); in php_userstreamop_set_option()
1063 &retval, in php_userstreamop_set_option()
1065 if (call_result == SUCCESS && retval != NULL) { in php_userstreamop_set_option()
1066 if (Z_TYPE_P(retval) == IS_BOOL) { in php_userstreamop_set_option()
1067 ret = Z_LVAL_P(retval) ? PHP_STREAM_OPTION_RETURN_OK : in php_userstreamop_set_option()
1132 &retval, in php_userstreamop_set_option()
1139 } else if (retval && zend_is_true(retval)) { in php_userstreamop_set_option()
1157 if (retval) { in php_userstreamop_set_option()
1158 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1529 zval *retval = NULL; in php_userstreamop_readdir() local
1544 &retval, in php_userstreamop_readdir()
1548 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) != IS_BOOL) { in php_userstreamop_readdir()
1549 convert_to_string(retval); in php_userstreamop_readdir()
1550 PHP_STRLCPY(ent->d_name, Z_STRVAL_P(retval), sizeof(ent->d_name), Z_STRLEN_P(retval)); in php_userstreamop_readdir()
1558 if (retval) in php_userstreamop_readdir()
1559 zval_ptr_dtor(&retval); in php_userstreamop_readdir()
1567 zval *retval = NULL; in php_userstreamop_closedir() local
1577 &retval, in php_userstreamop_closedir()
1580 if (retval) in php_userstreamop_closedir()
1581 zval_ptr_dtor(&retval); in php_userstreamop_closedir()
1593 zval *retval = NULL; in php_userstreamop_rewinddir() local
1601 &retval, in php_userstreamop_rewinddir()
1604 if (retval) in php_userstreamop_rewinddir()
1605 zval_ptr_dtor(&retval); in php_userstreamop_rewinddir()
1615 zval *retval = NULL; in php_userstreamop_cast() local
1638 &retval, in php_userstreamop_cast()
1647 if (retval == NULL || !zend_is_true(retval)) { in php_userstreamop_cast()
1650 php_stream_from_zval_no_verify(intstream, &retval); in php_userstreamop_cast()
1665 if (retval) { in php_userstreamop_cast()
1666 zval_ptr_dtor(&retval); in php_userstreamop_cast()