Lines Matching refs:retval
307 zval retval; in user_stream_create_object() local
312 fci.retval = &retval; in user_stream_create_object()
328 zval_ptr_dtor(&retval); in user_stream_create_object()
599 zval retval; in php_userstreamop_write() local
614 &retval, in php_userstreamop_write()
626 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_write()
627 convert_to_long(&retval); in php_userstreamop_write()
628 didwrite = Z_LVAL(retval); in php_userstreamop_write()
642 zval_ptr_dtor(&retval); in php_userstreamop_write()
650 zval retval; in php_userstreamop_read() local
665 &retval, in php_userstreamop_read()
676 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_read()
677 convert_to_string(&retval); in php_userstreamop_read()
678 didread = Z_STRLEN(retval); in php_userstreamop_read()
685 memcpy(buf, Z_STRVAL(retval), didread); in php_userstreamop_read()
691 zval_ptr_dtor(&retval); in php_userstreamop_read()
692 ZVAL_UNDEF(&retval); in php_userstreamop_read()
701 &retval, in php_userstreamop_read()
704 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) { in php_userstreamop_read()
714 zval_ptr_dtor(&retval); in php_userstreamop_read()
723 zval retval; in php_userstreamop_close() local
733 &retval, in php_userstreamop_close()
736 zval_ptr_dtor(&retval); in php_userstreamop_close()
750 zval retval; in php_userstreamop_flush() local
761 &retval, in php_userstreamop_flush()
764 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) in php_userstreamop_flush()
769 zval_ptr_dtor(&retval); in php_userstreamop_flush()
778 zval retval; in php_userstreamop_seek() local
793 &retval, in php_userstreamop_seek()
806 zval_ptr_dtor(&retval); in php_userstreamop_seek()
809 } else if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF && zval_is_true(&retval)) { in php_userstreamop_seek()
815 zval_ptr_dtor(&retval); in php_userstreamop_seek()
816 ZVAL_UNDEF(&retval); in php_userstreamop_seek()
828 &retval, in php_userstreamop_seek()
831 if (call_result == SUCCESS && Z_TYPE(retval) == IS_LONG) { in php_userstreamop_seek()
832 *newoffs = Z_LVAL(retval); in php_userstreamop_seek()
841 zval_ptr_dtor(&retval); in php_userstreamop_seek()
888 zval retval; in php_userstreamop_stat() local
898 &retval, in php_userstreamop_stat()
901 if (call_result == SUCCESS && Z_TYPE(retval) == IS_ARRAY) { in php_userstreamop_stat()
902 if (SUCCESS == statbuf_from_array(&retval, ssb)) in php_userstreamop_stat()
911 zval_ptr_dtor(&retval); in php_userstreamop_stat()
920 zval retval; in php_userstreamop_set_option() local
929 …unction_ex(NULL, Z_ISUNDEF(us->object)? NULL : &us->object, &func_name, &retval, 0, NULL, 0, NULL); in php_userstreamop_set_option()
930 if (call_result == SUCCESS && (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE)) { in php_userstreamop_set_option()
931 ret = zval_is_true(&retval) ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; in php_userstreamop_set_option()
938 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
966 &retval, in php_userstreamop_set_option()
969 if (call_result == SUCCESS && (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE)) { in php_userstreamop_set_option()
970 ret = (Z_TYPE(retval) == IS_FALSE); in php_userstreamop_set_option()
982 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1007 &retval, in php_userstreamop_set_option()
1009 if (call_result == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { in php_userstreamop_set_option()
1010 if (Z_TYPE(retval) == IS_FALSE || Z_TYPE(retval) == IS_TRUE) { in php_userstreamop_set_option()
1011 ret = (Z_TYPE(retval) == IS_TRUE) ? PHP_STREAM_OPTION_RETURN_OK : in php_userstreamop_set_option()
1023 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1071 &retval, in php_userstreamop_set_option()
1078 } else if (Z_TYPE(retval) != IS_UNDEF && zend_is_true(&retval)) { in php_userstreamop_set_option()
1084 zval_ptr_dtor(&retval); in php_userstreamop_set_option()
1409 zval retval; in php_userstreamop_readdir() local
1424 &retval, in php_userstreamop_readdir()
1428 if (call_result == SUCCESS && Z_TYPE(retval) != IS_FALSE && Z_TYPE(retval) != IS_TRUE) { in php_userstreamop_readdir()
1429 convert_to_string(&retval); in php_userstreamop_readdir()
1430 PHP_STRLCPY(ent->d_name, Z_STRVAL(retval), sizeof(ent->d_name), Z_STRLEN(retval)); in php_userstreamop_readdir()
1438 zval_ptr_dtor(&retval); in php_userstreamop_readdir()
1447 zval retval; in php_userstreamop_closedir() local
1457 &retval, in php_userstreamop_closedir()
1460 zval_ptr_dtor(&retval); in php_userstreamop_closedir()
1473 zval retval; in php_userstreamop_rewinddir() local
1481 &retval, in php_userstreamop_rewinddir()
1484 zval_ptr_dtor(&retval); in php_userstreamop_rewinddir()
1495 zval retval; in php_userstreamop_cast() local
1515 &retval, in php_userstreamop_cast()
1524 if (Z_ISUNDEF(retval) || !zend_is_true(&retval)) { in php_userstreamop_cast()
1527 php_stream_from_zval_no_verify(intstream, &retval); in php_userstreamop_cast()
1542 zval_ptr_dtor(&retval); in php_userstreamop_cast()