Manual do PHP
Anterior | Apêndice B. Migrating from PHP 5.1.x to PHP 5.2.x | Próxima

# New Parameters

Some functions were given new parameters in PHP 5.2.x:

PHP Core:

- base64_decode() - added `strict`

- setcookie() - added `httponly`

- setrawcookie() - added `httponly`

- session_set_cookie_params() - added `httponly`

- memory_get_usage() - added `real_usage`

curl:

- curl_multi_info_read() - added `msgs_in_queue`

imap:

- imap_open() - added `n_retries`

- imap_reopen() - added `n_retries`

mbstring:

- mb_strrpos() - added `offset`

  Atenção
  The `offset` parameter was put in the position the `encoding` parameter used to be. Backward compatibility has been provided by allowing `encoding` to be specified as the third parameter. Using this backward compatibility mode is not recommended because it will be removed in a future release of PHP.

ming:

- swfmovie::streamMP3() - added `skip` in PHP 5.2.1

openssl:

- openssl_verify() - added `signature_algo`

pgsql:

- pg_escape_bytea() - added `connection`

- pg_escape_string() - added `connection`

simplexml:

- SimpleXMLElement::__construct() - added `is_prefix`

- SimpleXMLElement::attributes() - added `is_prefix`

- SimpleXMLElement::children() - added `is_prefix`

- simplexml_load_file() - added `is_prefix`

- simplexml_load_string() - added `is_prefix`

spl:

- array iterator_to_array(Traversable it [, bool use_keys = true]) - added `use_keys` in PHP 5.2.1

xmlreader:

- XMLReader::open() - added `encoding` and `options`

- XMLReader::XML() - added `encoding` and `options`

Anterior | Principal | Próxima
Changes in PHP datetime support | Acima | New Functions