Lines Matching refs:retval

624 	zval *retval = NULL;  in php_userstreamop_write()  local
642 &retval, in php_userstreamop_write()
653 if (call_result == SUCCESS && retval != NULL) { in php_userstreamop_write()
654 convert_to_long(retval); in php_userstreamop_write()
655 didwrite = Z_LVAL_P(retval); in php_userstreamop_write()
669 if (retval) in php_userstreamop_write()
670 zval_ptr_dtor(&retval); in php_userstreamop_write()
678 zval *retval = NULL; in php_userstreamop_read() local
696 &retval, in php_userstreamop_read()
706 if (call_result == SUCCESS && retval != NULL) { in php_userstreamop_read()
707 convert_to_string(retval); in php_userstreamop_read()
708 didread = Z_STRLEN_P(retval); in php_userstreamop_read()
715 memcpy(buf, Z_STRVAL_P(retval), didread); in php_userstreamop_read()
721 if (retval) { in php_userstreamop_read()
722 zval_ptr_dtor(&retval); in php_userstreamop_read()
723 retval = NULL; in php_userstreamop_read()
733 &retval, in php_userstreamop_read()
736 if (call_result == SUCCESS && retval != NULL && zval_is_true(retval)) { in php_userstreamop_read()
746 if (retval) { in php_userstreamop_read()
747 zval_ptr_dtor(&retval); in php_userstreamop_read()
748 retval = NULL; in php_userstreamop_read()
757 zval *retval = NULL; in php_userstreamop_close() local
767 &retval, in php_userstreamop_close()
770 if (retval) in php_userstreamop_close()
771 zval_ptr_dtor(&retval); in php_userstreamop_close()
783 zval *retval = NULL; in php_userstreamop_flush() local
794 &retval, in php_userstreamop_flush()
797 if (call_result == SUCCESS && retval != NULL && zval_is_true(retval)) in php_userstreamop_flush()
802 if (retval) in php_userstreamop_flush()
803 zval_ptr_dtor(&retval); in php_userstreamop_flush()
811 zval *retval = NULL; in php_userstreamop_seek() local
832 &retval, in php_userstreamop_seek()
844 if (retval) in php_userstreamop_seek()
845 zval_ptr_dtor(&retval); in php_userstreamop_seek()
848 } else if (call_result == SUCCESS && retval != NULL && zval_is_true(retval)) { in php_userstreamop_seek()
854 if (retval) { in php_userstreamop_seek()
855 zval_ptr_dtor(&retval); in php_userstreamop_seek()
856 retval = NULL; in php_userstreamop_seek()
869 &retval, in php_userstreamop_seek()
872 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_LONG) { in php_userstreamop_seek()
873 *newoffs = Z_LVAL_P(retval); in php_userstreamop_seek()
882 if (retval) { in php_userstreamop_seek()
883 zval_ptr_dtor(&retval); in php_userstreamop_seek()
938 zval *retval = NULL; in php_userstreamop_stat() local
948 &retval, in php_userstreamop_stat()
951 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_ARRAY) { in php_userstreamop_stat()
952 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC)) in php_userstreamop_stat()
961 if (retval) in php_userstreamop_stat()
962 zval_ptr_dtor(&retval); in php_userstreamop_stat()
970 zval *retval = NULL; in php_userstreamop_set_option() local
980 …call_result = call_user_function_ex(NULL, &us->object, &func_name, &retval, 0, NULL, 0, NULL TSRML… in php_userstreamop_set_option()
981 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_BOOL) { in php_userstreamop_set_option()
982 ret = zval_is_true(retval) ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; in php_userstreamop_set_option()
1018 &retval, in php_userstreamop_set_option()
1021 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_BOOL) { in php_userstreamop_set_option()
1022 ret = !Z_LVAL_P(retval); in php_userstreamop_set_option()
1057 &retval, in php_userstreamop_set_option()
1059 if (call_result == SUCCESS && retval != NULL) { in php_userstreamop_set_option()
1060 if (Z_TYPE_P(retval) == IS_BOOL) { in php_userstreamop_set_option()
1061 ret = Z_LVAL_P(retval) ? PHP_STREAM_OPTION_RETURN_OK : in php_userstreamop_set_option()
1126 &retval, in php_userstreamop_set_option()
1133 } else if (retval && zend_is_true(retval)) { in php_userstreamop_set_option()
1151 if (retval) { in php_userstreamop_set_option()
1152 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1518 zval *retval = NULL; in php_userstreamop_readdir() local
1533 &retval, in php_userstreamop_readdir()
1537 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) != IS_BOOL) { in php_userstreamop_readdir()
1538 convert_to_string(retval); in php_userstreamop_readdir()
1539 PHP_STRLCPY(ent->d_name, Z_STRVAL_P(retval), sizeof(ent->d_name), Z_STRLEN_P(retval)); in php_userstreamop_readdir()
1547 if (retval) in php_userstreamop_readdir()
1548 zval_ptr_dtor(&retval); in php_userstreamop_readdir()
1556 zval *retval = NULL; in php_userstreamop_closedir() local
1566 &retval, in php_userstreamop_closedir()
1569 if (retval) in php_userstreamop_closedir()
1570 zval_ptr_dtor(&retval); in php_userstreamop_closedir()
1582 zval *retval = NULL; in php_userstreamop_rewinddir() local
1590 &retval, in php_userstreamop_rewinddir()
1593 if (retval) in php_userstreamop_rewinddir()
1594 zval_ptr_dtor(&retval); in php_userstreamop_rewinddir()
1604 zval *retval = NULL; in php_userstreamop_cast() local
1627 &retval, in php_userstreamop_cast()
1636 if (retval == NULL || !zend_is_true(retval)) { in php_userstreamop_cast()
1639 php_stream_from_zval_no_verify(intstream, &retval); in php_userstreamop_cast()
1654 if (retval) { in php_userstreamop_cast()
1655 zval_ptr_dtor(&retval); in php_userstreamop_cast()