Lines Matching refs:resource

335 	php_url *resource;  in PHP_FUNCTION()  local
346 resource = php_url_parse_ex2(str, str_len, &has_port); in PHP_FUNCTION()
347 if (resource == NULL) { in PHP_FUNCTION()
355 if (resource->scheme != NULL) RETVAL_STR_COPY(resource->scheme); in PHP_FUNCTION()
358 if (resource->host != NULL) RETVAL_STR_COPY(resource->host); in PHP_FUNCTION()
361 if (has_port) RETVAL_LONG(resource->port); in PHP_FUNCTION()
364 if (resource->user != NULL) RETVAL_STR_COPY(resource->user); in PHP_FUNCTION()
367 if (resource->pass != NULL) RETVAL_STR_COPY(resource->pass); in PHP_FUNCTION()
370 if (resource->path != NULL) RETVAL_STR_COPY(resource->path); in PHP_FUNCTION()
373 if (resource->query != NULL) RETVAL_STR_COPY(resource->query); in PHP_FUNCTION()
376 if (resource->fragment != NULL) RETVAL_STR_COPY(resource->fragment); in PHP_FUNCTION()
389 if (resource->scheme != NULL) { in PHP_FUNCTION()
390 ZVAL_STR_COPY(&tmp, resource->scheme); in PHP_FUNCTION()
393 if (resource->host != NULL) { in PHP_FUNCTION()
394 ZVAL_STR_COPY(&tmp, resource->host); in PHP_FUNCTION()
398 ZVAL_LONG(&tmp, resource->port); in PHP_FUNCTION()
401 if (resource->user != NULL) { in PHP_FUNCTION()
402 ZVAL_STR_COPY(&tmp, resource->user); in PHP_FUNCTION()
405 if (resource->pass != NULL) { in PHP_FUNCTION()
406 ZVAL_STR_COPY(&tmp, resource->pass); in PHP_FUNCTION()
409 if (resource->path != NULL) { in PHP_FUNCTION()
410 ZVAL_STR_COPY(&tmp, resource->path); in PHP_FUNCTION()
413 if (resource->query != NULL) { in PHP_FUNCTION()
414 ZVAL_STR_COPY(&tmp, resource->query); in PHP_FUNCTION()
417 if (resource->fragment != NULL) { in PHP_FUNCTION()
418 ZVAL_STR_COPY(&tmp, resource->fragment); in PHP_FUNCTION()
422 php_url_free(resource); in PHP_FUNCTION()