Le seguenti modifiche sono state apportate alle funzioni delle estensioni del pacchetto.
Version | Function | Description |
---|---|---|
PHP 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. |
6 | error_reporting | E_STRICT è diventata parte di E_ALL. |
5.6.0 | pg_lo_truncate | Added truncate function. It supports PostgreSQL 9.3's 64bit large object. Both client and server must support PostgreSQL 9.3 and PHP must be 64bit build to use 64bit large object. |
5.6 | Countable::count | The optional mode parameter was added. |
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. |
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 | empty | empty ora supporta le espressioni, piuttosto che solo variabili. |
gd_info | WebP Support added. | |
imagerotate | This function is now affected by the interpolation method set by the imagesetinterpolation function. | |
iterator_to_array | iterator_to_array gained support for key types other than integer and string when the use_keys parameter is enabled. | |
json_encode | depth parameter was added. | |
pack | The "Z" code was added with equivalent functionality to "a" for Perl compatibility. | |
setcookie | A Max-Age attribute is now included in the Set-Cookie header sent to the client. | |
setrawcookie | A Max-Age attribute is now included in the Set-Cookie header sent to the client. | |
unpack | Changes were made to bring this function into line with Perl: The "a" code now retains trailing NULL bytes. The "A" code now strips all trailing ASCII whitespace (spaces, tabs, newlines, carriage returns, and NULL bytes). The "Z" code was added for NULL-padded strings, and removes trailing NULL bytes. | |
mysqli::commit | Added flags and name parameters. | |
mysqli::options | The MYSQLI_SERVER_PUBLIC_KEY option was added. | |
mysqli::rollback | Added flags and name parameters. | |
SoapClient::SoapClient | New ssl_method option. | |
5.4.7 | parse_url | Fixed host recognition when scheme is omitted and a leading component separator is present. |
5.4.1 | 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. |
idn_to_utf8 | Added the parameters variant and idna_info; UTS #46 support. | |
5.4.0 | DOMDocument::loadHTML | Added options parameter. |
DOMDocument::loadHTMLFile | Added options parameter. | |
apache_child_terminate | Questa funzione diventa disponibile sotto FastCGI. Precedentemente, era supportata solo quando PHP era installato come modulo Apache. | |
array_combine | Le precedenti versioni generavano un E_WARNING e restituivano FALSE per gli array vuoti. | |
date_default_timezone_get | The TZ environment variable is no longer used to guess the timezone. | |
date_default_timezone_get | The timezone is no longer guessed from information available through the operating system as the guessed timezone can not be relied on. | |
dns_get_record | Added raw parameter. | |
empty | Il controllo su offset non numerici di stringhe restituisce TRUE. | |
filter_input_array | Added add_empty parameter. | |
filter_var_array | Added add_empty parameter. | |
gzcompress | Aggiunto il parametro encoding. | |
hash | The tiger algorithm now uses big-endian byte ordering. | |
hash_algos | Support for joaat, fnv132 and fnv164 was added. Support for Salsa10 and Salsa20 was removed. | |
htmlspecialchars_decode | The constants ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added. | |
http_build_query | The enc_type parameter was added. | |
imagecolorset | The alpha parameter was added. | |
json_decode | The options parameter was added. | |
json_encode | JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, and JSON_UNESCAPED_UNICODE options were added. | |
mb_encode_numericentity | Added is_hex parameter. | |
ob_start | A chunk size of 1 now results in chunks of 1 byte being sent to the output buffer. | |
ob_start | The third parameter of ob_start changed from a boolean parameter called erase (which, if set to FALSE, would prevent the output buffer from being deleted until the script finished executing) to an integer parameter called flags. Unfortunately, this results in an API compatibility break for code written prior to PHP 5.4.0 that uses the third parameter. See the flags example for an example of how to handle this with code that needs to be compatible with both. | |
openssl_decrypt | The raw_output was changed to options. | |
openssl_encrypt | The raw_output was changed to options. | |
scandir | sorting_order constants were added. Any nonzero value caused descending order in previous versions. So for all PHP versions, use 0 for ascending order, and 1 for descending order. An option for SCANDIR_SORT_NONE behavior did not exist prior to PHP 5.4.0. | |
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. | |
Phar::setStub | Added len parameter. | |
PharData::setStub | Added len parameter. | |
SimpleXMLElement::getDocNamespaces | Added from_root parameter. | |
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.6 | DateTime::modify | Absolute date/time statements now take effect. Previously, only relative parts were used. |
DOMDocument::saveHTML | The node parameter was added. | |
array_product | The product of an empty array is now 1, when before this function would return 0 for an empty array. | |
PDO_MYSQL DSN | Prior to version 5.3.6, charset was ignored. | |
5.3.4 | rawurlencode | Tilde characters are no longer encoded when rawurlencode is used with EBCDIC strings. |
sleep | Before PHP 5.3.4, on Windows, sleep always returns NULL when sleep has occurred, regardless of whether the sleep was interrupted or not. | |
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. | |
json_encode | JSON_NUMERIC_CHECK option was added. | |
ldap_sasl_bind | Support on Windows was added. | |
openssl_decrypt | The iv parameter was added. | |
openssl_encrypt | The iv parameter was added. | |
parse_url | Removed the E_WARNING that was emitted when URL parsing failed. | |
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.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 | If time contains an invalid date/time format, then an exception is now thrown. Previously an error was emitted. |
DateTime::modify | Modificato il valore di ritorno in caso di successo da NULL a DateTime. | |
DateTime::setDate | Modificato il valore di ritorno in caso di successo da NULL a DateTime. | |
DateTime::setISODate | Modificato il valore di ritorno in caso di successo da NULL a DateTime. | |
DateTime::setTime | Modificato il valore di ritorno in caso di successo da NULL a DateTime. | |
DateTime::setTimezone | Modificato il valore di ritorno in caso di successo da NULL a DateTime. | |
DateTimeZone::getTransitions | The optional timestamp_begin and timestamp_end were added. | |
DateTimeZone::listIdentifiers | Added the optional what and country parameters. | |
DirectoryIterator::__construct | Throws UnexpectedValueException if the path cannot be opened. | |
call_user_func | The interpretation of object oriented keywords like parent and self has changed. Previously, calling them using the double colon syntax would emit an E_STRICT warning because they were interpreted as static. | |
call_user_func_array | The interpretation of object oriented keywords like parent and self has changed. Previously, calling them using the double colon syntax would emit an E_STRICT warning because they were interpreted as static. | |
date_default_timezone_set | Now throws E_WARNING rather than E_STRICT. | |
dns_get_record | Prior to this release, if the authns parameter was given, the addtl parameter was also required. | |
dns_get_record | This function is now available on Windows platforms. | |
exif_imagetype | Added icon support. | |
fnmatch | This function is now available on Windows platforms. | |
func_get_arg | This function can now be used in parameter lists. | |
func_get_arg | If this function is called from the outermost scope of a file which has been included by calling include or require from within a function in the calling file, it now generates a warning and returns FALSE. | |
func_get_args | If this function is called from the outermost scope of a file which has been included by calling include or require from within a function in the calling file, it now generates a warning and returns FALSE. | |
func_get_args | This function can now be used in parameter lists. | |
func_num_args | This function can now be used in parameter lists. | |
func_num_args | If this function is called from the outermost scope of a file which has been included by calling include or require from within a function in the calling file, it now generates a warning and returns -1. | |
gd_info | JPG Support attribute renamed to JPEG Support. | |
getimagesize | Added icon support. | |
hash_algos | Support for md2, ripemd256, ripemd320, salsa10, salsa20, snefru256 and sha224 was added | |
imagecolorclosesthwb | This function is now available on Windows | |
imagefilter | Pixelation support (IMG_FILTER_PIXELATE) was added. | |
inet_ntop | This function is now available on Windows platforms. | |
inet_pton | This function is now available on Windows platforms. | |
json_decode | Added the optional depth. The default recursion depth was increased from 128 to 512 | |
json_encode | The options parameter was added. | |
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. | |
property_exists | This function checks the existence of a property independent of accessibility. | |
rawurlencode | Now conforms to RFC 3986. | |
register_tick_function | Ticks are now supported on threaded web server modules. | |
setlocale | Questa funzione emette un avviso E_DEPRECATED se una stringa è passata al parametro category invece che una delle costanti LC_*. | |
spl_autoload_register | Namespaces support was introduced. | |
spl_autoload_register | The prepend parameter was added. | |
stream_context_create | Added the optional params argument. | |
stream_socket_pair | This function is now available on Windows platforms. | |
sybase_connect | The new parameter was added. | |
time_nanosleep | This function is now available on Windows platforms. | |
time_sleep_until | This function is now available on Windows platforms. | |
mysqli::__construct | Added the ability of persistent connections. | |
mysqli::query | Added the ability of async queries. | |
ReflectionFunction::__construct | name can now be a closure. | |
SplObjectStorage::attach | Added the data parameter. | |
5.2.15 | mysqli_driver::$report_mode | Changing the reporting mode is now be per-request, rather than per-process. |
5.2.8 | XSLTProcessor::importStylesheet | Accepts SimpleXMLElement again which was broken since PHP 5.2.6. |
5.2.7 | error_log | Aggiunto il valore 4 per message_type |
5.2.5 | debug_backtrace | Aggiunto il parametro opzionale provide_object. |
imagefilter | Alpha support for IMG_FILTER_COLORIZE was added. | |
5.2.4 | 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. | |
stream_wrapper_register | Added the flags parameter. | |
5.2.3 | getimagesize | Read errors generated by this function downgraded to E_NOTICE from E_WARNING. |
json_decode | The nesting limit was increased from 20 to 128 | |
XMLWriter::writeElement | The content parameter became optional. | |
XMLWriter::writeElementNS | The content parameter became optional. | |
PDOStatement::getColumnMeta | table field | |
5.2.2 | proc_terminate | Previous versions used to destroy the given process resource. |
token_get_all | Line numbers are returned in element 2 | |
5.2.1 | iterator_to_array | The use_keys parameter was added. |
json_decode | Added support for JSON decoding of basic types. | |
memory_get_peak_usage | Compiling with --enable-memory-limit is no longer required for this function to exist. | |
proc_open | Added the bypass_shell option to the other_options parameter. | |
5.2.0 | base64_decode | strict added |
error_reporting | Inserita E_RECOVERABLE_ERROR. | |
imagettftext | It is now possible to specify an hexadecimal entity in text. | |
imap_open | n_retries added | |
imap_reopen | n_retries added | |
mb_strrpos | Added the optional parameter offset. | |
memory_get_peak_usage | real_usage was added. | |
openssl_verify | The signature_alg parameter was added. | |
setcookie | The httponly parameter was added. | |
setrawcookie | The httponly parameter was added. | |
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 | The optional parameter is_prefix was added. | |
SimpleXMLElement::__construct | Added the ns and is_prefix parameters. | |
SoapServer::SoapServer | Added the typemap option. | |
XMLReader::open | encoding and options were added. | |
XMLReader::XML | encoding and options were added. | |
5.1.3 | DirectoryIterator::__construct | Throws RuntimeException if the path is an empty string. |
get_headers | This function now uses the default stream context, which can be set/changed with the stream_context_set_default function. | |
http_build_query | Square brackets are escaped. | |
imagecolorallocate | Returns FALSE if the allocation failed. Previously -1 was returned. | |
imagecolorallocatealpha | Returns FALSE if the allocation failed. Previously -1 was returned. | |
imagepng | Added the filters parameter. | |
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 | The function started to validate the timezone_identifier parameter. |
http_build_query | The arg_separator parameter was added. | |
imagepng | Added the quality parameter. | |
parse_url | Added the component parameter. | |
SimpleXMLElement::__construct | Added the options and data_is_url parameters. | |
5.1.1 | debug_backtrace | Aggiunto l'object corrente come possibile elemento di ritorno. |
5.1.0 | DirectoryIterator::__construct | Throws RuntimeException on error. Previously, threw Exception. |
DOMDocument::save | Added the options parameter | |
DOMDocument::saveXML | Added the options parameter | |
class_implements | Added the option to pass the class parameter as a string. Added the autoload parameter. | |
class_parents | Added the option to pass the class parameter as a string. Added the autoload parameter. | |
date_sunrise | Ora emette gli errori time zone E_STRICT e E_NOTICE | |
date_sunset | Ora emette gli errori time zone E_STRICT e E_NOTICE | |
file_put_contents | Added support for LOCK_EX and the ability to pass a stream resource to the data parameter | |
glob | GLOB_ERR was added | |
idate | Ora emette gli errori time zone E_STRICT e E_NOTICE | |
imagerotate | ignore_transparent was added. | |
openssl_pkcs7_verify | The content parameter was added. | |
session_regenerate_id | Added the delete_old_session parameter. | |
sha1_file | Modificata la funzione per utilizzare lr API streams. Ciò significa che si può utlizzare la funzione con i vari warppers, tipo sha1_file('http://example.com/..') | |
str_word_count | Aggiunto il parametro charlist | |
stream_copy_to_stream | Added the offset parameter | |
stream_filter_append | Prior to PHP 5.1.0, this function returns TRUE on success o FALSE in caso di fallimento. | |
stream_filter_prepend | Prior to PHP 5.1.0, this function returns TRUE on success o FALSE in caso di fallimento. | |
stream_get_contents | The offset was added. | |
var_export | Possibilità di esportare classi e array contenenti classi utilizzando il metodo magico __set_state(). | |
XSLTProcessor::registerPHPFunctions | The restrict parameter was added. | |
5.0.5 | php_check_syntax | This function was removed from PHP. |
5.0.3 | php_check_syntax | Calling exit after php_check_syntax resulted in a Segfault. |
5.0.1 | php_check_syntax | error_message is passed by reference. |
5.0.0 | apache_get_modules | Became available when using Apache 1, or the PHP Apache 2 filter API. Before this time, it was only available when using the Apache 2 handler API. |
apache_get_version | Became available with the Apache 2 filter API. | |
empty | Gli oggetti senza proprietà non sono più considerati vuoti. | |
error_reporting | Inserita E_STRICT (non fa parte di E_ALL). | |
file_put_contents | Added context support | |
get_defined_vars | La variabile $GLOBALS viene compresa nella matrice restituita. | |
mb_encode_mimeheader | The indent parameter was added. | |
mb_send_mail | The Content-Type and Content-Transfer-Encoding headers may be redefined as of PHP 5.0.0. Before this time, the values defined by mb_language are always used. | |
opendir | path accetta il wrapper URL ftp:// . | |
openssl_pkcs7_encrypt | The cipherid parameter was added. | |
openssl_sign | The signature_alg parameter was added. | |
proc_open | Added the cwd, env and other_options parameters. | |
sha1_file | Aggiunto il parametro raw_output. | |
stream_get_meta_data | The following entries were added in the returned array: mode, seekable, and uri. | |
uniqid | The prefix parameter was made optional. | |
usleep | This function now works on Windows systems. | |
mysqli_result::fetch_object | Added the ability to return as a different object. |