Lines Matching refs:resource

336 	php_url *resource;  in PHP_FUNCTION()  local
343 resource = php_url_parse_ex(str, str_len); in PHP_FUNCTION()
344 if (resource == NULL) { in PHP_FUNCTION()
352 if (resource->scheme != NULL) RETVAL_STRING(resource->scheme, 1); in PHP_FUNCTION()
355 if (resource->host != NULL) RETVAL_STRING(resource->host, 1); in PHP_FUNCTION()
358 if (resource->port != 0) RETVAL_LONG(resource->port); in PHP_FUNCTION()
361 if (resource->user != NULL) RETVAL_STRING(resource->user, 1); in PHP_FUNCTION()
364 if (resource->pass != NULL) RETVAL_STRING(resource->pass, 1); in PHP_FUNCTION()
367 if (resource->path != NULL) RETVAL_STRING(resource->path, 1); in PHP_FUNCTION()
370 if (resource->query != NULL) RETVAL_STRING(resource->query, 1); in PHP_FUNCTION()
373 if (resource->fragment != NULL) RETVAL_STRING(resource->fragment, 1); in PHP_FUNCTION()
386 if (resource->scheme != NULL) in PHP_FUNCTION()
387 add_assoc_string(return_value, "scheme", resource->scheme, 1); in PHP_FUNCTION()
388 if (resource->host != NULL) in PHP_FUNCTION()
389 add_assoc_string(return_value, "host", resource->host, 1); in PHP_FUNCTION()
390 if (resource->port != 0) in PHP_FUNCTION()
391 add_assoc_long(return_value, "port", resource->port); in PHP_FUNCTION()
392 if (resource->user != NULL) in PHP_FUNCTION()
393 add_assoc_string(return_value, "user", resource->user, 1); in PHP_FUNCTION()
394 if (resource->pass != NULL) in PHP_FUNCTION()
395 add_assoc_string(return_value, "pass", resource->pass, 1); in PHP_FUNCTION()
396 if (resource->path != NULL) in PHP_FUNCTION()
397 add_assoc_string(return_value, "path", resource->path, 1); in PHP_FUNCTION()
398 if (resource->query != NULL) in PHP_FUNCTION()
399 add_assoc_string(return_value, "query", resource->query, 1); in PHP_FUNCTION()
400 if (resource->fragment != NULL) in PHP_FUNCTION()
401 add_assoc_string(return_value, "fragment", resource->fragment, 1); in PHP_FUNCTION()
403 php_url_free(resource); in PHP_FUNCTION()