New Parameters
Some functions were given new, optional, parameters in PHP 5.2.x:
PHP Core:
-
htmlentities()
- added
double_encode
in PHP 5.2.3. -
htmlspecialchars()
- added
double_encode
in PHP 5.2.3. -
base64_decode()
- added
strict
-
setcookie()
- added
httponly
-
setrawcookie()
- added
httponly
-
session_set_cookie_params()
- added
httponly
-
memory_get_usage()
- added
real_usage
-
get_loaded_extensions()
- added
zend_extensions
in PHP 5.2.4
curl:
-
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
offset
WarningThe
offset
parameter was put in the position theencoding
parameter used to be. Backward compatibility has been provided by allowingencoding
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_verify()
- added
signature_algo
-
pg_escape_bytea()
- added
connection
-
pg_escape_string()
- added
connection
-
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::open()
- added
encoding
andoptions
-
XMLReader::XML()
- added
encoding
andoptions
-
xmlwriter_write_element()
- the
content
became optional in PHP 5.2.3 -
xmlwriter_write_element_ns()
- the
content
became optional in PHP 5.2.3
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-migration52.parameters.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.