Lines Matching refs:to_zval
124 static gdIOCtx *create_stream_context_from_zval(zval *to_zval);
1922 zval *to_zval = NULL; in PHP_FUNCTION() local
1924 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l!", &imgind, gd_image_ce, &to_zval, &foreground_c… in PHP_FUNCTION()
1930 if (to_zval != NULL) { in PHP_FUNCTION()
1931 ctx = create_stream_context_from_zval(to_zval); in PHP_FUNCTION()
1979 zval *to_zval = NULL; in PHP_FUNCTION() local
1981 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!b", &imgind, gd_image_ce, &to_zval, &compressed) =… in PHP_FUNCTION()
1987 if (to_zval != NULL) { in PHP_FUNCTION()
1988 ctx = create_stream_context_from_zval(to_zval); in PHP_FUNCTION()
4045 static gdIOCtx *create_stream_context_from_zval(zval *to_zval) { in create_stream_context_from_zval() argument
4049 if (Z_TYPE_P(to_zval) == IS_RESOURCE) { in create_stream_context_from_zval()
4050 php_stream_from_zval_no_verify(stream, to_zval); in create_stream_context_from_zval()
4055 } else if (Z_TYPE_P(to_zval) == IS_STRING) { in create_stream_context_from_zval()
4056 if (CHECK_ZVAL_NULL_PATH(to_zval)) { in create_stream_context_from_zval()
4061 stream = php_stream_open_wrapper(Z_STRVAL_P(to_zval), "wb", REPORT_ERRORS|IGNORE_PATH, NULL); in create_stream_context_from_zval()
4066 …_type_error(2, "must be a file name or a stream resource, %s given", zend_zval_type_name(to_zval)); in create_stream_context_from_zval()
4104 zval *to_zval = NULL; in _php_image_output_ctx() local
4107 if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!", &imgind, gd_image_ce, &to_zval) == FAILURE) { in _php_image_output_ctx()
4111 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!ll", &imgind, gd_image_ce, &to_zval, &quality, &ba… in _php_image_output_ctx()
4115 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!ll", &imgind, gd_image_ce, &to_zval, &quality, &sp… in _php_image_output_ctx()
4119 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|z!l", &imgind, gd_image_ce, &to_zval, &quality) == F… in _php_image_output_ctx()
4126 if (to_zval != NULL) { in _php_image_output_ctx()
4127 ctx = create_stream_context_from_zval(to_zval); in _php_image_output_ctx()