diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 2 | ||||
-rw-r--r-- | includes/common.inc | 45 | ||||
-rw-r--r-- | includes/database/database.inc | 4 | ||||
-rw-r--r-- | includes/database/schema.inc | 4 | ||||
-rw-r--r-- | includes/entity.inc | 2 | ||||
-rw-r--r-- | includes/xmlrpcs.inc | 4 |
6 files changed, 29 insertions, 32 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index d8120cba3..e1b447cfd 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -8,7 +8,7 @@ /** * The current system version. */ -define('VERSION', '7.29'); +define('VERSION', '7.30-dev'); /** * Core API compatibility. diff --git a/includes/common.inc b/includes/common.inc index e1a1673d7..477ecc0e2 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -544,37 +544,32 @@ function drupal_get_destination() { } /** - * Parses a system URL string into an associative array suitable for url(). + * Parses a URL string into its path, query, and fragment components. * - * This function should only be used for URLs that have been generated by the - * system, such as via url(). It should not be used for URLs that come from - * external sources, or URLs that link to external resources. + * This function splits both internal paths like @code node?b=c#d @endcode and + * external URLs like @code https://example.com/a?b=c#d @endcode into their + * component parts. See + * @link http://tools.ietf.org/html/rfc3986#section-3 RFC 3986 @endlink for an + * explanation of what the component parts are. * - * The returned array contains a 'path' that may be passed separately to url(). - * For example: - * @code - * $options = drupal_parse_url($_GET['destination']); - * $my_url = url($options['path'], $options); - * $my_link = l('Example link', $options['path'], $options); - * @endcode + * Note that, unlike the RFC, when passed an external URL, this function + * groups the scheme, authority, and path together into the path component. * - * This is required, because url() does not support relative URLs containing a - * query string or fragment in its $path argument. Instead, any query string - * needs to be parsed into an associative query parameter array in - * $options['query'] and the fragment into $options['fragment']. - * - * @param $url - * The URL string to parse, f.e. $_GET['destination']. + * @param string $url + * The internal path or external URL string to parse. * - * @return - * An associative array containing the keys: - * - 'path': The path of the URL. If the given $url is external, this includes - * the scheme and host. - * - 'query': An array of query parameters of $url, if existent. - * - 'fragment': The fragment of $url, if existent. + * @return array + * An associative array containing: + * - path: The path component of $url. If $url is an external URL, this + * includes the scheme, authority, and path. + * - query: An array of query parameters from $url, if they exist. + * - fragment: The fragment component from $url, if it exists. * - * @see url() * @see drupal_goto() + * @see l() + * @see url() + * @see http://tools.ietf.org/html/rfc3986 + * * @ingroup php_wrappers */ function drupal_parse_url($url) { diff --git a/includes/database/database.inc b/includes/database/database.inc index ad78ac0b6..f78098bc0 100644 --- a/includes/database/database.inc +++ b/includes/database/database.inc @@ -2832,7 +2832,7 @@ function db_drop_table($table) { * will be set to the value of the key in all rows. This is most useful for * creating NOT NULL columns with no default value in existing tables. * @param $keys_new - * Optional keys and indexes specification to be created on the table along + * (optional) Keys and indexes specification to be created on the table along * with adding the field. The format is the same as a table specification, but * without the 'fields' element. If you are adding a type 'serial' field, you * MUST specify at least one key or index including it in this array. See @@ -3012,7 +3012,7 @@ function db_drop_index($table, $name) { * @param $spec * The field specification for the new field. * @param $keys_new - * Optional keys and indexes specification to be created on the table along + * (optional) Keys and indexes specification to be created on the table along * with changing the field. The format is the same as a table specification * but without the 'fields' element. */ diff --git a/includes/database/schema.inc b/includes/database/schema.inc index d3943b29b..68843a49c 100644 --- a/includes/database/schema.inc +++ b/includes/database/schema.inc @@ -416,7 +416,7 @@ abstract class DatabaseSchema implements QueryPlaceholderInterface { * This is most useful for creating NOT NULL columns with no default * value in existing tables. * @param $keys_new - * Optional keys and indexes specification to be created on the + * (optional) Keys and indexes specification to be created on the * table along with adding the field. The format is the same as a * table specification but without the 'fields' element. If you are * adding a type 'serial' field, you MUST specify at least one key @@ -630,7 +630,7 @@ abstract class DatabaseSchema implements QueryPlaceholderInterface { * @param $spec * The field specification for the new field. * @param $keys_new - * Optional keys and indexes specification to be created on the + * (optional) Keys and indexes specification to be created on the * table along with changing the field. The format is the same as a * table specification but without the 'fields' element. * diff --git a/includes/entity.inc b/includes/entity.inc index dc43e730a..203ed87f9 100644 --- a/includes/entity.inc +++ b/includes/entity.inc @@ -46,7 +46,7 @@ interface DrupalEntityControllerInterface { class DrupalDefaultEntityController implements DrupalEntityControllerInterface { /** - * Static cache of entities. + * Static cache of entities, keyed by entity ID. * * @var array */ diff --git a/includes/xmlrpcs.inc b/includes/xmlrpcs.inc index 118f652d2..8655c05b0 100644 --- a/includes/xmlrpcs.inc +++ b/includes/xmlrpcs.inc @@ -9,7 +9,9 @@ * Invokes XML-RPC methods on this server. * * @param array $callbacks - * Array of external XML-RPC method names with the callbacks they map to. + * Either an associative array of external XML-RPC method names as keys with + * the callbacks they map to as values, or a more complex structure + * describing XML-RPC callbacks as returned from hook_xmlrpc(). */ function xmlrpc_server($callbacks) { $xmlrpc_server = new stdClass(); |