Lines Matching refs:retval
624 zval *retval = NULL; in php_userstreamop_write() local
642 &retval, in php_userstreamop_write()
648 if (call_result == SUCCESS && retval != NULL) { in php_userstreamop_write()
649 convert_to_long(retval); in php_userstreamop_write()
650 didwrite = Z_LVAL_P(retval); in php_userstreamop_write()
664 if (retval) in php_userstreamop_write()
665 zval_ptr_dtor(&retval); in php_userstreamop_write()
673 zval *retval = NULL; in php_userstreamop_read() local
691 &retval, in php_userstreamop_read()
695 if (call_result == SUCCESS && retval != NULL) { in php_userstreamop_read()
696 convert_to_string(retval); in php_userstreamop_read()
697 didread = Z_STRLEN_P(retval); in php_userstreamop_read()
704 memcpy(buf, Z_STRVAL_P(retval), didread); in php_userstreamop_read()
711 if (retval) { in php_userstreamop_read()
712 zval_ptr_dtor(&retval); in php_userstreamop_read()
713 retval = NULL; in php_userstreamop_read()
723 &retval, in php_userstreamop_read()
726 if (call_result == SUCCESS && retval != NULL && zval_is_true(retval)) { in php_userstreamop_read()
736 if (retval) { in php_userstreamop_read()
737 zval_ptr_dtor(&retval); in php_userstreamop_read()
738 retval = NULL; in php_userstreamop_read()
747 zval *retval = NULL; in php_userstreamop_close() local
757 &retval, in php_userstreamop_close()
760 if (retval) in php_userstreamop_close()
761 zval_ptr_dtor(&retval); in php_userstreamop_close()
773 zval *retval = NULL; in php_userstreamop_flush() local
784 &retval, in php_userstreamop_flush()
787 if (call_result == SUCCESS && retval != NULL && zval_is_true(retval)) in php_userstreamop_flush()
792 if (retval) in php_userstreamop_flush()
793 zval_ptr_dtor(&retval); in php_userstreamop_flush()
801 zval *retval = NULL; in php_userstreamop_seek() local
822 &retval, in php_userstreamop_seek()
834 if (retval) in php_userstreamop_seek()
835 zval_ptr_dtor(&retval); in php_userstreamop_seek()
838 } else if (call_result == SUCCESS && retval != NULL && zval_is_true(retval)) { in php_userstreamop_seek()
844 if (retval) { in php_userstreamop_seek()
845 zval_ptr_dtor(&retval); in php_userstreamop_seek()
846 retval = NULL; in php_userstreamop_seek()
859 &retval, in php_userstreamop_seek()
862 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_LONG) { in php_userstreamop_seek()
863 *newoffs = Z_LVAL_P(retval); in php_userstreamop_seek()
872 if (retval) { in php_userstreamop_seek()
873 zval_ptr_dtor(&retval); in php_userstreamop_seek()
928 zval *retval = NULL; in php_userstreamop_stat() local
938 &retval, in php_userstreamop_stat()
941 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_ARRAY) { in php_userstreamop_stat()
942 if (SUCCESS == statbuf_from_array(retval, ssb TSRMLS_CC)) in php_userstreamop_stat()
951 if (retval) in php_userstreamop_stat()
952 zval_ptr_dtor(&retval); in php_userstreamop_stat()
960 zval *retval = NULL; in php_userstreamop_set_option() local
970 …call_result = call_user_function_ex(NULL, &us->object, &func_name, &retval, 0, NULL, 0, NULL TSRML… in php_userstreamop_set_option()
971 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_BOOL) { in php_userstreamop_set_option()
972 ret = zval_is_true(retval) ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; in php_userstreamop_set_option()
1008 &retval, in php_userstreamop_set_option()
1011 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) == IS_BOOL) { in php_userstreamop_set_option()
1012 ret = !Z_LVAL_P(retval); in php_userstreamop_set_option()
1047 &retval, in php_userstreamop_set_option()
1049 if (call_result == SUCCESS && retval != NULL) { in php_userstreamop_set_option()
1050 if (Z_TYPE_P(retval) == IS_BOOL) { in php_userstreamop_set_option()
1051 ret = Z_LVAL_P(retval) ? PHP_STREAM_OPTION_RETURN_OK : in php_userstreamop_set_option()
1116 &retval, in php_userstreamop_set_option()
1123 } else if (retval && zend_is_true(retval)) { in php_userstreamop_set_option()
1141 if (retval) { in php_userstreamop_set_option()
1142 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1508 zval *retval = NULL; in php_userstreamop_readdir() local
1523 &retval, in php_userstreamop_readdir()
1527 if (call_result == SUCCESS && retval != NULL && Z_TYPE_P(retval) != IS_BOOL) { in php_userstreamop_readdir()
1528 convert_to_string(retval); in php_userstreamop_readdir()
1529 PHP_STRLCPY(ent->d_name, Z_STRVAL_P(retval), sizeof(ent->d_name), Z_STRLEN_P(retval)); in php_userstreamop_readdir()
1537 if (retval) in php_userstreamop_readdir()
1538 zval_ptr_dtor(&retval); in php_userstreamop_readdir()
1546 zval *retval = NULL; in php_userstreamop_closedir() local
1556 &retval, in php_userstreamop_closedir()
1559 if (retval) in php_userstreamop_closedir()
1560 zval_ptr_dtor(&retval); in php_userstreamop_closedir()
1572 zval *retval = NULL; in php_userstreamop_rewinddir() local
1580 &retval, in php_userstreamop_rewinddir()
1583 if (retval) in php_userstreamop_rewinddir()
1584 zval_ptr_dtor(&retval); in php_userstreamop_rewinddir()
1594 zval *retval = NULL; in php_userstreamop_cast() local
1617 &retval, in php_userstreamop_cast()
1626 if (retval == NULL || !zend_is_true(retval)) { in php_userstreamop_cast()
1629 php_stream_from_zval_no_verify(intstream, &retval); in php_userstreamop_cast()
1644 if (retval) { in php_userstreamop_cast()
1645 zval_ptr_dtor(&retval); in php_userstreamop_cast()