As alterações a seguir foram feitas em funções de extensões nativas
Version | Function | Description |
---|---|---|
PHP 4.3.3 | ftruncate | Antes desta versão, ftruncate retornava integer no valor 1 no caso de sucesso, ao invés de boolean true. |
PECL OCI8 1.4 | oci_set_prefetch | Before this release, rows must be >= 1. |
PECL OCI8 1.3.4 | oci_set_prefetch | Before this release, prefetching was limited to the lesser of rows rows and 1024 * rows bytes. The byte size restriction has now been removed. |
PECL 3.0.0 | IntlDateFormatter::format | Support for providing IntlCalendar objects to the datetime parameter was added. |
Desde o 5.0.0 | get_class | O nome da classe é retornado em sua notação original. |
get_class | O parâmetro object é opcional se chamado para um método do objeto. | |
get_parent_class | O parâmetro object é opcional se chamado de um método de objeto. | |
Desde o 4.0.5 | get_parent_class | Se object é uma string, retorna o nome da classe pai da classe com este nome. |
Antes do 5.1.0 | get_parent_class | Se chamado sem parâmetro fora do objeto, esta função retornaria null com um aviso. |
antes do 4.2.0 | get_object_vars | Se as variáveis declaradas na classe da qual o object é uma instância, não foram assimilado um valor, estes não serão retornados no array |
8.0.3 | DOMDocument::getElementsByTagNameNS | namespace is nullable now. |
DOMElement::getElementsByTagNameNS | namespace is nullable now. | |
DOMImplementation::createDocument | namespace is now nullable. | |
finfo::__construct | magic_database is nullable now. | |
finfo_open | magic_database is nullable now. | |
SoapClient::__setLocation | location is nullable now. | |
SoapVar::__construct | typeName, typeNamespace, nodeName,and nodeNamespace are nullable now. | |
8.0.0, PECL OCI8 3.0.0 | OCICollection::append | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. |
OCICollection::assign | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::assignElem | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::free | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::getElem | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::max | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::size | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::trim | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCILob::append | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::close | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::eof | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::erase | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::export | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::flush | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::free | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::getBuffering | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::import | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::load | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::read | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::rewind | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::save | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::saveFile | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::seek | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::setBuffering | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::size | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::tell | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::truncate | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::write | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::writeToFile | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
8.0.0 / 1.18.1 | ZipArchive::addGlob | "comp_method", "comp_flags", "enc_method" and "enc_password" in options were added. |
8.0.0 / 1.18.0 | ZipArchive::addEmptyDir | flags was added. |
ZipArchive::addFile | flags was added. | |
ZipArchive::addFromString | flags was added. | |
ZipArchive::addGlob | "flags" in options was added. | |
ZipArchive::getStatusString | This method can be called on closed archive. | |
ZipArchive::getStatusString | This method no longer returns false on failure. | |
8.0.0 | DOMImplementation::createDocument | doctype is now nullable. |
com_event_sink | sink_interface is nullable now. | |
com_get_active_object | codepage is nullable now. | |
curl_multi_errno | The function no longer returns false on failure. | |
curl_multi_errno | multi_handle expects a CurlMultiHandle instance now; previously, a resource was expected. | |
curl_setopt | handle expects a CurlHandle instance now; previously, a resource was expected. | |
curl_share_errno | The function no longer returns false on failure. | |
curl_share_errno | share_handle expects a CurlShareHandle instance now; previously, a resource was expected. | |
enchant_broker_describe | broker expects an EnchantBroker instance now; previoulsy, a resource was expected. | |
enchant_broker_describe | Prior to this version, the function returned false on failure. | |
enchant_broker_dict_exists | broker expects an EnchantBroker instance now; previoulsy, a resource was expected. | |
enchant_broker_free | broker expects an EnchantBroker instance now; previoulsy, a resource was expected. | |
enchant_broker_free_dict | dictionary expects a EnchantDictionary now; previoulsy, a resource was expected. | |
enchant_broker_get_dict_path | broker expects an EnchantBroker instance now; previoulsy, a resource was expected. | |
enchant_broker_get_error | broker expects an EnchantBroker instance now; previoulsy, a resource was expected. | |
enchant_broker_init | On success, this function returns an EnchantBroker instance now; previoulsy, a resource was retured. | |
enchant_broker_list_dicts | broker expects an EnchantBroker instance now; previoulsy, a resource was expected. | |
enchant_broker_list_dicts | Prior to this version, the function returned false on failure. | |
enchant_broker_request_dict | On success, this function returns an EnchantDictionary instance now; previoulsy, a resource was retured. | |
enchant_broker_request_dict | broker expects an EnchantBroker instance now; previoulsy, a resource was expected. | |
enchant_broker_request_pwl_dict | broker expects an EnchantBroker instance now; previoulsy, a resource was expected. | |
enchant_broker_request_pwl_dict | On success, this function returns an EnchantDictionary instance now; previoulsy, a resource was retured. | |
enchant_broker_set_dict_path | broker expects an EnchantBroker instance now; previoulsy, a resource was expected. | |
enchant_broker_set_ordering | broker expects an EnchantBroker instance now; previoulsy, a resource was expected. | |
enchant_dict_add | dictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected. | |
enchant_dict_add_to_session | dictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected. | |
enchant_dict_check | dictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected. | |
enchant_dict_describe | Prior to this version, the function returned false on failure. | |
enchant_dict_describe | dictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected. | |
enchant_dict_get_error | dictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected. | |
enchant_dict_is_added | dictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected. | |
enchant_dict_quick_check | dictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected. | |
enchant_dict_store_replacement | dictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected. | |
enchant_dict_suggest | dictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected. | |
finfo_buffer | context is nullable now. | |
finfo_file | context is nullable now. | |
hash_update_file | stream_context is now nullable. | |
iconv_mime_decode | encoding is nullable now. | |
iconv_mime_decode_headers | encoding is nullable now. | |
iconv_strlen | encoding is nullable now. | |
iconv_strpos | encoding is nullable now. | |
iconv_strrpos | encoding is nullable now. | |
iconv_substr | length and encoding are nullable now. | |
imap_append | options and internal_date are now nullable. | |
imap_headerinfo | The unused defaulthost parameter has been removed. | |
imap_mail | additional_headers, cc, bcc, and return_path are now nullable. | |
imap_sort | reverse is now bool instead of int. | |
imap_sort | search_criteria and charset are now nullable. | |
ldap_add | controls is nullable now; previously, it defaulted to []. | |
ldap_add_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_bind_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_compare | controls is nullable now; previously, it defaulted to []. | |
ldap_delete | controls is nullable now; previously, it defaulted to []. | |
ldap_delete_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_exop_passwd | controls is nullable now; previously, it defaulted to []. | |
ldap_list | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_add | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_del | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_replace | controls is nullable now; previously, it defaulted to []. | |
ldap_modify_batch | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_add_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_del_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_replace_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_read | controls is nullable now; previously, it defaulted to []. | |
ldap_rename | controls is nullable now; previously, it defaulted to []. | |
ldap_rename_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_sasl_bind | dn, password, mech, realm, authc_id, authz_id and props are nullable now. | |
ldap_search | controls is nullable now; previously, it defaulted to []. | |
ldap_set_rebind_proc | callback is nullable now. | |
mb_check_encoding | value and encoding are nullable now. | |
mb_chr | encoding is nullable now. | |
mb_convert_encoding | from_encoding is nullable now. | |
mb_convert_encoding | mb_convert_encoding will now throw a ValueError when to_encoding is passed an invalid encoding. | |
mb_convert_encoding | mb_convert_encoding will now throw a ValueError when from_encoding is passed an invalid encoding. | |
mb_convert_kana | encoding is nullable now. | |
mb_decode_numericentity | encoding is nullable now. | |
mb_detect_order | encoding is nullable now. | |
mb_encode_mimeheader | charset and transfer_encoding are nullable now. | |
mb_encode_numericentity | encoding is nullable now. | |
mb_ereg | This function returns true on success now. Previously, it returned the byte length of the matched string if a match for pattern was found in string and matches was passed. If the optional parameter matches was not passed or the length of the matched string was 0, this function returned 1. | |
mb_ereg_match | options is nullable now. | |
mb_ereg_replace | options is nullable now. | |
mb_ereg_replace_callback | options is nullable now. | |
mb_ereg_search | pattern and options are nullable now. | |
mb_ereg_search_init | pattern and options are nullable now. | |
mb_ereg_search_pos | pattern and options are nullable now. | |
mb_ereg_search_regs | pattern and options are nullable now. | |
mb_eregi | This function returns true on success now. Previously, it returned the byte length of the matched string if a match for pattern was found in string and matches was passed. If the optional parameter matches was not passed or the length of the matched string was 0, this function returned 1. | |
mb_eregi_replace | options is nullable now. | |
mb_get_info | The types "func_overload" and "func_overload_list" are no longer supported. | |
mb_http_input | type is nullable now. | |
mb_http_output | encoding is nullable now. | |
mb_internal_encoding | encoding is nullable now. | |
mb_language | language is nullable now. | |
mb_ord | encoding is nullable now. | |
mb_parse_str | The second parameter was no longer optional. | |
mb_regex_encoding | encoding is nullable now. | |
mb_regex_set_options | If the parameter options is given and not null, the previous options are returned. Formerly, the current options have been returned. | |
mb_regex_set_options | options is nullable now. | |
mb_scrub | encoding is nullable now. | |
mb_send_mail | additional_params is nullable now. | |
mb_str_split | This function no longer returns false on failure. | |
mb_str_split | encoding is nullable now. | |
mb_strcut | encoding is nullable now. | |
mb_strimwidth | encoding is nullable now. | |
mb_stripos | encoding is nullable now. | |
mb_stristr | encoding is nullable now. | |
mb_strlen | encoding is nullable now. | |
mb_strpos | encoding is nullable now. | |
mb_strrchr | encoding is nullable now. | |
mb_strrichr | encoding is nullable now. | |
mb_strripos | encoding is nullable now. | |
mb_strrpos | encoding is nullable now. | |
mb_strrpos | Passing the encoding as the third argument instead of an offset has been removed. | |
mb_strstr | encoding is nullable now. | |
mb_strwidth | encoding is nullable now. | |
mb_substitute_character | Passing an empty string to substitute_character is no longer supported; "none" should be passed instead. | |
mb_substitute_character | encoding is nullable now. | |
mb_substr | encoding is nullable now. | |
mb_substr_count | encoding is nullable now. | |
msg_get_queue | On success, this function returns a SysvMessageQueue instance now; previously, a resource was returned. | |
msg_receive | queue expects a SysvMessageQueue instance now; previously, a resource was expected. | |
msg_remove_queue | queue expects a SysvMessageQueue instance now; previously, a resource was expected. | |
msg_send | queue expects a SysvMessageQueue instance now; previously, a resource was expected. | |
msg_set_queue | queue expects a SysvMessageQueue instance now; previously, a resource was expected. | |
msg_stat_queue | queue expects a SysvMessageQueue instance now; previously, a resource was expected. | |
openssl_csr_export | csr accepts an OpenSSLCertificateSigningRequest instance now; previously, a resource of type OpenSSL X.509 CSR was accepted. | |
openssl_csr_export_to_file | csr accepts an OpenSSLCertificateSigningRequest instance now; previously, a resource of type OpenSSL X.509 CSR was accepted. | |
openssl_csr_get_public_key | csr accepts an OpenSSLCertificateSigningRequest instance now; previously, a resource of type OpenSSL X.509 CSR was accepted. | |
openssl_csr_get_public_key | On success, this function returns an OpenSSLAsymmetricKey instance now; previously, a resource of type OpenSSL key was returned. | |
openssl_csr_get_subject | csr accepts an OpenSSLCertificateSigningRequest instance now; previously, a resource of type OpenSSL X.509 CSR was accepted. | |
openssl_csr_new | private_key accepts an OpenSSLAsymmetricKey instance now; previously, a resource of type OpenSSL key was accepted. | |
openssl_csr_new | On success, this function returns an OpenSSLCertificateSigningRequest instance now; previously, a resource of type OpenSSL X.509 CSR was returned. | |
openssl_csr_sign | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_csr_sign | ca_certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted. | |
openssl_csr_sign | csr accepts an OpenSSLCertificateSigningRequest instance now; previously, a resource of type OpenSSL X.509 CSR was accepted. | |
openssl_csr_sign | On success, this function returns an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was returned. | |
openssl_dh_compute_key | private_key accepts an OpenSSLAsymmetricKey now; previously, a resource of type OpenSSL key was accepted. | |
openssl_free_key | key accepts an OpenSSLAsymmetricKey now; previously, a resource of type OpenSSL key was accepted. | |
openssl_free_key | This function is now deprecated as it doesn't have an effect anymore. | |
openssl_open | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 CSR was accepted. | |
openssl_open | cipher_algo is no longer an optional parameter. | |
openssl_pkcs7_decrypt | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 CSR was accepted. | |
openssl_pkcs7_encrypt | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 CSR was accepted. | |
openssl_pkcs7_sign | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 CSR was accepted. | |
openssl_pkcs7_sign | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 CSR was accepted. | |
openssl_pkcs7_verify | signers_certificates_filename, untrusted_certificates_filename, content and output_filename are nullable now. | |
openssl_pkcs12_export | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_pkcs12_export | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 CSR was accepted. | |
openssl_pkcs12_export_to_file | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 CSR was accepted. | |
openssl_pkcs12_export_to_file | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_pkey_export | key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_pkey_export_to_file | key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_pkey_free | This function is now deprecated as it doesn't have an effect anymore. | |
openssl_pkey_free | key accepts an OpenSSLAsymmetricKey now; previously, a resource of type OpenSSL key was accepted. | |
openssl_pkey_get_details | key accepts an OpenSSLAsymmetricKey now; previously, a resource of type OpenSSL key was accepted. | |
openssl_pkey_get_private | On success, this function returns an OpenSSLAsymmetricKey instance now; previously, a resource of type OpenSSL key was returned. | |
openssl_pkey_get_private | passphrase is nullable now. | |
openssl_pkey_get_private | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_pkey_get_public | On success, this function returns an OpenSSLAsymmetricKey instance now; previously, a resource of type OpenSSL key was returned. | |
openssl_pkey_get_public | public_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_pkey_new | On success, this function returns an OpenSSLAsymmetricKey instance now; previously, a resource of type OpenSSL key was returned. | |
openssl_private_decrypt | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_private_encrypt | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_public_decrypt | public_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_public_encrypt | public_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_random_pseudo_bytes | strong_result is nullable now. | |
openssl_seal | iv is nullable now. | |
openssl_seal | cipher_algo is no longer an optional parameter. | |
openssl_seal | public_key accepts an array of OpenSSLAsymmetricKey instances now; previously, an array of resources of type OpenSSL key was accepted. | |
openssl_sign | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_spki_new | private_key accepts an OpenSSLAsymmetricKey instance now; previously, a resource of type OpenSSL key was accepted. | |
openssl_verify | public_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_x509_check_private_key | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted. | |
openssl_x509_check_private_key | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_x509_checkpurpose | untrusted_certificates_file is nullable now. | |
openssl_x509_checkpurpose | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted. | |
openssl_x509_export | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted. | |
openssl_x509_export_to_file | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted. | |
openssl_x509_fingerprint | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted. | |
openssl_x509_free | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted. | |
openssl_x509_free | This function is now deprecated as it doesn't have an effect anymore. | |
openssl_x509_parse | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted. | |
openssl_x509_read | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted. | |
openssl_x509_read | On success, this function returns an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was returned. | |
openssl_x509_verify | public_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a resource of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_x509_verify | certificate accepts an OpenSSLCertificate instance now; previously, a resource of type OpenSSL X.509 was accepted. | |
sem_acquire | semaphore expects a SysvSemaphore instance now; previously, a resource was expected. | |
sem_get | On success, this function returns a SysvSemaphore instance now; previously, a resource was returned. | |
sem_get | The type of auto_release has been changed from int to bool. | |
sem_release | semaphore expects a SysvSemaphore instance now; previously, a resource was expected. | |
sem_remove | semaphore expects a SysvSemaphore instance now; previously, a resource was expected. | |
shm_attach | On success, this function returns an SysvSharedMemory instance now; previously, a resource was returned. | |
shm_attach | size is nullable now. | |
shm_detach | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shm_get_var | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shm_has_var | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shm_put_var | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shm_remove | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shm_remove_var | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
mysqli_stmt::__construct | query is now nullable. | |
mysqli::begin_transaction | name is now nullable. | |
mysqli::rollback | name is now nullable. | |
ReflectionClass::getConstants | filter has been added. | |
ReflectionClass::getReflectionConstants | filter has been added. | |
ReflectionMethod::getClosure | object is now nullable. | |
ReflectionParameter::getDefaultValue | This method now allows getting the default value of parameters of built-in functions and built-in class methods. Previously, a ReflectionException was thrown. | |
ReflectionParameter::getDefaultValueConstantName | This method now allows getting the default values' constant names of built-in functions and built-in class methods. Previously, a ReflectionException was thrown. | |
ReflectionProperty::getValue | object is nullable now. | |
ReflectionProperty::isInitialized | object is nullable now. | |
SoapClient::__doRequest | The type of oneWay is bool now; formerly it was int. | |
SoapClient::__setCookie | value is now nullable. | |
SoapServer::handle | request is now nullable. | |
XMLReader::getAttribute | This function can no longer return false. | |
XMLReader::getAttributeNs | This function can no longer return false. | |
XMLReader::lookupNamespace | This function can no longer return false. | |
XMLReader::next | name is nullable now. | |
XMLReader::open | XMLReader::open is now declared as static method, but can still be called on an XMLReader instance. | |
XMLReader::XML | XMLReader::XML is now declared as static method, but can still be called on an XMLReader instance. | |
XMLWriter::endAttribute | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::endCdata | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::endComment | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::endDocument | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::endDtd | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::endDtdAttlist | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::endDtdElement | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::endDtdEntity | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::endElement | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::endPi | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::flush | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::flush | This function can no longer return false. | |
XMLWriter::fullEndElement | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::openMemory | This function returns now an XMLWriter instance on success. Previouly, a resource has been returned in this case. | |
XMLWriter::openUri | This function returns now an XMLWriter instance on success. Previouly, a resource has been returned in this case. | |
XMLWriter::outputMemory | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::setIndent | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::setIndentString | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startAttribute | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startAttributeNs | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startAttributeNs | prefix is nullable now. | |
XMLWriter::startCdata | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startComment | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startDocument | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startDtd | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startDtdAttlist | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startDtdElement | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startDtdEntity | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startElement | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startElementNs | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::startPi | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::text | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeAttribute | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeAttributeNs | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeCdata | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeComment | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeDtd | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeDtdAttlist | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeDtdElement | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeDtdEntity | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeDtdEntity | publicId, systemId and notationData are nullable now. | |
XMLWriter::writeElement | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeElementNs | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writePi | writer expects an XMLWriter instance now; previously, a resource was expected. | |
XMLWriter::writeRaw | writer expects an XMLWriter instance now; previously, a resource was expected. | |
ZipArchive::setEncryptionIndex | password is now nullable. | |
ZipArchive::setEncryptionName | password is now nullable. | |
7.4.0 | hash_algos | Support for crc32c has been added. |
idn_to_ascii | The default value of variant is now INTL_IDNA_VARIANT_UTS46 instead of the deprecated INTL_IDNA_VARIANT_2003. | |
idn_to_utf8 | The default value of variant is now INTL_IDNA_VARIANT_UTS46 instead of the deprecated INTL_IDNA_VARIANT_2003. | |
ldap_control_paged_result | This function has been deprecated. | |
ldap_control_paged_result_response | This function has been deprecated. | |
preg_replace_callback | O parâmetro flags foi adicionado. | |
preg_replace_callback_array | The flags parameter was added. | |
str_getcsv | O parâmetro escape agora interpreta uma string vazia como um sinal para desabilitar o mecanismo de escape. Antes, uma string vazia utilizava o valor padrão do parâmetro. | |
SQLite3Stmt::bindParam | param now also supports the @param notation. | |
SQLite3Stmt::bindValue | param now also supports the @param notation. | |
7.3.15, 7.4.3 | curl_setopt | Introduced CURLOPT_HTTP09_ALLOWED . |
7.3.14, 7.4.2 | dba_open | The lmdb driver now supports an additional $mapsize parameter. |
7.3.0 | apache_request_headers | Esta função tornou-se disponível na SAPI FPM. |
curl_setopt | Introduced CURLOPT_ABSTRACT_UNIX_SOCKET, CURLOPT_KEEP_SENDING_ON_ERROR, CURLOPT_PRE_PROXY, CURLOPT_PROXY_CAINFO, CURLOPT_PROXY_CAPATH, CURLOPT_PROXY_CRLFILE, CURLOPT_PROXY_KEYPASSWD, CURLOPT_PROXY_PINNEDPUBLICKEY, CURLOPT_PROXY_SSLCERT, CURLOPT_PROXY_SSLCERTTYPE, CURLOPT_PROXY_SSL_CIPHER_LIST, CURLOPT_PROXY_SSLKEY, CURLOPT_PROXY_SSLKEYTYPE, CURLOPT_PROXY_SSL_OPTIONS, CURLOPT_PROXY_SSL_VERIFYHOST, CURLOPT_PROXY_SSL_VERIFYPEER, CURLOPT_PROXY_SSLVERSION, CURLOPT_PROXY_TLSAUTH_PASSWORD, CURLOPT_PROXY_TLSAUTH_TYPE, CURLOPT_PROXY_TLSAUTH_USERNAME, CURLOPT_SOCKS5_AUTH, CURLOPT_SUPPRESS_CONNECT_HEADERS, CURLOPT_DISALLOW_USERNAME_IN_URL, CURLOPT_DNS_SHUFFLE_ADDRESSES, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, CURLOPT_HAPROXYPROTOCOL, CURLOPT_PROXY_TLS13_CIPHERS, CURLOPT_SSH_COMPRESSION, CURLOPT_TIMEVALUE_LARGE and CURLOPT_TLS13_CIPHERS. | |
getallheaders | Esta função tornou-se disponível na SAPI FPM. | |
is_countable | is_countable has been added. | |
mb_convert_case | Added support for MB_CASE_FOLD, MB_CASE_UPPER_SIMPLE, MB_CASE_LOWER_SIMPLE, MB_CASE_TITLE_SIMPLE, and MB_CASE_FOLD_SIMPLE as mode. | |
var_export | Now exports stdClass objects as an array cast to an object ((object) array( ... )), rather than using the nonexistent method stdClass::__setState. The practical effect is that now stdClass is exportable, and the resulting code will even work on earlier versions of PHP. | |
7.3 | ldap_add | Support for controls added |
ldap_compare | Support for controls added | |
ldap_delete | Support for controls added | |
ldap_exop | Support for serverctrls added | |
ldap_exop_passwd | Support for controls added | |
ldap_list | Support for controls added | |
ldap_mod_add | Support for controls added | |
ldap_mod_del | Support for controls added | |
ldap_mod_replace | Support for controls added | |
ldap_modify_batch | Support for controls added | |
ldap_mod_add_ext | Support for controls added | |
ldap_mod_del_ext | Support for controls added | |
ldap_mod_replace_ext | Support for controls added | |
ldap_parse_result | Support for controls added | |
ldap_read | Support for controls added | |
ldap_rename | Support for controls added | |
ldap_rename_ext | Support for controls added | |
ldap_search | Support for controls added | |
7.2.18, 7.3.5 | substr_compare | offset may now be equal to the length of main_str. |
7.2.0 | array_unique | Se sort_flags for SORT_STRING, o array anterior foi copiado e os elementos não únicos foram removidos (sem empacotar o array em seguida), mas um novo array é criado ao adicionar os novos elementos. Isto pode resultar em índices numéricos diferentes. |
hash_copy | Accept and return HashContext instead of resource. | |
hash_final | Accept HashContext instead of resource. | |
hash_hmac | Usage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) was disabled. | |
hash_hmac_file | Usage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) was disabled. | |
hash_init | Usage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) with HASH_HMAC was disabled. | |
hash_init | Return HashContext instead of resource. | |
hash_pbkdf2 | Usage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) was disabled. | |
hash_update | Accept HashContext instead of resource. | |
hash_update_file | Accept HashContext instead of resource. | |
hash_update_stream | Accept HashContext instead of resource. | |
idn_to_ascii | INTL_IDNA_VARIANT_2003 has been deprecated; use INTL_IDNA_VARIANT_UTS46 instead. | |
idn_to_utf8 | INTL_IDNA_VARIANT_2003 has been deprecated; use INTL_IDNA_VARIANT_UTS46 instead. | |
mb_check_encoding | This function now also accepts an array as value. Formerly, only strings have been supported. | |
mb_convert_encoding | This function now also accepts an array as string. Formerly, only strings have been supported. | |
mb_parse_str | Calling mb_parse_str without the second parameter was deprecated. | |
mb_send_mail | The additional_headers parameter now also accepts an array. | |
openssl_pkcs7_verify | The output_filename parameter was added. | |
password_hash | Suporte para passwords Argon2 usando PASSWORD_ARGON2I foi adicionado. | |
preg_match | The PREG_UNMATCHED_AS_NULL is now supported for the $flags parameter. | |
preg_match_all | The PREG_UNMATCHED_AS_NULL is now supported for the $flags parameter. | |
PDOStatement::debugDumpParams | PDOStatement::debugDumpParams now returns the SQL sent to the database, including the full, raw query (including the replaced placeholders with their bounded values). Note, that this will only be available if emulated prepared statements are turned on. | |
ReflectionClass::getMethods | filter is nullable now. | |
ReflectionClass::getProperties | filter is nullable now. | |
SQLite3::openBlob | The flags parameter has been added, allowing to write BLOBs; formerly only reading was supported. | |
7.1.5 | IntlDateFormatter::format | Support for providing general DateTimeInterface objects to the datetime parameter was added. Formerly, only proper DateTime objects were supported. |
7.1.4 | PDO::sqliteCreateFunction | The flags parameter has been added. |
SQLite3::createFunction | The flags parameter has been added. | |
7.1.0 | grapheme_extract | Support for negative offsets has been added. |
grapheme_stripos | Support for negative offsets has been added. | |
grapheme_strpos | Support for negative offsets has been added. | |
hash_algos | Support for sha512/224, sha512/256, sha3-224, sha3-256, sha3-384 and sha3-512 has been added. | |
iconv_strpos | Support for negative offsets has been added. | |
mb_ereg | mb_ereg will now set matches to an empty array, if nothing matched. Formerly, matches was not modified in that case. | |
mb_ereg_replace | The function checks whether string is valid for the current encoding. | |
mb_ereg_replace | The e modifier has been deprecated. | |
mb_ereg_replace_callback | The function checks whether string is valid for the current encoding. | |
mb_ereg_search_setpos | Support for negative offsets has been added. | |
mb_eregi | mb_eregi will now set matches to an empty array, if nothing matched. Formerly, matches was not modified in that case. | |
mb_eregi_replace | The e modifier has been deprecated. | |
mb_eregi_replace | The function checks whether string is valid for the current encoding. | |
mb_strimwidth | Support for negative starts and widths has been added. | |
mb_stripos | Support for negative offsets has been added. | |
mb_strpos | Support for negative offsets has been added. | |
openssl_csr_new | options now also supports curve_name. | |
openssl_decrypt | The tag and aad parameters were added. | |
openssl_encrypt | The tag, aad and tag_length parameters were added. | |
openssl_pkey_new | The curve_name option was added to make it possible to create EC keys. | |
pcntl_signal | As of PHP 7.1.0 the handler callback is given a second argument containing the siginfo of the specific signal. This data is only supplied if the operating system has the siginfo_t structure. If the OS does not implement siginfo_t NULL is supplied. | |
pcntl_signal_get_handler | pcntl_signal_get_handler has been added. | |
substr_count | Support for negative offsets and lengths has been added. length may also be 0 now. | |
unserialize | The allowed_classes element of options) is now strictly typed, i.e. if anything other than an array or a bool is given, unserialize returns false and issues an E_WARNING. | |
ReflectionType::__toString | ReflectionType::__toString has been deprecated. | |
7.0.11 | iconv_substr | If string is equal to offset characters long, an empty string will be returned. Prior to this version, false was returned in this case. |
7.0.10 | SQLite3::__construct | The filename can now be empty to use a private, temporary on-disk database. |
7.0.7 | curl_multi_setopt | Introduzido CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE, CURLMOPT_MAX_HOST_CONNECTIONS, CURLMOPT_MAX_PIPELINE_LENGTH e CURLMOPT_MAX_TOTAL_CONNECTIONS. |
curl_setopt | Introduced CURL_HTTP_VERSION_2, CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE, CURL_HTTP_VERSION_2TLS, CURL_REDIR_POST_301, CURL_REDIR_POST_302, CURL_REDIR_POST_303, CURL_REDIR_POST_ALL, CURL_VERSION_KERBEROS5, CURL_VERSION_PSL, CURL_VERSION_UNIX_SOCKETS, CURLAUTH_NEGOTIATE, CURLAUTH_NTLM_WB, CURLFTP_CREATE_DIR, CURLFTP_CREATE_DIR_NONE, CURLFTP_CREATE_DIR_RETRY, CURLHEADER_SEPARATE, CURLHEADER_UNIFIED, CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE, CURLMOPT_MAX_HOST_CONNECTIONS, CURLMOPT_MAX_PIPELINE_LENGTH, CURLMOPT_MAX_TOTAL_CONNECTIONS, CURLOPT_CONNECT_TO, CURLOPT_DEFAULT_PROTOCOL, CURLOPT_DNS_INTERFACE, CURLOPT_DNS_LOCAL_IP4, CURLOPT_DNS_LOCAL_IP6, CURLOPT_EXPECT_100_TIMEOUT_MS, CURLOPT_HEADEROPT, CURLOPT_LOGIN_OPTIONS, CURLOPT_PATH_AS_IS, CURLOPT_PINNEDPUBLICKEY, CURLOPT_PIPEWAIT, CURLOPT_PROXY_SERVICE_NAME, CURLOPT_PROXYHEADER, CURLOPT_SASL_IR, CURLOPT_SERVICE_NAME, CURLOPT_SSL_ENABLE_ALPN, CURLOPT_SSL_ENABLE_NPN, CURLOPT_SSL_FALSESTART, CURLOPT_SSL_VERIFYSTATUS, CURLOPT_STREAM_WEIGHT, CURLOPT_TCP_FASTOPEN, CURLOPT_TFTP_NO_OPTIONS, CURLOPT_UNIX_SOCKET_PATH, CURLOPT_XOAUTH2_BEARER, CURLPROTO_SMB, CURLPROTO_SMBS, CURLPROXY_HTTP_1_0, CURLSSH_AUTH_AGENT and CURLSSLOPT_NO_REVOKE. | |
7.0.0 | array_column | Adicionada a habilidade que possibilita o parâmetro input ser um array de objetos. |
dirname | Adicionado o parâmetro opcional levels. | |
gmmktime | O parâmetro is_dst foi removido. | |
mktime | O parâmetro is_dst foi removido. | |
session_regenerate_id | session_regenerate_id salva os dados da sessão antiga antes de encerrar. | |
session_start | O parâmetro options foi adicionado. | |
substr | Se string tiver o comprimento de start, uma string vazia será retornada. Antes dessa versão, retornava false nesse caso. | |
6.0.0 | file | Adicionado suporte às flags FILE_TEXT e FILE_BINARY. |
file_get_contents | O parâmetro use_include_path foi substituído pelo parâmetro flags. | |
file_put_contents | Adicionado suporte às flags FILE_TEXT e FILE_BINARY | |
5.6.0 | array_fill | num agora pode ser zero. Anteriormente, num deveria ser maior que zero. |
array_filter | Adicionado o parâmetro opcional flag e as contantes ARRAY_FILTER_USE_KEY e ARRAY_FILTER_USE_BOTH | |
5.5.8 | DatePeriod::__construct | O tipo de end foi modificado para DateTimeImmutable. Anteriormente era DateTime. |
5.5.4 | fputcsv | O parâmetro escape_char foi adicionado. |
5.5.1 | session_set_save_handler | Adicionado o parâmetro opcional create_sid. |
5.5.0/PECL 3.0.0 | IntlDateFormatter::create | An IntlCalendar object is allowed for calendar. Objects of type IntlTimeZone and DateTimeZone are allowed for timezone. Invalid timezone identifiers (including empty strings) are no longer allowed for timezone. If null is given for timezone, the timezone identifier given by date_default_timezone_get will be used instead of ICUʼs default. |
IntlDateFormatter::setCalendar | It became possible to pass an IntlCalendar object. | |
5.5.0 | DatePeriod::__construct | start foi modificado para DateTimeImmutable. Anteriormente era DateTime. |
empty | A função empty agora suporta expressões, em vez de somente variáveis. | |
json_encode | Parâmetro depth foi adicionado. | |
5.4.32, 5.5.16 | ucwords | O parâmetro delimiters foi adicionado. |
5.4.0 | apache_child_terminate | Esta funçõe se tornou disponível no FastCGI. Anteriormente ele só era suportado quando o PHP era instalado como módulo do Apache. |
array_combine | Versões anteriores disparavam E_WARNING e retornavam false para arrays vazios. | |
array_multisort | SORT_NATURAL e SORT_FLAG_CASE foram adicionados em array1_sort_flags. | |
date_default_timezone_get | A variável de ambiente TZ não é mais utilizada para adivinhar o fuso horário. | |
date_default_timezone_get | O fuso horário não é mais suposto por informações disponíveis no sistema operacional, já que o fuso horário adivinhado não é confiável. | |
empty | Checar deslocamentos de strings não numéricos retorna true. | |
json_encode | options JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, e JSON_UNESCAPED_UNICODE foram adicionadas. | |
session_set_save_handler | Adicionado SessionHandlerInterface para a implementação de manipuladores de sessão e SessionHandler para expor manipuladores de sessão internos do PHP. | |
SimpleXMLElement::getDocNamespaces | Adicionado o parâmetro from_root. | |
5.3.9 | DateTime::createFromFormat | O especificador de format + foi adicionado. |
5.3.6 | DateTime::modify | Declarações absolutas de data/hora agora possuem efeito. Anteriormente, somente porções relativas eram utilizadas. |
array_product | O produto de um array vazio agora é 1, quando antes essa função iria retornar 0 para um array vazio. | |
PDO_MYSQL DSN | Antes do PHP 5.3.6, o charset era ignorado. | |
5.3.4 | copy | Alterado o parâmetro context para ele realmente ter algum efeito. Anteriormente, qualquer context era ignorado. |
5.3.3 | json_encode | option JSON_NUMERIC_CHECK foi adicionada. |
5.3.1 | rename | rename agora consegue mover arquivos entre drivers do Windows. |
5.3.0 | DateTime::__construct | Se o parâmetro time conter algum formato de data/hora inválida, uma exceção será lançada. Anteriormente, um erro era emitido. |
DateTime::modify | Modificado o valor retornado de null para DateTime. | |
DateTime::setDate | Modificado o valor retornado de null para DateTime. | |
DateTime::setISODate | Modificado o valor retornado de null para DateTime. | |
DateTime::setTime | Modificado o valor retornado de null para DateTime. | |
DateTime::setTimezone | Modificado o valor retornado de null para DateTime. | |
DateTimeZone::getTransitions | Os parâmetros opcionais timestamp_begin e timestamp_end foram adicionados. | |
DateTimeZone::listIdentifiers | Adicionado os parâmetros opcionais what e country. | |
array_multisort | SORT_LOCALE_STRING foi adicionado em array1_sort_flags. | |
array_reduce | initial modificado para permitir mixed (anteriormente era integer). | |
array_search | A partir do PHP 5.3.0 array_search retorna null caso sejam informados parâmetros inválidos. | |
copy | Adicionado suporte à contexto. | |
date_default_timezone_set | Agora retorna E_WARNING ao invés de E_STRICT. | |
fgetcsv | O parâmetro escape foi adicionado | |
json_encode | O parâmetro options foi adicionado. | |
link | A função fica disponível em plataformas Windows (Vista, Server 2008 or greater). | |
mktime | mktime agora lançará um aviso E_DEPRECATED se o parâmetro is_dst for utilizado. | |
readlink | Esta função fica disponível na plataforma Windows (Vista, Server 2008 e superiores). | |
session_start | Se uma sessão falhar para iniciar, então é retornado false. Anteriormente, true era retornado. | |
stristr | Adicionado o parâmetro opcional before_needle. | |
strstr | Adicionado o parâmetro opcional before_needle. | |
5.2.10 | array_rand | O array retornado não é mais embaralhado. |
5.2.5 | addcslashes | As seqüências de escape \v e \f foram adicionadas. |
5.2.4 | parse_ini_file | Chaves e nomes de seção que consistem de números, agora são interpretados como inteiros, de forma que números iniciados por 0 são interpretados como octais e números iniciados por 0x são interpretados como hexadecimais. |
5.2.3 | htmlentities | O parâmetro double_encode foi adicionado. |
json_decode | O limite de aninhamento foi aumentado de 20 para 128 | |
5.2.2 - 5.2.6 | substr | Se start indicar a posição de truncagem negativa ou além, retorna false. Outras versões retornavam a string a partir do começo. |
5.2.0 | curl_multi_info_read | msgs_in_queue was added. |
pathinfo | A constante PATHINFO_FILENAME foi adicionada. | |
session_get_cookie_params | A entrada "httponly" foi adicionada no array retornado. | |
session_set_cookie_params | O parâmetro httponly foi adicionado. | |
SimpleXMLElement::children | O parâmetro opcional is_prefix foi adicionado. | |
SimpleXMLElement::__construct | Adicionado os parâmetros ns e is_prefix. | |
5.1.3 | curl_getinfo | Introduced CURLINFO_HEADER_OUT. |
5.1.2 | date_default_timezone_set | A função passou a validar o parâmetro timezone_identifier. |
SimpleXMLElement::__construct | Adicionado os parâmetros options e data_is_url. | |
5.1.1 | date | Há constantes úteis do padrão de formato de data/hora que podem ser usados para especificar o parâmetro format. |
gmdate | Há constantes úteis do padrão de formato data/hora que podem ser usadas para especificar o parâmetro format. | |
5.1.0 | date | Agora lança erros E_STRICT e E_NOTICE . |
date | O intervalo válido de um timestamp é tipicamente de Sex, 13 Dez 1901 20:45:54 GMT até Ter, 19 Jan 2038 03:14:07 GMT. (Estas são as datas que correspondem ao valor mínimo e máximo para um inteiro com sinal de 32-bit). Contudo, em versões anteriores ao PHP 5.1.0 este intervalo era limitado de 01-01-1970 para 19-01-2038 em alguns sistemas (e.g. Windows). | |
date_sunrise | Agora lança erros E_STRICT e E_NOTICE . | |
date_sunset | Agora lança erros E_STRICT e E_NOTICE . | |
explode | Suporte a limit negativo foi adicionado | |
fgetcsv | Agora length é opcional. O padrão é 0, que significa sem limite de comprimento. | |
file_get_contents | Adicionados os parâmetros offset e maxlen. | |
file_put_contents | Adicionado suporte a LOCK_EX e a possibilidade de passar um recurso de stream para o parâmetro data | |
gettimeofday | O parâmetro return_float foi adicionado. | |
glob | GLOB_ERR foi adicionado | |
gmdate | O intervalo válido de um timestamp é normalmente de Fri, 13 Dec 1901 20:45:54 GMT a Tue, 19 Jan 2038 03:14:07 GMT. (Estas são as datas que correspondem aos valores máximo e mínimo para um inteiro 32-bit com sinal). Contudo, antes do PHP 5.1.0 este intervalo foi limitado para 01-01-1970 a 19-01-2038 em alguns sistemas (e.g. Windows). | |
gmmktime | A partir do PHP 5.1.0, o parâmetro is_dst foi depreciado. Como resultado, a nova funcionalidade de manipulação de fusos horário deve ser utilizada. | |
idate | Agora lança erros E_STRICT e E_NOTICE . | |
localtime | Agora lança erros E_STRICT e E_NOTICE . | |
md5_file | Modificada função para usar a API de API. Significa que você pode usá-la com wrappers, como md5_file('http://example.com/..') | |
mktime | O parâmetro is_dst tornou-se obsoleto. Fazendo a função retornar false em erro, em vez de -1. Reparada a função para aceitar ano, mês e dia passados como zero. | |
mktime | Quando chamada sem argumentos, a função mktime lançará um aviso E_STRICT. Utilize a função time em substituição. | |
mktime | Agora lança erros E_STRICT e E_NOTICE . | |
strftime | Agora lança erros E_STRICT e E_NOTICE . | |
5.0.0 | apache_get_modules | Tornou-se disponível usando o Apache 1 ou a API filter do Apache 2 . Antes disso, só estava disponível usando a API handler do Apache2. |
dirname | dirname passou a ser segura para binários | |
fgetss | O parâmetro length é opcional. | |
file | O parâmetro context foi adicionado | |
file | Até o PHP 5.0.0, o parâmetro flags suportava apenas include_path e era habilitado com 1 | |
file_get_contents | Adicionado suporte a contexto. | |
file_put_contents | Adicionado suporte a contexto | |
get_class_methods | No PHP 5, esta função retorna o nome dos métodos como eles foram declarados (case-sensitive). No PHP 4 eles ficavam em minúsculo. | |
html_entity_decode | Suporte para conjunto de caracteres multi-byte foi adicionado. | |
md5 | O parâmetro raw_output foi adicionado. | |
md5_file | Adicionado o parâmetro raw_output | |
mkdir | A partir do PHP 5.0.0, mkdir também pode ser usada com alguns wrappers de URL. Veja em uma lista de quais wrappers suportam mkdir | |
mkdir | O parâmetro recursive foi adicionado | |
parse_ini_file | Valores envolvidos em aspas duplas podem conter novas linhas. | |
rename | rename pode agora também ser usada com algum URL wrappers. Consulte para uma lista de wrappers que rename suporta. | |
rmdir | No PHP 5.0.0 rmdir pode também ser usada com alguns URL wrappers. Consulte para uma listagem de wrappers suportados pela rmdir. | |
str_replace | O parâmetro count foi adicionado. | |
strip_tags | strip_tags tornou-se binary safe | |
unlink | No PHP 5.0.0 unlink pode também ser usada com alguns URL wrappers. Consulte para uma listagem de wrappers que são suportados na unlink. |