Lines Matching refs:resource
341 php_url *resource; in PHP_FUNCTION() local
348 resource = php_url_parse_ex(str, str_len); in PHP_FUNCTION()
349 if (resource == NULL) { in PHP_FUNCTION()
357 if (resource->scheme != NULL) RETVAL_STRING(resource->scheme); in PHP_FUNCTION()
360 if (resource->host != NULL) RETVAL_STRING(resource->host); in PHP_FUNCTION()
363 if (resource->port != 0) RETVAL_LONG(resource->port); in PHP_FUNCTION()
366 if (resource->user != NULL) RETVAL_STRING(resource->user); in PHP_FUNCTION()
369 if (resource->pass != NULL) RETVAL_STRING(resource->pass); in PHP_FUNCTION()
372 if (resource->path != NULL) RETVAL_STRING(resource->path); in PHP_FUNCTION()
375 if (resource->query != NULL) RETVAL_STRING(resource->query); in PHP_FUNCTION()
378 if (resource->fragment != NULL) RETVAL_STRING(resource->fragment); in PHP_FUNCTION()
391 if (resource->scheme != NULL) in PHP_FUNCTION()
392 add_assoc_string(return_value, "scheme", resource->scheme); in PHP_FUNCTION()
393 if (resource->host != NULL) in PHP_FUNCTION()
394 add_assoc_string(return_value, "host", resource->host); in PHP_FUNCTION()
395 if (resource->port != 0) in PHP_FUNCTION()
396 add_assoc_long(return_value, "port", resource->port); in PHP_FUNCTION()
397 if (resource->user != NULL) in PHP_FUNCTION()
398 add_assoc_string(return_value, "user", resource->user); in PHP_FUNCTION()
399 if (resource->pass != NULL) in PHP_FUNCTION()
400 add_assoc_string(return_value, "pass", resource->pass); in PHP_FUNCTION()
401 if (resource->path != NULL) in PHP_FUNCTION()
402 add_assoc_string(return_value, "path", resource->path); in PHP_FUNCTION()
403 if (resource->query != NULL) in PHP_FUNCTION()
404 add_assoc_string(return_value, "query", resource->query); in PHP_FUNCTION()
405 if (resource->fragment != NULL) in PHP_FUNCTION()
406 add_assoc_string(return_value, "fragment", resource->fragment); in PHP_FUNCTION()
408 php_url_free(resource); in PHP_FUNCTION()