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. |
Desde o 5.0.0 | get_class | O parâmetro object é opcional se chamado para um método do objeto. |
get_class | O nome da classe é retornado em sua notação original. | |
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 |
Anterior ao 4.2.0 | get_class_vars | Variáveis da classe não inicializados não serão reportados pela get_class_vars |
7.4.0 | 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. | |
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 | sql_param now also supports the @param notation. | |
SQLite3Stmt::bindValue | sql_param now also supports the @param notation. | |
7.3.0 | is_countable | is_countable has been added. |
7.3 | ldap_add | Support for serverctrls added |
ldap_compare | Support for serverctrls added | |
ldap_delete | Support for serverctrls added | |
ldap_exop | Support for serverctrls added | |
ldap_exop_passwd | Support for serverctrls added | |
ldap_list | Support for serverctrls added | |
ldap_mod_add | Support for serverctrls added | |
ldap_mod_del | Support for serverctrls added | |
ldap_mod_replace | Support for serverctrls added | |
ldap_modify_batch | Support for serverctrls added | |
ldap_parse_result | Support for serverctrls added | |
ldap_read | Support for serverctrls added | |
ldap_rename | Support for serverctrls added | |
ldap_search | Support for serverctrls added | |
7.2.0 | 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 | Return HashContext instead of resource. | |
hash_init | Usage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) with HASH_HMAC was disabled. | |
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 var. Formerly, only strings have been supported. | |
mb_convert_encoding | This function now also accepts an array as val. Formerly, only strings have been supported. | |
mb_send_mail | The additional_headers parameter now also accepts an array. | |
openssl_pkcs7_verify | The p7bfilename 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. | |
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 value 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 starts 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 regs to an empty array, if nothing matched. Formerly, regs was not modified in that case. | |
mb_ereg_replace | The e modifier has been deprecated. | |
mb_ereg_search_setpos | Support for negative positions has been added. | |
mb_eregi | mb_eregi will now set regs to an empty array, if nothing matched. Formerly, regs was not modified in that case. | |
mb_eregi_replace | The e modifier has been deprecated. | |
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 | configargs 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 configarg 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 signinfo of the specific signal. This data is only supplied if the operating system has the signinfo_t structure. If the OS does not implement siginfo_t NULL is supplied. | |
pcntl_signal_get_handler | pcntl_signal_get_handler has been added. | |
unserialize | The allowed_classes element of options) is now strictly typed, i.e. if anything other than an array or a boolean is given, unserialize returns FALSE and issues an E_WARNING. | |
7.0.11 | iconv_substr | If str 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. |
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. | |
openssl_open | The iv has been added. | |
openssl_seal | The iv has been added. | |
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. | |
unserialize | The options parameter has been added. | |
IntlDateFormatter::setTimeZoneId | This function has been removed. | |
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.16 | mysqli::real_connect | Added the MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT flag for MySQL Native Driver |
5.6.1 | sem_acquire | The $nowait parameter was added. |
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 | |
hash_algos | Support for gost-crypto was added. This implements the GOST hash function using the CryptoPro S-box tables as specified by RFC 4357, section 11.2. | |
mb_regex_encoding | Default encoding is changed to UTF-8. It was EUC-JP Previously. | |
mcrypt_create_iv | MCRYPT_DEV_URANDOM is now the default value of source. | |
mcrypt_decrypt | Invalid key and iv sizes are no longer accepted. mcrypt_decrypt will now throw a warning and return FALSE if the inputs are invalid. Previously keys and IVs were padded with '\0' bytes to the next valid size. | |
mcrypt_encrypt | Invalid key and iv sizes are no longer accepted. mcrypt_encrypt will now throw a warning and return FALSE if the inputs are invalid. Previously keys and IVs were padded with '\0' bytes to the next valid size. | |
stream_socket_enable_crypto | Introduce STREAM_CRYPTO_METHOD_ANY_CLIENT, STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT, STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT, STREAM_CRYPTO_METHOD_ANY_SERVER, STREAM_CRYPTO_METHOD_TLSv1_0_SERVER, STREAM_CRYPTO_METHOD_TLSv1_1_SERVER, STREAM_CRYPTO_METHOD_TLSv1_2_SERVER. | |
stream_socket_enable_crypto | The crypto_type is now optional. | |
substr_compare | O parâmetro length agora pode ser 0. | |
unserialize | Manipulating the serialised data by replacing C: with O: to force object instantiation without calling the constructor will now fail. | |
ReflectionClass::newInstanceWithoutConstructor | All internal classes can now be instantiated except for those declared final. | |
XMLReader::getAttributeNo | XMLReader::getAttributeNo now returns NULL if the attribute doesn't exist. | |
XMLReader::getAttributeNs | XMLReader::getAttributeNS now returns NULL if the attribute doesn't exist. | |
5.5.8 | DatePeriod::__construct | O tipo de end foi modificado para DateTimeImmutable. Anteriormente era DateTime. |
5.5.7 | apache_request_headers | Esta função tornou-se disponível no servidor CLI. |
apache_response_headers | Esta função tornou-se disponível no CLI. | |
getallheaders | Esta função tornou-se disponível no servidor CLI. | |
5.5.4 | fputcsv | O parâmetro escape_char foi adicionado. |
5.5.2 | DOMDocument::schemaValidate | Added the flags parameter |
DOMDocument::schemaValidateSource | Added the flags parameter | |
5.5.1 | hex2bin | A warning is thrown if the input string is invalid hexadecimal string. |
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::format | Support for providing IntlCalendar objects to the value parameter was added. | |
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. | |
preg_replace | O modificador /e está obsoleto. Use preg_replace_callback como alternativa. Veja a documentação PREG_REPLACE_EVAL para adicionais informações sobre riscos de segurança. | |
IntlDateFormatter::setTimeZoneId | This function has been deprecated. | |
mysqli::options | The MYSQLI_SERVER_PUBLIC_KEY and MYSQLI_SERVER_PUBLIC_KEY options were added. | |
mysqli::rollback | Added flags and name parameters. | |
SoapClient::SoapClient | New ssl_method option. | |
5.4.32, 5.5.16 | ucwords | O parâmetro delimiters foi adicionado. |
5.4.8 | mb_strcut | Passing NULL as length extracts all bytes to the end of the string. Prior to this version NULL was treated the same as 0. |
mb_substr | Passing NULL as length extracts all characters to the end of the string. Prior to this version NULL was treated the same as 0. | |
5.4.4 | hex2bin | A warning is thrown if the input string is of odd length. In PHP 5.4.0 the string was silently accepted, but the last byte was truncated. |
5.4.0/PECL 2.0.0b1 | idn_to_ascii | Added the parameters variant and idna_info; UTS #46 support (requires ICU ≥ 4.6). |
idn_to_utf8 | Added the parameters variant and idna_info; UTS #46 support (requires ICU ≥ 4.6). | |
5.4.0 | DOMDocument::loadHTML | Added options parameter. |
DOMDocument::loadHTMLFile | Added options parameter. | |
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. | |
apache_request_headers | Esta função tornou-se disponível no FastCGI. Anteriormente era suportada somente quando o PHP era instalado como módulo Apache ou como um módulo NSAPI nos servidores Netscape/iPlanet/SunONE. | |
apache_response_headers | Esta função tornou-se disponível no FastCGI. Anteriormente ela só era suportada com o PHP instalado como um módulo do Apache ou como um módulo NSAPI nos servidores Netscape/iPlanet/SunONE. | |
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. | |
getallheaders | Esta função tornou-se disponível no FastCGI. Anteriormente ela era suportada no PHP intalado como módulo do Apache ou como um módulo NSAPI nos servidores Netscape/iPlanet/SunONE. | |
hash | The tiger algorithm now uses big-endian byte ordering. See also example below. | |
hash_algos | Support for joaat, fnv132 and fnv164 was added. Support for Salsa10 and Salsa20 was removed. | |
iconv | Since this version, the function returns FALSE on illegal characters, unless //IGNORE is specified in output charset. Before, it returned partial output string. | |
json_encode | options JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, e JSON_UNESCAPED_UNICODE foram adicionadas. | |
mb_decode_numericentity | Added is_hex parameter. | |
mb_encode_numericentity | Added is_hex parameter. | |
mysqli_get_cache_stats | The mysqli_get_cache_stats was removed. | |
openssl_decrypt | The raw_output was changed to options. | |
openssl_encrypt | The raw_output was changed to options. | |
preg_match_all | The matches parameter became optional. | |
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. | |
snmp_set_valueretrieval | Constants SNMP_VALUE_PLAIN or SNMP_VALUE_LIBRARY may be combined with SNMP_VALUE_OBJECT resulting different way of representing contents of value array element in return value of GET-function. If no SNMP_VALUE_{PLAIN,LIBRARY} constant is accompanying SNMP_VALUE_OBJECT, SNMP_VALUE_LIBRARY is used. Prior to 5.4.0 SNMP_VALUE_OBJECT effecively meant SNMP_VALUE_OBJECT|SNMP_VALUE_PLAIN. | |
sort | Acrescentado suporte a SORT_NATURAL e SORT_FLAG_CASE em sort_flags | |
PDOStatement::getColumnMeta | PDO_DBLIB driver support added | |
Phar::setStub | Added len parameter. | |
PharData::setStub | Added len parameter. | |
SimpleXMLElement::getDocNamespaces | Adicionado o parâmetro from_root. | |
SoapClient::SoapClient | New keep_alive option. | |
5.4 | grapheme_substr | If length is given and positive and the argument string is shorter than the specified length, all the rest of the string according to start parameter is returned. Previously, FALSE was returned. |
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. |
DOMDocument::saveHTML | The node parameter was added. | |
array_product | O produto de um array vazio agora é 1, quando antes essa função iria retornar 0 para um array vazio. | |
preg_match | Returns FALSE if offset is higher than subject length. | |
preg_match_all | Returns FALSE if offset is higher than subject length. | |
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. |
IntlDateFormatter::format | Support for providing DateTime objects to the value parameter was added. | |
mysqli_driver::$report_mode | Changing the reporting mode is now be per-request, rather than per-process. | |
5.3.3 | DOMXPath::evaluate | The registerNodeNS parameter was added. |
DOMXPath::query | The registerNodeNS parameter was added. | |
imap_fetch_overview | Add the udate property. | |
json_encode | option JSON_NUMERIC_CHECK foi adicionada. | |
ldap_sasl_bind | Support on Windows was added. | |
openssl_decrypt | The iv parameter was added. | |
openssl_encrypt | The iv parameter was added. | |
5.3.2 (PECL OCI8 1.4) | oci_set_prefetch | Before this release, rows must be >= 1. |
5.3.2 | imap_append | Added INTERNALDATE support to imap_append. |
imap_open | params added | |
5.3.1 | rename | rename agora consegue mover arquivos entre drivers do Windows. |
5.3.0 (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. |
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 | |
hash_algos | Support for md2, ripemd256, ripemd320, salsa10, salsa20, snefru256 and sha224 was added | |
json_encode | O parâmetro options foi adicionado. | |
link | A função fica disponível em plataformas Windows (Vista, Server 2008 or greater). | |
mb_get_info | The entry "http_output_conv_mimetypes" was made available. | |
mcrypt_create_iv | It is no longer required to call srand first. This is now done automatically. | |
mcrypt_create_iv | MCRYPT_DEV_RANDOM and MCRYPT_DEV_URANDOM became available on Windows platforms. | |
mktime | mktime agora lançará um aviso E_DEPRECATED se o parâmetro is_dst for utilizado. | |
mysqli_get_cache_stats | The mysqli_get_cache_stats was added as stub. | |
openssl_open | The method has been added. | |
openssl_seal | The method has been added. | |
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. | |
shm_attach | This function now returns a resource instead of an integer. | |
stream_context_create | Added the optional params argument. | |
stream_socket_pair | This function is now available on Windows platforms. | |
stristr | Adicionado o parâmetro opcional before_needle. | |
strstr | Adicionado o parâmetro opcional before_needle. | |
strtotime | Em versões anteriores ao PHP 5.3.0, formatos relativos de tempo informados ao argumento time da função strtotime como this week, previous week, last week, and next week eram interpretados como um período de 7 dias relativos a data/hora corrente, em vez do período de uma semana de Segunda-feira a Domingo. | |
strtotime | Em versões anteriores ao PHP 5.3.0, 24:00 não era um formato válido e strtotime retornava FALSE. | |
mysqli::__construct | Added the ability of persistent connections. | |
mysqli::options | The MYSQLI_OPT_INT_AND_FLOAT_NATIVE, MYSQLI_OPT_NET_CMD_BUFFER_SIZE, MYSQLI_OPT_NET_READ_BUFFER_SIZE, and MYSQLI_OPT_SSL_VERIFY_SERVER_CERT options were added. | |
mysqli::query | Added the ability of async queries. | |
PDO::__construct | Classes which extends PDO and implements the __call magic method will now receive the method name in the declared casing. Previously this was always lower case. | |
ReflectionFunction::__construct | name can now be a closure. | |
XMLReader::expand | The parameter basenode was added. | |
5.2.15 | mysqli_driver::$report_mode | Changing the reporting mode is now be per-request, rather than per-process. |
5.2.10 | array_rand | O array retornado não é mais embaralhado. |
curl_setopt | Introduced CURLOPT_PROTOCOLS, and CURLOPT_REDIR_PROTOCOLS. | |
5.2.7 | strtotime | No PHP 5, em versões anteriores a 5.2.7, solicitar uma certa ocorrência de um dia da semana em um mês, onde este dia fosse o primeiro dia do mês poderia adicionar incorretamente uma semana para ao timestamp retornado. Isso foi corrigido na versão 5.2.7 e posteriores. |
5.2.5 | addcslashes | As seqüências de escape \v e \f foram adicionadas. |
5.2.4 | array_slice | O valor parão de length foi modigicado para NULL. Um length NULL agora diz à função para utilizar o comprimento de array. Antes dessa versão, length NULL significava comprimento zero (nada seria retornado). |
ldap_first_attribute | The ber_identifier was removed. This is now handled automatically by PHP. | |
ldap_next_attribute | The ber_identifier was removed. This is now handled automatically by PHP. | |
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. | |
stream_wrapper_register | Added the flags parameter. | |
5.2.3 | htmlentities | O parâmetro double_encode foi adicionado. |
json_decode | O limite de aninhamento foi aumentado de 20 para 128 | |
XMLWriter::writeElement | The content parameter became optional. | |
XMLWriter::writeElementNs | The content parameter became optional. | |
PDOStatement::getColumnMeta | table field | |
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.2 | DOMDocument::registerNodeClass | Prior to 5.2.2, a previously registered extendedclass had to be unregistered before being able to register a new class extending the same baseclass. |
preg_match | Named subpatterns now accept the syntax (?<name>) and (?'name') as well as (?P<name>). Previous versions accepted only (?P<name>). | |
preg_match_all | Named subpatterns now accept the syntax (?<name>) and (?'name') as well as (?P<name>). Previous versions accepted only (?P<name>). | |
5.2.0 | curl_multi_info_read | msgs_in_queue was added. |
imap_open | n_retries added | |
imap_reopen | n_retries added | |
mb_strrpos | Added the optional parameter offset. | |
openssl_verify | The signature_alg parameter 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. | |
snmp_set_oid_numeric_print | Since PHP 5.2.0. | |
PDOStatement::execute | The keys from input_parameters must match the ones declared in the SQL. Before PHP 5.2.0 this was silently ignored. | |
SimpleXMLElement::children | O parâmetro opcional is_prefix foi adicionado. | |
SimpleXMLElement::__construct | Adicionado os parâmetros ns e is_prefix. | |
SoapServer::SoapServer | Added the typemap option. | |
XMLReader::open | encoding and options were added. | |
XMLReader::XML | encoding and options were added. | |
5.1.3 | curl_getinfo | Introduced CURLINFO_HEADER_OUT. |
mb_get_info | The entries "mail_charset", "mail_header_encoding", and "mail_body_encoding" were made available. | |
SoapClient::__doRequest | The one_way parameter was added. | |
XMLReader::getAttribute | Return NULL if no attribute found. Previously, returned an empty string. | |
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 | DOMDocument::save | Added the options parameter |
DOMDocument::saveXML | Added the options parameter | |
curl_setopt | Introduced CURLOPT_AUTOREFERER, CURLOPT_BINARYTRANSFER, CURLOPT_FTPSSLAUTH, CURLOPT_PROXYAUTH, and CURLOPT_TIMECONDITION. | |
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 | Agora lança erros E_STRICT e E_NOTICE . | |
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 | Quando chamada sem argumentos, a função mktime lançará um aviso E_STRICT. Utilize a função time em substituição. | |
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 | Agora lança erros E_STRICT e E_NOTICE . | |
openssl_pkcs7_verify | The content parameter was added. | |
preg_replace | Adicinado o parâmetro count | |
preg_replace_callback | O parâmetro count foi adicionado | |
session_regenerate_id | Adicionado o parâmetro delete_old_session. | |
sha1_file | Modificada a função para usar a API de streams. Significa que você pode usá-la com wrappers, como sha1_file('http://example.com/..') | |
str_word_count | Adicionado o parâmetro charlist | |
stream_copy_to_stream | Added the offset parameter | |
stream_filter_append | Prior to PHP 5.1.0, this function returns TRUE on success ou FALSE em caso de falha. | |
stream_filter_prepend | Prior to PHP 5.1.0, this function returns TRUE on success ou FALSE em caso de falha. | |
stream_get_contents | The offset was added. | |
strftime | Agora lança erros E_STRICT e E_NOTICE . | |
strtotime | Agora lança erros E_STRICT e E_NOTICE . | |
strtotime | Agora retorna FALSE em falha, ao invés de -1. | |
substr_compare | Adicionada a possibilidade de usar offset negativo. | |
substr_count | Adiciona os parâmetros offset e length | |
5.0.3 | is_subclass_of | Você pode também especificar o parâmetro object como uma string (o nome da classe) |
5.0.2 | array_slice | O parâmetro opcional preserve_keys foi adicionado. |
class_exists | Não retorna TRUE para interfaces definidas. Use interface_exists. | |
sort | Adicionado SORT_LOCALE_STRING | |
strtotime | No PHP 5, em versões superiores a 5.0.2, "now" e outros horários relativos, eram computados erroneamente como a meia noite do dia corrente. Isso difere de outras versões onde era computado corretamente como a hora atual. | |
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. |
class_exists | O parâmetro autoload foi adicionado. | |
curl_setopt | Introduced CURLOPT_FTP_USE_EPRT, CURLOPT_NOSIGNAL, CURLOPT_UNRESTRICTED_AUTH, CURLOPT_BUFFERSIZE, CURLOPT_HTTPAUTH, CURLOPT_PROXYPORT, CURLOPT_PROXYTYPE, CURLOPT_SSLCERTTYPE, and CURLOPT_HTTP200ALIASES. | |
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. | |
sha1_file | Adicionado o parâmetro raw_output | |
str_replace | O parâmetro count foi adicionado. | |
strip_tags | strip_tags tornou-se binary safe | |
strtotime | Microssegundos são aceitos, porém ignorados. | |
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. |