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. |
PHP 5 | empty | Dal PHP 5, oggetti privi di proprietà non sono più considerati vuoti. |
PHP 4 | empty | Dal PHP 4, la stringa "0" è considerata vuota. |
6 | error_reporting | E_STRICT è diventata parte di E_ALL. |
5.5.0 | pack | The "Z" code was added with equivalent functionality to "a" for Perl compatibility. |
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::options | The MYSQLI_SERVER_PUBLIC_KEY option was added. | |
5.4.7 | parse_url | Fixed host recognition when scheme is ommitted 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 | apache_child_terminate | Questa funzione diventa disponibile sotto FastCGI. Precedentemente, era supportata solo quando PHP era installato come modulo Apache. |
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. | |
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. | |
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. | |
SoapClient::SoapClient | New keep_alive option. | |
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. | |
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. | |
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 an invalid date is specified, 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 | This function is now available on Windows platforms. | |
dns_get_record | Prior to this release, if the authns parameter was given, the addtl parameter was also required. | |
exif_imagetype | Added icon support. | |
fnmatch | This function is now available on Windows platforms. | |
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_arg | This function can now be used in parameter lists. | |
func_get_args | This function can now be used in parameter lists. | |
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_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. | |
func_num_args | This function can now be used in parameter lists. | |
gd_info | JPG Support attribute renamed to JPEG Support. | |
getimagesize | Added icon support. | |
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 | MCRYPT_DEV_RANDOM and MCRYPT_DEV_URANDOM became available on Windows platforms. | |
mcrypt_create_iv | It is no longer required to call srand first. This is now done automatically. | |
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. | |
SWFMovie::streamMP3 | skip added | |
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/..') | |
sqlite_exec | Aggiunto il parametro error_msg | |
sqlite_fetch_column_types | Aggiunto result_type | |
sqlite_query | Aggiunto il parametro error_msg | |
sqlite_unbuffered_query | Aggiunto il parametro error_msg | |
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. | |
XSLTProcessor::registerPHPFunctions | The restrict parameter was added. | |
5.0.5 | php_check_syntax | This function was removed from PHP. |
5.0.4 | sqlite_key | Prima di PHP 5.0.4, sqlite_key poteva essere chiamato solo come metodo dell'oggetto SQLiteResult, e non per via procedurale. |
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. | |
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. |