Migration52/parameters-Phpdoc专题
New Parameters
Some functions were given new, optional, parameters in PHP 5.2.x:
PHP Core:
- htmlentities -
added
double_encodein PHP 5.2.3. - <span
class="function">htmlspecialchars - added
double_encodein PHP 5.2.3. - <span
class="function">base64_decode - added
strict - setcookie -
added
httponly - setrawcookie -
added
httponly - <span
class="function">session_set_cookie_params - added
httponly - <span
class="function">memory_get_usage - added
real_usage - <span
class="function">get_loaded_extensions - added
zend_extensionsin PHP 5.2.4
curl:
- <span
class="function">curl_multi_info_read - added
msgs_in_queue
- date - added "u" (milliseconds) format character in PHP 5.2.2
imap:
- imap_open -
added
n_retries - imap_reopen -
added
n_retries
- mb_strrpos -
added
offsetWarning Theoffsetparameter was put in the position theencodingparameter used to be. Backward compatibility has been provided by allowingencodingto 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:
- <span
class="function">SWFMovie::streamMP3 - added
skipin PHP 5.2.1
- <span
class="function">openssl_verify - added
signature_algo
- <span
class="function">pg_escape_bytea - added
connection - <span
class="function">pg_escape_string - added
connection
- <span
class="function">SimpleXMLElement::__construct - added
is_prefix - <span
class="function">SimpleXMLElement::attributes - added
is_prefix - <span
class="function">SimpleXMLElement::children - added
is_prefix - <span
class="function">simplexml_load_file - added
is_prefix - <span
class="function">simplexml_load_string - added
is_prefix
spl:
- array iterator_to_array(Traversable it [,
bool use_keys = true]) - added
use_keysin PHP 5.2.1
- <span
class="function">XMLReader::open - added
encodingandoptions - <span
class="function">XMLReader::XML - added
encodingandoptions
- <span
class="function">xmlwriter_write_element - the
contentbecame optional in PHP 5.2.3 - <span
class="function">xmlwriter_write_element_ns - the
contentbecame optional in PHP 5.2.3