| 8.4.0 | DateInterval::createFromDateString | Now has a tentative return type of DateInterval.
Previously it was DateIntervalfalse. |
| | DatePeriod::__construct | The signature using isostr has been deprecated,
use DatePeriod::createFromISO8601String instead. |
| | DateTime::modify | Now has a tentative return type of DateTime.
Previously it was DateTimefalse. |
| | DateTimeImmutable::modify | Now has a tentative return type of DateTimeImmutable.
Previously it was DateTimeImmutablefalse. |
| | DOMDocument::registerNodeClass | DOMDocument::registerNodeClass
now has a tentative return of true. |
| | DOMImplementation::createDocument | The function now has the tentative return type DOMDocument. |
| | DOMXPath::registerPhpFunctions | It is now possible to use callables for callbacks
when using restrict with array
entries. |
| | | Invalid callback names now throws a
ValueError.
Passing a non-callable entry now throws a
TypeError. |
| | bcpow | Negative powers of 0 previously returned 0, but now throw a DivisionByZeroError
exception. |
| | bind_textdomain_codeset | Now throws a ValueError if domain
is the empty string. |
| | bind_textdomain_codeset | codeset is optional now.
Previously, the parameter always had to be specified. |
| | bindtextdomain | directory is optional now.
Previously, the parameter always had to be specified. |
| | curl_getinfo | Introduced CURLINFO_POSTTRANSFER_TIME_T constant and posttransfer_time_us (Curl 8.10.0 or later). |
| | curl_multi_select | Now throws a ValueError if timeout
is less than 0 or greater than PHP_INT_MAX. |
| | curl_setopt | CURLOPT_DNS_USE_GLOBAL_CACHE no longer has any effect,
and enabling it on thread-safe PHP builds no longer triggers a warning. |
| | curl_version | feature_list added. |
| | dba_close | The dba parameter expects a Dba\Connection
instance now; previously, a valid dba resource was expected. |
| | dba_delete | The dba parameter expects a Dba\Connection
instance now; previously, a valid dba resource was expected. |
| | dba_exists | The dba parameter expects a Dba\Connection
instance now; previously, a valid dba resource was expected. |
| | dba_fetch | The dba parameter expects a Dba\Connection
instance now; previously, a valid dba resource was expected. |
| | dba_firstkey | The dba parameter expects a Dba\Connection
instance now; previously, a valid dba resource was expected. |
| | dba_insert | The dba parameter expects a Dba\Connection
instance now; previously, a valid dba resource was expected. |
| | dba_key_split | Passing null or false to key
is now deprecated. |
| | dba_nextkey | The dba parameter expects a Dba\Connection
instance now; previously, a valid dba resource was expected. |
| | dba_open | Returns a Dba\Connection instance now;
previously, a resource was returned. |
| | dba_optimize | The dba parameter expects a Dba\Connection
instance now; previously, a valid dba resource was expected. |
| | dba_popen | Returns a Dba\Connection instance now;
previously, a resource was returned. |
| | dba_replace | The dba parameter expects a Dba\Connection
instance now; previously, a valid dba resource was expected. |
| | dba_sync | The dba parameter expects a Dba\Connection
instance now; previously, a valid dba resource was expected. |
| | debug_zval_dump | debug_zval_dump now indicates whether an
array is packed. |
| | dgettext | Now throws a ValueError if domain
is the empty string. |
| | dngettext | Now throws a ValueError if domain
is the empty string. |
| | exit | exit is now a proper function,
therefore it follows the usual
type juggling semantics
is affected by the
strict_types
declare, can be called with named arguments, and be a
variable functions. |
| | exit | A parameterless exit called within
shutdown functions
or object destructors
now resets the exit code to 0; previously the exit code
set by an earlier exit call was kept. |
| | fgetcsv | Relying on the default value of escape is now
deprecated. |
| | flush | Flushing headers without a body will now succeed in FastCGI. |
| | fputcsv | Relying on the default value of escape is now
deprecated. |
| | hash_init | Passing options of a wrong type is now deprecated. |
| | hash_update | Now has a return type of true instead of
bool. |
| | highlight_string | Return type changed from stringbool to stringtrue. |
| | http_build_query | Prior to PHP 8.4.0, BackedEnum properties of
data were converted to objects, rather than their scalar equivalents. |
| | idn_to_ascii | Now throws a ValueError
if the domain parameter is empty. |
| | idn_to_ascii | Now throws a ValueError
if the variant parameter is not
INTL_IDNA_VARIANT_UTS46. |
| | idn_to_utf8 | Now throws a ValueError
if the domain parameter is empty. |
| | idn_to_utf8 | Now throws a ValueError
if the variant parameter is not
INTL_IDNA_VARIANT_UTS46. |
| | imageavif | Now throws a ValueError if quality
or speed is invalid. |
| | imagefilter | Now throws a ValueError
if sub or plus would cause over-/underflow
with the IMG_FILTER_SCATTER filter. |
| | imagejpeg | Now throws a ValueError if quality is invalid. |
| | imagepng | Now throws a ValueError if quality is invalid. |
| | imagescale | Now throws a ValueError if width
or height would cause over-/underflow. |
| | imagescale | Now throws a ValueError if mode is invalid. |
| | imagewebp | Now throws a ValueError if quality is invalid. |
| | lcg_value | This function has been deprecated. |
| | ldap_connect | Calling ldap_connect with more than
two arguments is now deprecated. |
| | ldap_exop | Using more than 4 parameters has been deprecated,
use ldap_exop_sync instead. |
| | libxml_set_streams_context | libxml_set_streams_context now throws a
TypeError when a non-stream resource is passed
to context, instead of throwing later when the
context is used. |
| | long2ip | Return type changed from stringfalse to string. |
| | mb_decode_numericentity | The mb_decode_numericentity function now throws a
ValueError if map
contains any value that cannot be implicitly converted to int. |
| | mb_encode_numericentity | The mb_encode_numericentity function now throws a
ValueError if map
contains any value that cannot be implicitly converted to int. |
| | mb_http_output | mb_http_output now throws a
ValueError if encoding
contains null bytes. |
| | mb_strcut | The behavior is more consistent now on invalid UTF-8 and UTF-16 strings. |
| | odbc_autocommit | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_binmode | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_close | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_columnprivileges | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_columns | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_commit | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_connect | This function returns a Odbc\Connection instance now;
previously, a resource was returned. |
| | odbc_connect | user and password are now nullable,
they are now also optional and default to null. |
| | odbc_connect | Previously, using an empty string for password would not include
pwd in the generated connection string for dsn.
It is now generated to include a pwd which has an empty string as its value.
To restore the previous behaviour password can now be set to null. |
| | odbc_connect | Previously, if dsn contained uid or pwd
both user and password parameters were ignored.
Now user is only ignored if dsn contains
uid, and password is only ignored if
dsn contains pwd. |
| | odbc_cursor | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_data_source | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_error | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_errormsg | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_exec | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_exec | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_execute | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_fetch_array | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_fetch_array | row is now nullable, and its default value
changed from -1 to null, consistent with
odbc_fetch_row. |
| | odbc_fetch_into | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_fetch_into | row is now nullable, and its default value
changed from 0 to null, consistent with
odbc_fetch_row. |
| | odbc_fetch_object | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_fetch_object | row is now nullable, and its default value
changed from -1 to null, consistent with
odbc_fetch_row. |
| | odbc_fetch_row | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_fetch_row | An E_WARNING is now emitted when row
is equal or less than zero. |
| | odbc_field_len | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_field_name | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_field_num | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_field_scale | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_field_type | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_foreignkeys | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_foreignkeys | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_free_result | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_gettypeinfo | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_gettypeinfo | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_longreadlen | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_next_result | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_num_fields | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_num_rows | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_pconnect | This function returns a Odbc\Connection instance now;
previously, a resource was returned. |
| | odbc_pconnect | user and password are now nullable,
they are now also optional and default to null. |
| | odbc_pconnect | Previously, using an empty string for password would not include
pwd in the generated connection string for dsn.
It is now generated to include a pwd which has an empty string as its value.
To restore the previous behaviour password can now be set to null. |
| | odbc_pconnect | Previously, if dsn contained uid or pwd
both user and password parameters were ignored.
Now user is only ignored if dsn contains
uid, and password is only ignored if
dsn contains pwd. |
| | odbc_prepare | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_prepare | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_primarykeys | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_primarykeys | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_procedurecolumns | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_procedurecolumns | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_procedures | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_procedures | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_result | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_result_all | statement expects an Odbc\Result
instance now; previously, a resource was expected. |
| | odbc_rollback | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_setoption | odbc expects an Odbc\Connection
or an Odbc\Result instance now; previously, a
resource was expected. |
| | odbc_specialcolumns | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_specialcolumns | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_statistics | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_statistics | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_tableprivileges | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_tableprivileges | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | odbc_tables | odbc expects an Odbc\Connection
instance now; previously, a resource was expected. |
| | odbc_tables | This function returns an Odbc\Result
instance now; previously, a resource was returned. |
| | openssl_csr_new | The distinguished_names associative array now supports arrays as values,
allowing multiple values to be specified for a single attribute. |
| | openssl_csr_new | The extra_attributes parameter now correctly sets the CSR attributes,
rather than modifying the subject's Distinguished Name as it previously did incorrectly. |
| | openssl_csr_sign | The serial_hex parameter is added. |
| | openssl_password_hash | Function added. |
| | openssl_password_verify | Function added. |
| | openssl_pkey_get_details | Added support for Curve25519 and Curve448 based keys.
Specifically the x25519, ed25519,
x448 and ed448 fields have been introduced. |
| | openssl_pkey_new | Added support for Curve25519 and Curve448 based keys with the introduction of the
x25519, ed25519, x448,
and ed448 fields. |
| | openssl_x509_parse | Parsing certificate with no seconds in UTCTime is no longer allowed for any OpenSSL version.
It was already disallowed for OpenSSL version 3.3+. |
| | password_hash | The default value of the cost option of the
PASSWORD_BCRYPT algorithm was increased from
10 to 12. |
| | pcntl_sigprocmask | A ValueError is thrown if signals
is empty, unless mode is
SIG_SETMASK. |
| | pcntl_sigprocmask | A TypeError is thrown if signals
value is not an int. |
| | pcntl_sigprocmask | A ValueError is thrown if signals
value is invalid. |
| | pcntl_sigprocmask | A ValueError is thrown if mode
value is not SIG_BLOCK, SIG_UNBLOCK or
SIG_SETMASK. |
| | pcntl_sigtimedwait | On failure, false is now returned; previously
-1 was returned in some cases. |
| | pcntl_sigtimedwait | A ValueError is thrown if signals
is empty. |
| | pcntl_sigtimedwait | A TypeError is thrown if signals
value is not an int. |
| | pcntl_sigtimedwait | A ValueError is thrown if signals
value is invalid. |
| | pcntl_sigtimedwait | A ValueError is thrown if seconds
value is less than 0. |
| | pcntl_sigtimedwait | A ValueError is thrown if nanoseconds
value is not between 0 and 1e9. |
| | pcntl_sigtimedwait | A ValueError is thrown if both seconds and
nanoseconds values are 0. |
| | pcntl_sigwaitinfo | On failure, false is now returned; previously
-1 was returned in some cases. |
| | pcntl_sigwaitinfo | A ValueError is thrown if signals
is empty. |
| | pcntl_sigwaitinfo | A TypeError is thrown if signals
value is not an int. |
| | pcntl_sigwaitinfo | A ValueError is thrown if signals
value is invalid. |
| | pg_fetch_result | The two argument signature of
pg_fetch_result
(result,
field) is now deprecated.
Use the three argument signature with
row set to null instead. |
| | pg_field_is_null | The two argument signature of
pg_field_is_null
(result,
field) is now deprecated.
Use the three argument signature with
row set to null instead. |
| | pg_field_prtlen | The two argument signature of
pg_field_prtlen
(result,
field_name_or_number) is now deprecated.
Use the three argument signature with
row set to null instead. |
| | pg_select | conditions is now optional. |
| | php_uname | Throws a ValueError when an invalid
mode is specified. |
| | posix_isatty | Set errno (error number) to EBADF when the
file descriptor/stream passed is invalid. |
| | pow | Raising 0 to a negative
exponent is now deprecated. |
| | print_r | Return type changed from stringbool to stringtrue. |
| | round | Four new rounding modes have been added. |
| | round | Now throws a ValueError if
mode is invalid. |
| | session_set_save_handler | Calling session_set_save_handler with more
than two arguments is now deprecated.
Use the two argument signature instead. |
| | simplexml_import_dom | Added support for Dom\Document. |
| | simplexml_import_dom | This function now throws a TypeError instead of
a ValueError when passed a
non-XML or non-HTML node. |
| | socket_create_listen | The default value of backlog is now SOMAXCONN.
Previously it was 128. |
| | sodium_crypto_aead_aes256gcm_decrypt | This function is now also defined on aarch64.
Previously it was only defined on x86 and x86_64. |
| | sodium_crypto_aead_aes256gcm_encrypt | This function is now also defined on aarch64.
Previously it was only defined on x86 and x86_64. |
| | sodium_crypto_aead_aes256gcm_is_available | This function may now return true on aarch64 CPUs with the ARM
cryptographic extensions.
Previously, hardware-accelerated AES-256-GCM was only detected on x86
and x86_64, and this function always returned false on aarch64. |
| | sodium_crypto_aead_aes256gcm_keygen | This function is now also defined on aarch64.
Previously it was only defined on x86 and x86_64. |
| | str_getcsv | Relying on the default value of escape is now
deprecated. |
| | str_getcsv | Now throws a ValueError if
separator, enclosure,
or escape is invalid.
This mimics the behavior of fgetcsv and
fputcsv. |
| | strcspn | Prior to PHP 8.4.0, when characters was the empty string,
the search would incorrectly stop at the first null byte in string. |
| | stream_bucket_append | bucket expects a StreamBucket instance now; previously, an stdClass was expected. |
| | stream_bucket_make_writeable | This function returns a StreamBucket instance now; previously, an stdClass was returned. |
| | stream_bucket_new | This function returns a StreamBucket instance now; previously, an stdClass was returned. |
| | stream_bucket_prepend | bucket expects a StreamBucket instance now; previously, an stdClass was expected. |
| | stream_context_set_option | The alternative 2-parameter signature is now deprecated.
Use stream_context_set_options instead. |
| | tempnam | The name of files created by tempnam are
now 13 bytes longer. The total length is still
platform-dependent. |
| | textdomain | Now throws a ValueError if domain
is the empty string. |
| | textdomain | domain is optional now.
Previously, the parameter always had to be specified. |
| | trigger_error | Passing E_USER_ERROR as the
error_level is now deprecated.
Throw an Exception or
call exit instead. |
| | trigger_error | The function now has a return type of true
instead of bool. |
| | unserialize | Now throws TypeError and
ValueError if the allowed_classes
element of options is neither an array of class names
nor a bool. |
| | unserialize | Unserializing strings using the uppercase "S" tag
is now deprecated; use the lowercase "s" tag instead. |
| | xml_parser_set_option | Added the option XML_OPTION_PARSE_HUGE. |
| | xml_set_character_data_handler | Passing a non-callable string to
handler is now deprecated,
use a proper callable for methods, or null to reset the handler. |
| | xml_set_character_data_handler | The validity of handler as a callable
is now checked when setting the handler instead of checking when calling it. |
| | xml_set_default_handler | Passing a non-callable string to
handler is now deprecated,
use a proper callable for methods, or null to reset the handler. |
| | xml_set_default_handler | The validity of handler as a callable
is now checked when setting the handler instead of checking when calling it. |
| | xml_set_element_handler | Passing a non-callable string to
handler is now deprecated,
use a proper callable for methods, or null to reset the handler. |
| | xml_set_element_handler | The validity of handler as a callable
is now checked when setting the handler instead of checking when calling it. |
| | xml_set_end_namespace_decl_handler | Passing a non-callable string to
handler is now deprecated,
use a proper callable for methods, or null to reset the handler. |
| | xml_set_end_namespace_decl_handler | The validity of handler as a callable
is now checked when setting the handler instead of checking when calling it. |
| | xml_set_external_entity_ref_handler | Passing a non-callable string to
handler is now deprecated,
use a proper callable for methods, or null to reset the handler. |
| | xml_set_external_entity_ref_handler | The validity of handler as a callable
is now checked when setting the handler instead of checking when calling it. |
| | xml_set_notation_decl_handler | Passing a non-callable string to
handler is now deprecated,
use a proper callable for methods, or null to reset the handler. |
| | xml_set_notation_decl_handler | The validity of handler as a callable
is now checked when setting the handler instead of checking when calling it. |
| | xml_set_object | This function is now deprecated,
instead pass proper callable values to
xml_set_ |
| | xml_set_processing_instruction_handler | Passing a non-callable string to
handler is now deprecated,
use a proper callable for methods, or null to reset the handler. |
| | xml_set_processing_instruction_handler | The validity of handler as a callable
is now checked when setting the handler instead of checking when calling it. |
| | xml_set_start_namespace_decl_handler | Passing a non-callable string to
handler is now deprecated,
use a proper callable for methods, or null to reset the handler. |
| | xml_set_start_namespace_decl_handler | The validity of handler as a callable
is now checked when setting the handler instead of checking when calling it. |
| | xml_set_unparsed_entity_decl_handler | Passing a non-callable string to
handler is now deprecated,
use a proper callable for methods, or null to reset the handler. |
| | xml_set_unparsed_entity_decl_handler | The validity of handler as a callable
is now checked when setting the handler instead of checking when calling it. |
| | IntlCalendar::set | This had been deprecated in favor of the methods
IntlCalendar::setDate and
IntlCalendar::setDateTime. |
| | IntlDateFormatter::create | A ValueError is thrown if
locale is invalid. |
| | IntlGregorianCalendar::__construct | This had been deprecated in favor of the methods
IntlGregorianCalendar::createFromDate and
IntlGregorianCalendar::createFromDateTime. |
| | mysqli::kill | Both mysqli::kill and
mysqli_kill are now deprecated. Use the
KILL SQL command instead. |
| | mysqli::ping | Both mysqli::ping and
mysqli_ping are now deprecated.
As of PHP 8.2.0, the reconnect feature is no longer
available, making this function obsolete. |
| | mysqli::query | When connecting to MySQL 8.0.24 or later, the error code reported
for a server wait timeout is now 4031
(ER_CLIENT_INTERACTION_TIMEOUT) instead of
2006 (CR_SERVER_GONE_ERROR). |
| | mysqli::refresh | Both mysqli::refresh and
mysqli_refresh are now deprecated.
Use FLUSH SQL commands instead. |
| | mysqli::store_result | Passing the mode parameter is now deprecated.
The parameter has had no effect as of PHP 8.1.0. |
| | NumberFormatter::create | A ValueError is thrown if
locale is invalid. |
| | Pdo\Sqlite::createCollation | A TypeError is now thrown if the
callback does not return an int;
previously the returned value was cast to int. |
| | PDO::getAttribute | It is now possible to fetch the value of the
PDO::ATTR_STRINGIFY_FETCHES attribute. |
| | PDO::getAttribute | The value of PDO::ATTR_AUTOCOMMIT is now returned as
bool by the MySQL and Firebird drivers, and the value of
PDO::ATTR_EMULATE_PREPARES and
PDO::MYSQL_ATTR_DIRECT_QUERY is now returned as
bool by the MySQL driver; previously, they were returned as
int. |
| | PDOStatement::setFetchMode | The return type is true now; previously, it was bool. |
| | Phar::setAlias | Phar::setAlias
now has a tentative return of true. |
| | Phar::setDefaultStub | Phar::setDefaultStub
now has a tentative return of true. |
| | Phar::setStub | The return type is true now; previously, it was bool. |
| | PharData::setStub | The return type is true now; previously, it was bool. |
| | PDO_ODBC DSN | When passing an empty string to the password argument in the PDO constructor, pwd
was not included in the connection string created until now, but the behavior has been changed to include
it as an empty string. Passing null for the password argument in the PDO constructor results in the same
behavior as before. |
| | PDO_ODBC DSN | Changed the behavior to ignore the user name argument and the password argument in the PDO constructor
separately when the DSN contains uid or pwd.
Previously, if included only either uid or pwd in the DSN,
both the user name argument and the password argument in the PDO constructor were ignored. |
| | ReflectionClassConstant::__toString | The attached doc comment is now included. |
| | ReflectionGenerator::getFunction | ReflectionGenerator::getFunction
may now be called after the generator finished executing. |
| | ReflectionProperty::__toString | The attached doc comment is now included. |
| | ResourceBundle::get | A TypeError is thrown if
the offset type is invalid.
A ValueError is thrown if
if index is a string
and is empty or is a int and does not
fit into a 32 bit integer type. |
| | SoapServer::addFunction | Passing an int to
SoapServer::addFunction,
including SOAP_FUNCTIONS_ALL, has been deprecated. |
| | SoapServer::setPersistence | SOAP_PERSISTENCE_SESSION now works when the session
extension is built as a shared module; previously it failed silently.
SoapServer::setPersistence now also throws an
Error when SOAP_PERSISTENCE_SESSION
is requested while the session extension is not available. |
| | SoapVar::__construct | An instance of DateTimeInterface used as the
value for an xsd:dateTime element, or a similar date
and time type, is now serialized to its ISO 8601 representation, instead
of being serialized as an empty string. |
| | SplFileObject::fgetcsv | Relying on the default value of escape is now
deprecated. |
| | SplFileObject::fputcsv | Relying on the default value of escape is now
deprecated. |
| | SplFileObject::setCsvControl | Relying on the default value of escape is now
deprecated. |
| | SplFixedArray::setSize | SplFixedArray::setSize
now has a tentative return of true. |
| | SplFixedArray::__wakeup | This method is now deprecated, use
SplFixedArray::__unserialize
instead. |
| | SplHeap::insert | SplHeap::insert
now has a tentative return of true. |
| | SplHeap::recoverFromCorruption | SplHeap::recoverFromCorruption
now has a tentative return of true. |
| | SplPriorityQueue::insert | SplPriorityQueue::insert
now has a tentative return of true. |
| | SplPriorityQueue::recoverFromCorruption | SplPriorityQueue::recoverFromCorruption
now has a tentative return of true. |
| | tidy::__construct | Failures when executing the constructor now throw instead of silently
creating an unusable object. |
| | XMLReader::open | Passing an invalid encoding will now throw a
ValueError. |
| | XMLReader::XML | Passing an invalid encoding will now throw a
ValueError. |
| | XMLWriter::startDocument | Passing an encoding containing null bytes will
now throw a ValueError. |
| | XSLTProcessor::importStylesheet | Added support for Dom\Document. |
| | XSLTProcessor::importStylesheet | Now throws a TypeError instead of a
ValueError if
stylesheet is not an XML object. |
| | XSLTProcessor::registerPHPFunctions | Invalid callback names now throws a
ValueError.
Passing a non-callable entry now throws a
TypeError. |
| | XSLTProcessor::registerPHPFunctions | It is now possible to use callables for callbacks
when using functions with array
entries. |
| | XSLTProcessor::setParameter | Now throws a ValueError if any of the
arguments contain null bytes instead of silently truncating. |
| | XSLTProcessor::setParameter | It is now possible to set a parameter value containing both single and
double quotes. Prior to PHP 8.4.0, this resulted in a warning. |
| | XSLTProcessor::transformToDoc | Now throws an Error if the callback
cannot be invoked, instead of emitting a warning. |
| | XSLTProcessor::transformToDoc | Added support for Dom\Document. |
| | XSLTProcessor::transformToUri | Now throws an Error if the callback
cannot be invoked, instead of emitting a warning. |
| | XSLTProcessor::transformToUri | Added support for Dom\Document. |
| | XSLTProcessor::transformToXml | Now throws an Error if the callback
cannot be invoked, instead of emitting a warning. |
| | XSLTProcessor::transformToXml | Added support for Dom\Document. |
| 8.1.0 | DateTime::setTime | The behaviour with double existing hours (during the fall-back
DST transition) changed. Previously PHP would pick the second occurrence
(after the DST transition), instead of the first occurrence (before DST
transition). |
| | DateTimeImmutable::setTime | The behaviour with double existing hours (during the fall-back
DST transition) changed. Previously PHP would pick the second occurrence
(after the DST transition), instead of the first occurrence (before DST
transition). |
| | DateTimeZone::getTransitions | The default value of timestampEnd has been changed to 2147483647. Previously,
it was PHP_INT_MAX. |
| | DirectoryIterator::key | When the iterator is uninitialized, an Error is
thrown now. Previously, the method returned false. |
| | DOMDocument::createComment | In case of an error, a DomException is thrown now.
Previously, false was returned. |
| | DOMDocument::createDocumentFragment | In case of an error, a DomException is thrown now.
Previously, false was returned. |
| | DOMDocument::createTextNode | In case of an error, a DomException is thrown now.
Previously, false was returned. |
| | current | Calling this function on objects is deprecated.
Either convert the object to an array using get_mangled_object_vars first, or use the methods
provided by a class that implements Iterator, such as ArrayIterator, instead. |
| | date_sunrise | This function has been deprecated in favor of date_sun_info. |
| | date_sunset | This function has been deprecated in favor of date_sun_info. |
| | dba_popen | handler is now nullable. |
| | define | value can now be an object. |
| | end | Calling this function on objects is deprecated.
Either convert the object to an array using get_mangled_object_vars first, or use the methods
provided by a class that implements Iterator, such as ArrayIterator, instead. |
| | exif_imagetype | Added AVIF support. |
| | finfo_buffer | The finfo parameter expects an finfo
instance now; previously, a resource was expected. |
| | finfo_close | This function is a NOP now. |
| | finfo_close | The finfo parameter expects an finfo
instance now; previously, a resource was expected. |
| | finfo_file | The finfo parameter expects an finfo
instance now; previously, a resource was expected. |
| | finfo_open | Returns an finfo instance now;
previously, a resource was returned. |
| | finfo_set_flags | The finfo parameter expects an finfo
instance now; previously, a resource was expected. |
| | fputcsv | The optional eol parameter has been added. |
| | ftp_alloc | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_append | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_cdup | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_chdir | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_chmod | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_close | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_connect | Returns an FTP\Connection instance now;
previously, a resource was returned. |
| | ftp_delete | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_exec | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_fget | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_fput | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_get | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_get_option | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_login | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_mdtm | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_mkdir | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_mlsd | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_nb_continue | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_nb_fget | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_nb_fput | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_nb_get | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_nb_put | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_nlist | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_pasv | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_put | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_pwd | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_raw | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_rawlist | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_rename | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_rmdir | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_set_option | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_site | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_size | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | ftp_ssl_connect | Returns an FTP\Connection instance now;
previously, a resource was returned. |
| | ftp_systype | The ftp parameter expects an FTP\Connection
instance now; previously, a resource was expected. |
| | get_html_translation_table | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. |
| | gmp_init | Support for explicit octal prefixes 0o and
0O has been added for num strings.
Interpretation of such prefixes when base is
0 has also been added. |
| | hash | The options parameter has been added. |
| | hash_algos | Support for MurmurHash3 and xxHash algorithms has been added. |
| | hash_file | The options parameter has been added. |
| | hash_init | The options parameter has been added. |
| | html_entity_decode | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. |
| | htmlentities | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. |
| | htmlspecialchars | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. |
| | htmlspecialchars_decode | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. |
| | imagechar | The font parameter now accepts both an GdFont instance
and an int; previously only int was accepted. |
| | imagecharup | The font parameter now accepts both an GdFont instance
and an int; previously only int was accepted. |
| | imagefilledpolygon | The parameter num_points has been deprecated. |
| | imagefontheight | The font parameter now accepts both an GdFont instance
and an int; previously only int was accepted. |
| | imagefontwidth | The font parameter now accepts both an GdFont instance
and an int; previously only int was accepted. |
| | imageloadfont | Returns an GdFont instance now;
previously, an int was returned. |
| | imageopenpolygon | The parameter num_points has been deprecated. |
| | imagepolygon | The parameter num_points has been deprecated. |
| | imagestring | The font parameter now accepts both an GdFont instance
and an int; previously only int was accepted. |
| | imagestringup | The font parameter now accepts both an GdFont instance
and an int; previously only int was accepted. |
| | imagetypes | IMG_AVIF added. |
| | ini_set | value now accepts any scalar type (including null).
Previously, only string values were accepted. |
| | json_last_error | JSON_ERROR_NON_BACKED_ENUM was added. |
| | key | Calling this function on objects is deprecated.
Either convert the object to an array using get_mangled_object_vars first, or use the methods
provided by a class that implements Iterator, such as ArrayIterator, instead. |
| | ldap_add | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_add_ext | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_add_ext | Returns an LDAP\Result instance now;
previously, a resource was returned. |
| | ldap_bind | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_bind_ext | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_bind_ext | Returns an LDAP\Result instance now;
previously, a resource was returned. |
| | ldap_compare | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_connect | Returns an LDAP\Connection instance now;
previously, a resource was returned. |
| | ldap_count_entries | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_count_entries | The result parameter expects an LDAP\Result
instance now; previously, a valid ldap result resource was expected. |
| | ldap_count_references | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_count_references | The result parameter expects an LDAP\Result
instance now; previously, a valid ldap result resource was expected. |
| | ldap_delete | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_delete_ext | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_delete_ext | Returns an LDAP\Result instance now;
previously, a resource was returned. |
| | ldap_errno | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_error | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_exop | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_exop_passwd | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_exop_refresh | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_exop_whoami | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_first_attribute | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_first_attribute | The entry parameter expects an LDAP\ResultEntry
instance now; previously, a valid ldap result entry resource was expected. |
| | ldap_first_entry | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_first_entry | The result parameter expects an LDAP\Result
instance now; previously, a valid ldap result resource was expected. |
| | ldap_first_entry | Returns an LDAP\ResultEntry instance now;
previously, a resource was returned. |
| | ldap_free_result | The result parameter expects an LDAP\Result
instance now; previously, a valid ldap result resource was expected. |
| | ldap_get_attributes | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_get_attributes | The entry parameter expects an LDAP\ResultEntry
instance now; previously, a valid ldap result entry resource was expected. |
| | ldap_get_dn | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_get_dn | The entry parameter expects an LDAP\ResultEntry
instance now; previously, a valid ldap result entry resource was expected. |
| | ldap_get_entries | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_get_entries | The result parameter expects an LDAP\Result
instance now; previously, a valid ldap result resource was expected. |
| | ldap_get_option | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_get_values | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_get_values | The entry parameter expects an LDAP\ResultEntry
instance now; previously, a valid ldap result entry resource was expected. |
| | ldap_get_values_len | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_get_values_len | The entry parameter expects an LDAP\ResultEntry
instance now; previously, a valid ldap result entry resource was expected. |
| | ldap_list | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_list | Returns an LDAP\Result instance now;
previously, a resource was returned. |
| | ldap_mod_add | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_mod_del | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_mod_replace | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_modify_batch | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_mod_add_ext | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_mod_add_ext | Returns an LDAP\Result instance now;
previously, a resource was returned. |
| | ldap_mod_del_ext | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_mod_del_ext | Returns an LDAP\Result instance now;
previously, a resource was returned. |
| | ldap_mod_replace_ext | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_mod_replace_ext | Returns an LDAP\Result instance now;
previously, a resource was returned. |
| | ldap_next_attribute | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_next_attribute | The entry parameter expects an LDAP\ResultEntry
instance now; previously, a valid ldap result entry resource was expected. |
| | ldap_next_entry | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_next_entry | The entry parameter expects an LDAP\ResultEntry
instance now; previously, a valid ldap result entry resource was expected. |
| | ldap_next_entry | Returns an LDAP\ResultEntry instance now;
previously, a resource was returned. |
| | ldap_parse_exop | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_parse_exop | The result parameter expects an LDAP\Result
instance now; previously, a valid ldap result resource was expected. |
| | ldap_parse_result | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_parse_result | The result parameter expects an LDAP\Result
instance now; previously, a valid ldap result resource was expected. |
| | ldap_read | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_read | Returns an LDAP\Result instance now;
previously, a resource was returned. |
| | ldap_rename | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_rename_ext | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_rename_ext | Returns an LDAP\Result instance now;
previously, a resource was returned. |
| | ldap_sasl_bind | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_search | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_search | Returns an LDAP\Result instance now;
previously, a resource was returned. |
| | ldap_set_option | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_set_rebind_proc | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | ldap_unbind | The ldap parameter expects an LDAP\Connection
instance now; previously, a valid ldap link resource was expected. |
| | mb_check_encoding | Calling this function with null as value or without argument is deprecated. |
| | mhash | This function has been deprecated.
Use the hash_*() functions instead. |
| | mhash_count | This function has been deprecated.
Use the hash_*() functions instead. |
| | mhash_get_block_size | This function has been deprecated.
Use the hash_*() functions instead. |
| | mhash_get_hash_name | This function has been deprecated.
Use the hash_*() functions instead. |
| | mhash_keygen_s2k | This function has been deprecated.
Use the hash_*() functions instead. |
| | next | Calling this function on objects is deprecated.
Either convert the object to an array using get_mangled_object_vars first, or use the methods
provided by a class that implements Iterator, such as ArrayIterator, instead. |
| | odbc_result_all | This function has been deprecated. |
| | openssl_cms_encrypt | The default cipher algorithm (cipher_algo) is now
AES-128-CBC (OPENSSL_CIPHER_AES_128_CBC). Previously,
PKCS7/CMS was used (OPENSSL_CIPHER_RC2_40). |
| | openssl_decrypt | tag is now nullable. |
| | openssl_pkcs7_encrypt | The default cipher algorithm (cipher_algo) is now
AES-128-CBC (OPENSSL_CIPHER_AES_128_CBC). Previously,
PKCS7/CMS was used (OPENSSL_CIPHER_RC2_40). |
| | pg_affected_rows | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_cancel_query | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_client_encoding | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_close | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_connect | Returns an PgSql\Connection instance now;
previously, a resource was returned. |
| | pg_connect_poll | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_connection_busy | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_connection_reset | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_connection_status | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_consume_input | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_convert | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_copy_from | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_copy_to | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_dbname | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_delete | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_end_copy | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_escape_bytea | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_escape_identifier | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_escape_literal | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_escape_string | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_execute | Returns an PgSql\Result instance now;
previously, a resource was returned. |
| | pg_execute | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_fetch_all | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_fetch_all_columns | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_fetch_array | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_fetch_assoc | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_fetch_object | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_fetch_result | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_fetch_row | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_field_is_null | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_field_name | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_field_num | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_field_prtlen | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_field_size | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_field_table | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_field_type | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_field_type_oid | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_flush | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_free_result | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_get_notify | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_get_pid | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_get_result | Returns an PgSql\Result instance now;
previously, a resource was returned. |
| | pg_get_result | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_host | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_insert | Returns an PgSql\Result instance now;
previously, a resource was returned. |
| | pg_insert | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_last_error | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_last_notice | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_last_oid | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_lo_close | The lob parameter expects an PgSql\Lob
instance now; previously, a resource was expected. |
| | pg_lo_create | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_lo_export | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_lo_import | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_lo_open | Returns an PgSql\Lob instance now;
previously, a resource was returned. |
| | pg_lo_open | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_lo_read | The lob parameter expects an PgSql\Lob
instance now; previously, a resource was expected. |
| | pg_lo_read_all | The lob parameter expects an PgSql\Lob
instance now; previously, a resource was expected. |
| | pg_lo_seek | The lob parameter expects an PgSql\Lob
instance now; previously, a resource was expected. |
| | pg_lo_tell | The lob parameter expects an PgSql\Lob
instance now; previously, a resource was expected. |
| | pg_lo_truncate | The lob parameter expects an PgSql\Lob
instance now; previously, a resource was expected. |
| | pg_lo_unlink | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_lo_write | The lob parameter expects an PgSql\Lob
instance now; previously, a resource was expected. |
| | pg_meta_data | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_num_fields | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_num_rows | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_options | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_parameter_status | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_pconnect | Returns a PgSql\Connection instance now;
previously, a resource was returned. |
| | pg_ping | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_port | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_prepare | Returns an PgSql\Result instance now;
previously, a resource was returned. |
| | pg_prepare | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_put_line | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_query | Returns an PgSql\Result instance now;
previously, a resource was returned. |
| | pg_query | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_query_params | Returns an PgSql\Result instance now;
previously, a resource was returned. |
| | pg_query_params | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_result_error | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_result_error_field | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_result_seek | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_result_status | The result parameter expects an PgSql\Result
instance now; previously, a resource was expected. |
| | pg_select | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_send_execute | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_send_prepare | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_send_query | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_send_query_params | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_set_client_encoding | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_set_error_verbosity | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_socket | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_trace | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_transaction_status | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_tty | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_untrace | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_update | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | pg_version | The connection parameter expects an PgSql\Connection
instance now; previously, a resource was expected. |
| | prev | Calling this function on objects is deprecated.
Either convert the object to an array using get_mangled_object_vars first, or use the methods
provided by a class that implements Iterator, such as ArrayIterator, instead. |
| | reset | Calling this function on objects is deprecated.
Either convert the object to an array using get_mangled_object_vars first, or use the methods
provided by a class that implements Iterator, such as ArrayIterator, instead. |
| | snmp3_get | The authentication protocol now accepts "SHA256"
and "SHA512" when supported by the Net-SNMP library. |
| | snmp3_getnext | The authentication protocol now accepts "SHA256"
and "SHA512" when supported by the Net-SNMP library. |
| | snmp3_real_walk | The authentication protocol now accepts "SHA256"
and "SHA512" when supported by the Net-SNMP library. |
| | snmp3_set | The authentication protocol now accepts "SHA256"
and "SHA512" when supported by the Net-SNMP library. |
| | snmp3_walk | The authentication protocol now accepts "SHA256"
and "SHA512" when supported by the Net-SNMP library. |
| | stream_select | microseconds is now nullable. |
| | strptime | This function has been deprecated.
Use date_parse_from_format instead (for locale-independent parsing),
or IntlDateFormatter::parse (for locale-dependent parsing) |
| | IntlDateFormatter::create | Parameters dateType and
timeType are now optional. |
| | MultipleIterator::current | A RuntimeException is now thrown if
MultipleIterator::current is called on an
invalid iterator. Previously, false was returned. |
| | MultipleIterator::key | A RuntimeException is now thrown if
MultipleIterator::key is called on an
invalid iterator. Previously, false was returned. |
| | mysqli_driver::$report_mode | The default value is now MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT.
Previously, it was MYSQLI_REPORT_OFF. |
| | mysqli_result::fetch_all | Now also available when linking against libmysqlclient. |
| | mysqli_stmt::execute | The optional params parameter has been added. |
| | mysqli_stmt::next_result | Now also available when linking against libmysqlclient. |
| | mysqli::__construct | mysqli::connect now returns true instead of null on success. |
| | mysqli::$client_info | Calling mysqli_get_client_info with the
mysql argument has been deprecated.
This function never required a parameter, but incorrectly allowed it as
an optional parameter. |
| | mysqli::$client_info | The object-oriented style mysqli::get_client_info
has been deprecated. |
| | mysqli::init | The object-oriented style mysqli::init method
has been deprecated.
Replace calls to parent::init with
parent::__construct. |
| | Phar::buildFromDirectory | Phar::buildFromDirectory no longer returns false. |
| | Phar::buildFromIterator | Phar::buildFromIterator no longer returns false. |
| | PharData::buildFromDirectory | PharData::buildFromDirectory no longer returns false. |
| | PharData::buildFromIterator | PharData::buildFromIterator no longer returns false. |
| | ReflectionFunctionAbstract::isStatic | This method has been pulled up. Previously, it was only defined in
ReflectionMethod. |
| | ReflectionClassConstant::getName | Throws an Error in case the name property has not been initialized.
Previously, the method returned false on failure. |
| | ReflectionExtension::__clone | This method is no longer final. |
| | ReflectionFunctionAbstract::__clone | This method is no longer final. |
| | ReflectionMethod::setAccessible | Calling this method has no effect; all methods are invokable by default. |
| | ReflectionParameter::__clone | This method is no longer final. |
| | ReflectionProperty::__clone | This method is no longer final. |
| | ReflectionProperty::getValue | Private and protected properties can be accessed by
ReflectionProperty::getValue right away.
Previously, they needed to be made accessible by calling
ReflectionProperty::setAccessible; otherwise
a ReflectionException was thrown. |
| | ReflectionProperty::setAccessible | Calling this method has no effect; all properties are accessible
by default. |
| | ReflectionProperty::setValue | Private and protected properties can be accessed by
ReflectionProperty::setValue right away.
Previously, they needed to be made accessible by calling
ReflectionProperty::setAccessible; otherwise
a ReflectionException was thrown. |
| | ReflectionZendExtension::__clone | This method is no longer final. |
| | SimpleXMLElement::current | An Error is now thrown if
SimpleXMLElement::current is called on an
invalid iterator. Previously, null was returned. |
| | SimpleXMLElement::key | An Error is now thrown if
SimpleXMLElement::key is called on an
invalid iterator. Previously, false was returned. |
| | SNMP::setSecurity | The authentication protocol now accepts "SHA256"
and "SHA512" when supported by the Net-SNMP library. |
| | SplFileObject::fputcsv | The optional eol parameter has been added. |
| | SplObjectStorage::current | SplObjectStorage::current now throws an Error exception
if the current position is invalid. Previously, false was returned instead. |
| | SQLite3Result::finalize | This method now throws an Error exception if the
object is not correct initialized. Previously, it returned false. |
| | SQLite3Stmt::close | This method now throws an Error exception if the
object is not correct initialized. Previously, it returned
false. |
| 8.0.0 | CURLFile::__construct | mime_type and posted_filename
are nullable now; previously their default was 0. |
| | DateInterval::__construct | W can be combined with D. |
| | DateTime::createFromImmutable | The method returns an instance of the currently invoked class now. Previously, it created a new instance
of DateTime. |
| | DateTimeInterface::format | The format character p has been added. |
| | DateTimeInterface::getTimestamp | These functions no longer return false on failure. |
| | DateTimeImmutable::createFromMutable | The method returns an instance of the currently invoked class now. Previously, it created a new instance
of DateTimeImmutable. |
| | DateTimeZone::listIdentifiers | Prior to this version, false was returned on failure. |
| | Directory::close | No parameter is accepted. Previously, a directory handle could be passed as argument. |
| | Directory::read | No parameter is accepted. Previously, a directory handle could be passed as argument. |
| | Directory::rewind | No parameter is accepted. Previously, a directory handle could be passed as argument. |
| | DirectoryIterator::__construct | Now throws a ValueError if
directory is an empty string;
previously it threw a RuntimeException. |
| | DOMDocument::load | Calling this function statically will
now throw an Error.
Previously, an E_DEPRECATED was raised. |
| | DOMDocument::loadHTML | Calling this function statically will
now throw an Error.
Previously, an E_DEPRECATED was raised. |
| | DOMDocument::loadHTMLFile | Calling this function statically will
now throw an Error.
Previously, an E_DEPRECATED was raised. |
| | DOMDocument::loadXML | Passing an empty string as source now throws a
ValueError; previously, an E_WARNING
was raised and false was returned. |
| | DOMDocument::loadXML | Calling this function statically will
now throw an Error.
Previously, an E_DEPRECATED was raised. |
| | DOMImplementation::createDocument | doctype is now nullable. |
| | DOMImplementation::createDocument | Calling this function statically will
now throw an Error.
Previously, an E_DEPRECATED was raised. |
| | DOMImplementation::createDocumentType | Calling this function statically will
now throw an Error.
Previously, an E_DEPRECATED was raised. |
| | DOMImplementation::hasFeature | Calling this function statically will
now throw an Error.
Previously, an E_DEPRECATED was raised. |
| | FFI::cdef | lib is nullable now. |
| | FFI::string | size is nullable now; previously, its default was
0. |
| | FilesystemIterator::__construct | Now throws a ValueError if
directory is an empty string;
previously it threw a RuntimeException. |
| | abs | num no longer accepts internal objects which support
numeric conversion. |
| | apache_note | note_value is nullable now. |
| | array_chunk | If length is less than 1,
a ValueError will be thrown now;
previously, an error of level E_WARNING
has been raised instead, and the function returned null. |
| | array_column | Objects in columns indicated by index_key parameter
will no longer be cast to string and will now throw a TypeError instead. |
| | array_combine | array_combine will now throw a
ValueError if the number of elements
for each array is not equal;
previously this function returned false instead. |
| | array_diff | This function can now be called with only one parameter.
Formerly, at least two parameters have been required. |
| | array_diff_assoc | This function can now be called with only one parameter.
Formerly, at least two parameters have been required. |
| | array_diff_key | This function can now be called with only one parameter.
Formerly, at least two parameters have been required. |
| | array_fill | array_fill now throws a ValueError
if count is out of range; previously E_WARNING
was raised, and the function returned false. |
| | array_filter | callback is nullable now. |
| | array_filter | If callback expects a parameter to be passed
by reference, this function will now emit an E_WARNING. |
| | array_intersect | This function can now be called with only one parameter.
Formerly, at least two parameters have been required. |
| | array_intersect_assoc | This function can now be called with only one parameter.
Formerly, at least two parameters have been required. |
| | array_intersect_key | This function can now be called with only one parameter.
Formerly, at least two parameters have been required. |
| | array_key_exists | The key parameter now accepts
bool, float, int,
null, resource, and
string as arguments. |
| | array_key_exists | Passing an object to the array parameter is no longer supported. |
| | array_map | If callback expects a parameter to be passed
by reference, this function will now emit an E_WARNING. |
| | array_multisort | Now throws a ValueError or TypeError for invalid arguments.
Previously, an E_WARNING was raised and false was returned. |
| | array_rand | array_rand now throws a ValueError
if num is out of range; previously an
E_WARNING was raised, and the function returned null. |
| | array_rand | array_rand now throws a ValueError
if array is empty; previously an
E_WARNING was raised, and the function returned null. |
| | array_reduce | If callback expects a parameter to be passed
by reference, this function will now emit an E_WARNING. |
| | array_splice | length is nullable now. |
| | array_walk | If callback expects the second or third parameter to be passed
by reference, this function will now emit an E_WARNING. |
| | assert | assert will no longer evaluate string arguments, instead they will be
treated like any other argument. assert($a == $b) should be used instead of
assert('$a == $b'). The assert.quiet_eval php.ini directive and
the ASSERT_QUIET_EVAL constant have also been removed, as they would no longer
have any effect. |
| | assert | If description is an instance of
Throwable, the object is thrown if the assertion
fails, regardless of the value of
assert.exception. |
| | assert | If description is an instance of
Throwable, no user callback is called even
if it set. |
| | assert | Declaring a function called assert() inside a namespace is
no longer allowed, and issues E_COMPILE_ERROR. |
| | assert_options | If option is not a valid option,
a ValueError is now thrown.
Previously false was returned. |
| | base_convert | Now throws a ValueError if from_base or
to_base is out of range.
Previously, an E_WARNING was raised and false was returned. |
| | bcadd | scale is now nullable. |
| | bccomp | scale is now nullable. |
| | bcdiv | scale is now nullable. |
| | bcdiv | Dividing by 0 now throws a
DivisionByZeroError exception
instead of returning null. |
| | bcmod | scale is now nullable. |
| | bcmod | Dividing by 0 now throws a DivisionByZeroError exception instead of returning null. |
| | bcmul | scale is now nullable. |
| | bcpow | When exponent has a fractional part, it now throws a ValueError
instead of truncating. |
| | bcpowmod | scale is now nullable. |
| | bcpowmod | Now throws a ValueError instead of returning false if exponent is a negative value. |
| | bcpowmod | Dividing by 0 now throws a DivisionByZeroError exception instead of returning false. |
| | bcscale | scale is now nullable. |
| | bcsqrt | If num is not a well-formed BCMath numeric string,
or less than 0, a ValueError is thrown.
Previously, E_WARNING was raised instead. |
| | bcsqrt | scale now needs to be between 0
and 2147483647; previously, negative scales have been
silently treated as 0. |
| | bcsqrt | scale is now nullable. |
| | bcsub | scale is now nullable. |
| | bzdecompress | The type of use_less_memory has been changed from
int to bool. Previously, the default value was
0. |
| | bzwrite | length is nullable now. |
| | cal_days_in_month | Now throws a ValueError if calendar
is not a valid calendar ID or the date is not valid.
Previously, an E_WARNING was raised and false was returned. |
| | cal_from_jd | Now throws a ValueError if calendar
is not a valid calendar ID.
Previously, an E_WARNING was raised and false was returned. |
| | cal_info | Now throws a ValueError if calendar
is not a valid calendar ID.
Previously, an E_WARNING was raised and false was returned. |
| | cal_to_jd | Now throws a ValueError if calendar
is not a valid calendar ID.
Previously, an E_WARNING was raised and false was returned. |
| | call_user_func_array | args keys will now be interpreted as parameter names, instead of being silently ignored. |
| | ceil | num no longer accepts internal objects which support
numeric conversion. |
| | chunk_split | Now throws a ValueError if length
is less than 1.
Previously, an E_WARNING was raised and false was returned. |
| | closedir | dir_handle is now nullable. |
| | com_event_sink | sink_interface is nullable now. |
| | com_get_active_object | codepage is nullable now. |
| | compact | If a given string references an unset variable, an E_WARNING level error is now issued. |
| | constant | If the constant is not defined, constant now throws an
Error exception; previously an E_WARNING
was generated, and null was returned. |
| | convert_cyr_string | Removed this function. |
| | convert_uuencode | Prior to this version, trying to convert an empty string returned false
for no particular reason. |
| | count | Now throws a ValueError if
mode is not COUNT_NORMAL or
COUNT_RECURSIVE. |
| | count | count will now throw TypeError on
invalid countable types passed to the value parameter. |
| | count_chars | Prior to this version, the function returned false on failure. |
| | crypt | The salt is no longer optional. |
| | curl_close | This function is a NOP now. |
| | curl_close | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_copy_handle | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_copy_handle | On success, this function returns a CurlHandle instance now;
previously, a resource was returned. |
| | curl_errno | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_error | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_escape | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_exec | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_getinfo | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_getinfo | option is nullable now;
previously, the default was 0. |
| | curl_init | On success, this function returns a CurlHandle instance now;
previously, a resource was returned. |
| | curl_init | url is nullable now. |
| | curl_multi_add_handle | multi_handle expects a CurlMultiHandle
instance now; previously, a resource was expected. |
| | curl_multi_add_handle | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_multi_close | multi_handle expects a CurlMultiHandle
instance now; previously, a resource was expected. |
| | 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_multi_exec | multi_handle expects a CurlMultiHandle
instance now; previously, a resource was expected. |
| | curl_multi_getcontent | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_multi_info_read | multi_handle expects a CurlMultiHandle
instance now; previously, a resource was expected. |
| | curl_multi_init | On success, this function returns a CurlMultiHandle instance now;
previously, a resource was returned. |
| | curl_multi_remove_handle | multi_handle expects a CurlMultiHandle
instance now; previously, a resource was expected. |
| | curl_multi_remove_handle | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_multi_select | multi_handle expects a CurlMultiHandle
instance now; previously, a resource was expected. |
| | curl_multi_setopt | multi_handle expects a CurlMultiHandle
instance now; previously, a resource was expected. |
| | curl_pause | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_reset | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_setopt | curl_setopt now throws a
ValueError if
option is not a valid cURL option.
Previously, unknown options were silently ignored, and an
E_WARNING was emitted, with false returned,
only for values less than or equal to zero. |
| | curl_setopt | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_setopt_array | curl_setopt_array now throws a
ValueError if
options contains an unknown option or a
string key. Previously, unknown options were silently ignored, and a
string key emitted an E_WARNING and returned
false. |
| | curl_setopt_array | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_share_close | This function is a NOP now. |
| | curl_share_close | share_handle expects a CurlShareHandle
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. |
| | curl_share_init | This function returns a CurlShareHandle instance now;
previously, a resource was returned. |
| | curl_share_setopt | share_handle expects a CurlShareHandle
instance now; previously, a resource was expected. |
| | curl_unescape | handle expects a CurlHandle
instance now; previously, a resource was expected. |
| | curl_version | The optional age parameter has been removed. |
| | date | timestamp is nullable now. |
| | date_sunrise | latitude, longitude,
zenith and utcOffset are nullable now. |
| | date_sunset | latitude, longitude,
zenith and utcOffset are nullable now. |
| | define | Passing true to case_insensitive now emits an E_WARNING. Passing false is still allowed. |
| | deflate_add | context expects a DeflateContext
instance now; previously, a resource was expected. |
| | deflate_init | On success, this function returns a DeflateContext instance now;
previously, a resource was returned. |
| | dgettext | Now throws a ValueError if an argument
is too long. Previously, an E_WARNING was raised
and false was returned. |
| | dir | context is now nullable. |
| | dirname | Now throws a ValueError if
levels is less than 1.
Previously, an E_WARNING was raised and null was returned. |
| | dngettext | Now throws a ValueError if an argument
is too long. Previously, an E_WARNING was raised
and false was returned. |
| | dom_import_simplexml | This function no longer returns null on failure. |
| | easter_date | year is nullable now. |
| | easter_date | A ValueError is now thrown when
year is outside the allowed range.
Previously, an E_WARNING was raised
and the function returned false. |
| | easter_days | year is nullable now. |
| | enchant_broker_describe | broker expects an EnchantBroker instance now;
previously, 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;
previously, a resource was expected. |
| | enchant_broker_free | This function has been deprecated in favor of unsetting the object. |
| | enchant_broker_free | broker expects an EnchantBroker instance now;
previously, a resource was expected. |
| | enchant_broker_free_dict | This function has been deprecated in favor of unsetting the object. |
| | enchant_broker_free_dict | dictionary expects a EnchantDictionary now;
previously, a resource was expected. |
| | enchant_broker_get_dict_path | This function has been deprecated. |
| | enchant_broker_get_dict_path | broker expects an EnchantBroker instance now;
previously, a resource was expected. |
| | enchant_broker_get_error | broker expects an EnchantBroker instance now;
previously, a resource was expected. |
| | enchant_broker_init | On success, this function returns an EnchantBroker instance now;
previously, a resource was returned. |
| | enchant_broker_list_dicts | broker expects an EnchantBroker instance now;
previously, a resource was expected. |
| | enchant_broker_list_dicts | Prior to this version, the function returned false on failure. |
| | enchant_broker_request_dict | broker expects an EnchantBroker instance now;
previously, a resource was expected. |
| | enchant_broker_request_dict | On success, this function returns an EnchantDictionary instance now;
previously, a resource was returned. |
| | enchant_broker_request_pwl_dict | broker expects an EnchantBroker instance now;
previously, a resource was expected. |
| | enchant_broker_request_pwl_dict | On success, this function returns an EnchantDictionary instance now;
previously, a resource was returned. |
| | enchant_broker_set_dict_path | This function has been deprecated. |
| | enchant_broker_set_dict_path | broker expects an EnchantBroker instance now;
previously, a resource was expected. |
| | enchant_broker_set_ordering | broker expects an EnchantBroker instance now;
previously, a resource was expected. |
| | enchant_dict_add | dictionary expects an EnchantDictionary instance now;
previously, a resource was expected. |
| | enchant_dict_add_to_session | dictionary expects an EnchantDictionary instance now;
previously, a resource was expected. |
| | enchant_dict_check | dictionary expects an EnchantDictionary instance now;
previously, a resource was expected. |
| | enchant_dict_describe | dictionary expects an EnchantDictionary instance now;
previously, a resource was expected. |
| | enchant_dict_describe | Prior to this version, the function returned false on failure. |
| | enchant_dict_get_error | dictionary expects an EnchantDictionary instance now;
previously, a resource was expected. |
| | enchant_dict_is_added | dictionary expects an EnchantDictionary instance now;
previously, a resource was expected. |
| | enchant_dict_quick_check | dictionary expects an EnchantDictionary instance now;
previously, a resource was expected. |
| | enchant_dict_store_replacement | dictionary expects an EnchantDictionary instance now;
previously, a resource was expected. |
| | enchant_dict_suggest | dictionary expects an EnchantDictionary instance now;
previously, a resource was expected. |
| | error_log | destination and
additional_headers are now nullable. |
| | error_reporting | error_level is nullable now. |
| | exec | If command is empty or contains null bytes,
exec now throws a ValueError.
Previously it emitted an E_WARNING and returned false. |
| | exif_read_data | required_sections is nullable now. |
| | explode | explode will now throw ValueError
when separator parameter is given an empty string
("").
Previously, explode returned false instead. |
| | extract | Now throws a ValueError for an invalid flags
or prefix.
Previously, an E_WARNING was raised and null was returned. |
| | ezmlm_hash | Removed this function. |
| | fgetcsv | length is now nullable. |
| | file_get_contents | length is nullable now. |
| | finfo_buffer | context is nullable now. |
| | finfo_file | context is nullable now. |
| | floatval | The error level when converting from object was changed from E_NOTICE to E_WARNING. |
| | floor | num no longer accepts internal objects which support
numeric conversion. |
| | fprintf | This function no longer returns false on failure. |
| | fprintf | Throws a ValueError if the number of arguments is zero;
previously this function emitted an E_WARNING instead. |
| | fprintf | Throws a ValueError if [width] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | fprintf | Throws a ValueError if [precision] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | fprintf | Throws an ArgumentCountError when fewer arguments are given than required;
previously this function emitted an E_WARNING instead. |
| | fsockopen | timeout is nullable now. |
| | fwrite | length is nullable now. |
| | get_called_class | Calling this function from outside a class,
will now throw an Error.
Previously, an E_WARNING was raised
and the function returned false. |
| | get_class | Calling this function from outside a class, without any arguments,
will now throw an Error.
Previously, an E_WARNING was raised
and the function returned false. |
| | get_class_methods | The object_or_class parameter now only accepts objects or valid class names. |
| | get_defined_functions | The default value of the exclude_disabled parameter
has been changed from false to true. However, it will not have
any effect as disabled functions are removed from the function table at
compile time. |
| | get_headers | The associative has been changed from int to bool. |
| | get_magic_quotes_gpc | Removed this function. |
| | get_magic_quotes_runtime | Removed this function. |
| | get_parent_class | The object_or_class parameter now only accepts objects or valid class names. |
| | get_resources | type is nullable now. |
| | getdate | timestamp is nullable now. |
| | getenv | The name is now nullable. |
| | getimagesize | A ValueError is now thrown if
filename is empty; previously an
E_WARNING was raised and the function returned false. |
| | gmdate | timestamp is nullable now. |
| | gmmktime | hour is no longer optional. If you need a Unix
timestamp, use time. |
| | gmmktime | minute, second, month,
day and year are nullable now. |
| | gmp_binomial | This function no longer returns false on failure. |
| | gmp_export | This function no longer returns false on failure. |
| | gmp_import | This function no longer returns false on failure. |
| | gmp_random_seed | If seed is invalid, gmp_random_seed
now throws a ValueError.
Previously it emitted an E_WARNING and returned false. |
| | gmstrftime | timestamp is nullable now. |
| | grapheme_substr | The function now consistently clamps out-of-bounds offsets to the string boundary.
Previously, false was returned instead of the empty string in some cases. |
| | gzgets | length is nullable now;
previously, the default was 1024. |
| | gzwrite | length is nullable now; previously, the default was
0. |
| | hash | Now throws a ValueError exception
if algo is unknown; previously, false was returned
and an E_WARNING message was emitted. |
| | hash_hkdf | Now throws a ValueError exception on error.
Previously, false was returned and an E_WARNING
message was emitted. |
| | hash_hmac | Now throws a ValueError exception if
algo is unknown or is a
non-cryptographic hash function; previously, false was returned
and an E_WARNING message was emitted. |
| | hash_hmac_file | Now throws a ValueError exception if
algo is unknown or is a non-cryptographic hash
function; previously, false was returned
and an E_WARNING message was emitted. |
| | hash_init | Now throws an ValueError exception if the
algo is unknown or is a non-cryptographic hash
function, or if key is empty. Previously,
false was returned and an E_WARNING message was
emitted. |
| | hash_pbkdf2 | Now throws a ValueError exception on error.
Previously, false was returned and an E_WARNING
message was emitted. |
| | hash_update_file | stream_context is now nullable. |
| | header_remove | name is nullable now. |
| | hebrevc | Removed this function. |
| | html_entity_decode | encoding is nullable now. |
| | htmlentities | encoding is nullable now. |
| | http_build_query | arg_separator 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. |
| | idate | timestamp is nullable now. |
| | ignore_user_abort | enable is nullable now. |
| | imageaffine | clip is now nullable. |
| | imageaffine | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagealphablending | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imageantialias | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagearc | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagebmp | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagebmp | The type of compressed is bool now; formerly it was int. |
| | imagechar | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecharup | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorallocate | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorallocatealpha | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorat | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorclosest | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorclosesthwb | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolordeallocate | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorexact | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorexactalpha | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolormatch | image1 and image2 expect
GdImage instances now; previously, resources
were expected. |
| | imagecolorresolve | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorresolvealpha | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorset | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorsforindex | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolorsforindex | imagecolorsforindex now throws a ValueError exception
if color is out of range; previously, false was returned instead. |
| | imagecolorstotal | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolortransparent | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecolortransparent | color is now nullable. |
| | imageconvolution | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecopy | dst_image and src_image expect
GdImage instances now; previously, resources
were expected. |
| | imagecopymerge | dst_image and src_image expect
GdImage instances now; previously, resources
were expected. |
| | imagecopymergegray | dst_image and src_image expect
GdImage instances now; previously, resources
were expected. |
| | imagecopyresampled | dst_image and src_image expect
GdImage instances now; previously, resources
were expected. |
| | imagecopyresized | dst_image and src_image expect
GdImage instances now; previously, resources
were expected. |
| | imagecreate | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefrombmp | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromgd | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromgd2 | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromgd2part | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromgif | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromjpeg | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefrompng | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromstring | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromtga | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromwbmp | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromwebp | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromxbm | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatefromxpm | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecreatetruecolor | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecrop | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecrop | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagecropauto | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagecropauto | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagedashedline | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagedestroy | This function is a NOP now. |
| | imagedestroy | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imageellipse | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagefill | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagefilledarc | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagefilledellipse | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagefilledpolygon | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagefilledrectangle | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagefilltoborder | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagefilter | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imageflip | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagefttext | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagegammacorrect | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagegd | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagegd2 | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagegetclip | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagegetinterpolation | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagegif | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagegrabscreen | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagegrabwindow | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagegrabwindow | client_area expects a bool now;
previously it expected an int. |
| | imageinterlace | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imageinterlace | enable expects a bool now;
previously it expected an int. |
| | imageistruecolor | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagejpeg | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagelayereffect | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imageline | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imageopenpolygon | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagepalettecopy | dst and src expect
GdImage instances now; previously, resources
were expected. |
| | imagepalettetotruecolor | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagepng | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagepolygon | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagerectangle | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imageresolution | resolution_x and resolution_y are now nullable. |
| | imagerotate | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagerotate | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagerotate | The unused ignore_transparent expects a bool now;
previously it expected an int. |
| | imagesavealpha | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagescale | On success, this function returns a GDImage instance now;
previously, a resource was returned. |
| | imagescale | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagesetbrush | image and brush expect
GdImage instances now; previously, resources
were expected. |
| | imagesetclip | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagesetinterpolation | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagesetpixel | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagesetthickness | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagesettile | image and tile expect
GdImage instances now; previously, resources
were expected. |
| | imagestring | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagestringup | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagesx | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagesy | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagetruecolortopalette | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagettfbbox | The options has been added. |
| | imagettftext | The options has been added. |
| | imagewbmp | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagewbmp | foreground_color is nullable now. |
| | imagewebp | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagexbm | image expects a GdImage
instance now; previously, a valid gd resource was expected. |
| | imagexbm | foreground_color is now nullable. |
| | imagexbm | The fourth parameter, which was unused, has been removed. |
| | implode | Passing the separator after the array
is no longer supported. |
| | inflate_add | context expects an InflateContext
instance now; previously, a resource was expected. |
| | inflate_get_read_len | context expects an InflateContext
instance now; previously, a resource was expected. |
| | inflate_get_status | context expects an InflateContext
instance now; previously, a resource was expected. |
| | inflate_init | On success, this function returns an InflateContext instance now;
previously, a resource was returned. |
| | intval | The error level when converting from object was changed from E_NOTICE to E_WARNING. |
| | is_numeric | Numeric strings ending with whitespace ("42 ") will now
return true. Previously, false was returned instead. |
| | jdtojewish | Now throws a ValueError if the year is out of range
when hebrew is true.
Previously, an E_WARNING was raised and false was returned. |
| | jdtounix | This function no longer returns false on failure, but raises a
ValueError instead. |
| | 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_control_paged_result | This function has been removed. |
| | ldap_control_paged_result_response | This function has been removed. |
| | 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_first_attribute | The unused third parameter ber_identifier is no longer accepted. |
| | 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_next_attribute | The unused third parameter ber_identifier is no longer accepted. |
| | 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. |
| | ldap_sort | This function has been removed. |
| | levenshtein | Prior to this version, levenshtein had to be called
with either two or five arguments. |
| | levenshtein | Prior to this version, levenshtein would return -1
if one of the argument strings is longer than 255 characters. |
| | libxml_disable_entity_loader | This function has been deprecated. |
| | libxml_use_internal_errors | use_errors is nullable now. Previously, its default
was false. |
| | localtime | timestamp is nullable now. |
| | log | Now throws a ValueError if base is less than
or equal to 0.
Previously, an E_WARNING was raised and false was returned. |
| | mail | All headers, including those in the additional_headers
parameter, are now separated by CRLF (\r\n), as required by
RFC 5322, rather than a possible mixture
of CRLF and bare LF (\n). |
| | max | max throws a ValueError on failure now;
previously, false was returned and an E_WARNING error was emitted. |
| | max | As
string to number comparisons were changed,
max no longer returns a
different value based on the argument order in those cases. |
| | mb_check_encoding | value and encoding are nullable now. |
| | mb_check_encoding | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_chr | encoding is nullable now. |
| | mb_chr | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_convert_case | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | 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_encoding | from_encoding is nullable now. |
| | mb_convert_kana | encoding is nullable now. |
| | mb_convert_kana | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_decode_numericentity | encoding is nullable now. |
| | mb_decode_numericentity | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | 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_encode_numericentity | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_encoding_aliases | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | 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 | mb_http_input now throws a
ValueError if type
is invalid.
type is nullable now. |
| | mb_http_output | encoding is nullable now. |
| | mb_http_output | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_internal_encoding | encoding is nullable now. |
| | mb_internal_encoding | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_language | language is nullable now. |
| | mb_ord | encoding is nullable now. |
| | mb_ord | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_parse_str | The second parameter was no longer optional. |
| | mb_preferred_mime_name | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_regex_encoding | encoding is nullable now. |
| | mb_regex_encoding | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | 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_regex_set_options | The "e" option now throws a ValueError. |
| | mb_scrub | encoding is nullable now. |
| | mb_scrub | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_send_mail | additional_params is nullable now. |
| | mb_str_split | encoding is nullable now. |
| | mb_str_split | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_str_split | This function no longer returns false on failure. |
| | mb_strcut | encoding is nullable now. |
| | mb_strcut | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strimwidth | encoding is nullable now. |
| | mb_strimwidth | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_stripos | needle now accepts an empty string. |
| | mb_stripos | encoding is nullable now. |
| | mb_stripos | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_stristr | needle now accepts an empty string. |
| | mb_stristr | encoding is nullable now. |
| | mb_stristr | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strlen | encoding is nullable now. |
| | mb_strlen | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strpos | needle now accepts an empty string. |
| | mb_strpos | encoding is nullable now. |
| | mb_strpos | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strrchr | needle now accepts an empty string. |
| | mb_strrchr | encoding is nullable now. |
| | mb_strrchr | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strrichr | needle now accepts an empty string. |
| | mb_strrichr | encoding is nullable now. |
| | mb_strrichr | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strripos | needle now accepts an empty string. |
| | mb_strripos | encoding is nullable now. |
| | mb_strripos | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strrpos | needle now accepts an empty string. |
| | mb_strrpos | Passing the encoding as the third argument
instead of an offset has been removed. |
| | mb_strrpos | encoding is nullable now. |
| | mb_strrpos | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strstr | needle now accepts an empty string. |
| | mb_strstr | encoding is nullable now. |
| | mb_strstr | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strtolower | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strtoupper | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_strwidth | encoding is nullable now. |
| | mb_strwidth | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | 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 | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | mb_substr_count | encoding is nullable now. |
| | mb_substr_count | Now throws a ValueError if
encoding is an invalid encoding.
Previously, an E_WARNING was emitted
and false was returned. |
| | metaphone | The function returned false on failure. |
| | mhash | key is now nullable. |
| | min | min throws a ValueError on failure now;
previously, false was returned and an E_WARNING error was emitted. |
| | min | As
string to number comparisons were changed,
min no longer returns a
different value based on the argument order in those cases. |
| | mktime | hour is no longer optional. If you need a Unix
timestamp, use time. |
| | mktime | minute, second, month,
day and year are nullable now. |
| | money_format | Removed this function. |
| | 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. |
| | mt_rand | A ValueError will be thrown if max is less than min;
previously an E_WARNING was raised, and the function returned false. |
| | number_format | Prior to this version, number_format accepted
one, two, or four parameters (but not three). |
| | ob_implicit_flush | The enable expects a bool value now;
previously, an int was expected. |
| | odbc_columns | schema, table and column
are now nullable. |
| | odbc_error | odbc is now nullable. |
| | odbc_errormsg | odbc is now nullable. |
| | odbc_exec | flags was removed. |
| | odbc_execute | The unused flags parameter was removed. |
| | odbc_fetch_row | row is now nullable. |
| | odbc_procedurecolumns | Prior to this version, the function could only be called with either one
or five arguments. |
| | odbc_procedures | Prior to this version, the function could only be called with either one
or four arguments. |
| | odbc_tables | schema, table and types
are now nullable. |
| | opendir | context is now nullable. |
| | 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 | On success, this function returns an OpenSSLAsymmetricKey instance now;
previously, a resource of type OpenSSL key was returned. |
| | 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_subject | csr accepts an OpenSSLCertificateSigningRequest instance now;
previously, a resource of type OpenSSL X.509 CSR 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_new | private_key accepts an OpenSSLAsymmetricKey instance now;
previously, a resource of type OpenSSL key 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_csr_sign | csr accepts an OpenSSLCertificateSigningRequest instance now;
previously, a resource of type OpenSSL X.509 CSR 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 | private_key accepts an OpenSSLAsymmetricKey
or OpenSSLCertificate instance now;
previously, a resource of type OpenSSL key or OpenSSL X.509
was accepted. |
| | openssl_dh_compute_key | private_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_free_key | key accepts an OpenSSLAsymmetricKey now;
previously, a resource of type OpenSSL key was accepted. |
| | 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 | 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_verify | signers_certificates_filename, untrusted_certificates_filename,
content and output_filename are nullable now. |
| | openssl_pkcs12_export | certificate accepts an OpenSSLCertificate instance now;
previously, a resource of type OpenSSL X.509 CSR was accepted. |
| | 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_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 | 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_private | passphrase is nullable now. |
| | 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 | public_key accepts an array of
OpenSSLAsymmetricKey instances now;
previously, an array of resources of type OpenSSL key
was accepted. |
| | openssl_seal | cipher_algo is no longer an optional parameter. |
| | openssl_seal | iv is nullable now. |
| | 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 | certificate accepts an OpenSSLCertificate instance now;
previously, a resource of type OpenSSL X.509 was accepted. |
| | openssl_x509_checkpurpose | untrusted_certificates_file is nullable now. |
| | 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 | This function is now deprecated as it doesn't have an effect anymore. |
| | openssl_x509_free | certificate accepts an OpenSSLCertificate instance now;
previously, a resource of type OpenSSL X.509 was accepted. |
| | openssl_x509_parse | 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_read | certificate accepts an OpenSSLCertificate instance now;
previously, a resource of type OpenSSL X.509 was accepted. |
| | openssl_x509_verify | certificate accepts an OpenSSLCertificate instance now;
previously, a resource of type OpenSSL X.509 was accepted. |
| | 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. |
| | pack | This function no longer returns false on failure. |
| | parse_str | result is no longer optional. |
| | parse_url | parse_url will now distinguish absent and empty queries
and fragments. |
| | passthru | If command is empty or contains null bytes,
passthru now throws a ValueError.
Previously it emitted an E_WARNING and returned false. |
| | password_hash | password_hash no longer returns false on failure, instead a
ValueError will be thrown if the password hashing algorithm
is not valid, or an Error if the password hashing failed
for an unknown error. |
| | password_hash | The algo parameter is nullable now. |
| | pcntl_async_signals | enable is nullable now. |
| | pcntl_getpriority | process_id is nullable now. |
| | pcntl_setpriority | process_id is nullable now. |
| | pfsockopen | timeout is nullable now. |
| | pg_client_encoding | connection is now nullable. |
| | pg_close | connection is now nullable. |
| | pg_dbname | connection is now nullable. |
| | pg_end_copy | connection is now nullable. |
| | pg_fetch_all | pg_fetch_all will now return an empty array
instead of false for result sets with zero rows. |
| | pg_host | connection is now nullable. |
| | pg_last_error | connection is now nullable. |
| | pg_lo_write | length is now nullable. |
| | pg_options | connection is now nullable. |
| | pg_ping | connection is now nullable. |
| | pg_port | connection is now nullable. |
| | pg_trace | connection is now nullable. |
| | pg_tty | connection is now nullable. |
| | pg_untrace | connection is now nullable. |
| | pg_version | connection is now nullable. |
| | phpversion | extension is nullable now. |
| | printf | This function no longer returns false on failure. |
| | printf | Throws a ValueError if the number of arguments is zero;
previously this function emitted an E_WARNING instead. |
| | printf | Throws a ValueError if [width] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | printf | Throws a ValueError if [precision] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | printf | Throws an ArgumentCountError when fewer arguments are given than required;
previously this function emitted an E_WARNING instead. |
| | quotemeta | Returns an empty string, instead of false, when string
is empty. |
| | readdir | dir_handle is now nullable. |
| | readline_info | var_name and value are nullable now. |
| | readline_read_history | filename is nullable now. |
| | readline_write_history | filename is nullable now. |
| | restore_include_path | Removed this function. |
| | rewinddir | dir_handle is now nullable. |
| | round | num no longer accepts internal objects which support
numeric conversion. |
| | sapi_windows_vt100_support | enable is now nullable. |
| | scandir | context is now nullable. |
| | 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. |
| | session_cache_expire | value is nullable now. |
| | session_cache_limiter | value is nullable now. |
| | session_id | id is nullable now. |
| | session_module_name | module is nullable now. |
| | session_name | name is nullable now. |
| | session_save_path | path is nullable now. |
| | session_set_cookie_params | path, domain,
secure and httponly are nullable now. |
| | set_error_handler | errcontext was removed, and will no longer be passed to user callbacks. |
| | setcookie | Passing unsupported keys now throws a ValueError
instead of emitting an E_WARNING. |
| | settype | Now throws a ValueError when an invalid
type is passed to type. Previously, a
E_WARNING was emitted and the function returned
false. |
| | 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. |
| | shmop_close | This function has been deprecated, as this function has no effect anymore. |
| | shmop_close | shmop expects a Shmop
instance now; previously, a resource was expected. |
| | shmop_delete | shmop expects a Shmop
instance now; previously, a resource was expected. |
| | shmop_open | On success, this function returns an Shmop instance now;
previously, a resource was returned. |
| | shmop_open | If mode is invalid, or size is less than or equal to zero
for the "c" and "n" modes,
a ValueError is thrown; previously E_WARNING was emitted instead,
and the function returned false. |
| | shmop_read | shmop expects a Shmop
instance now; previously, a resource was expected. |
| | shmop_read | If offset or size are out of range,
a ValueError is thrown; previously E_WARNING
was emitted, and false was returned, |
| | shmop_size | shmop expects a Shmop
instance now; previously, a resource was expected. |
| | shmop_write | Prior to PHP 8.0.0, false was returned on failure. |
| | shmop_write | shmop expects a Shmop
instance now; previously, a resource was expected. |
| | simplexml_load_file | A ValueError is now thrown if
options does not fit in an int. |
| | simplexml_load_string | A ValueError is now thrown if
options does not fit in an int. |
| | sleep | The function throws a ValueError on negative seconds;
previously, an E_WARNING was raised instead, and the function returned false. |
| | socket_accept | On success, this function returns a Socket instance now;
previously, a resource was returned. |
| | socket_addrinfo_bind | On success, this function returns a Socket instance now;
previously, a resource was returned. |
| | socket_addrinfo_bind | address is an AddressInfo instance now;
previously, it was a resource. |
| | socket_addrinfo_connect | On success, this function returns a Socket instance now;
previously, a resource was returned. |
| | socket_addrinfo_connect | address is an AddressInfo instance now;
previously, it was a resource. |
| | socket_addrinfo_explain | address is an AddressInfo instance now;
previously, it was a resource. |
| | socket_addrinfo_lookup | On success, this function returns an array of AddressInfo instances now;
previously, an array of resources was returned. |
| | socket_addrinfo_lookup | service is nullable now. |
| | socket_bind | socket is a Socket instance now;
previously, it was a resource. |
| | socket_clear_error | socket is a Socket instance now;
previously, it was a resource. |
| | socket_clear_error | socket is nullable now. |
| | socket_close | socket is a Socket instance now;
previously, it was a resource. |
| | socket_connect | socket is a Socket instance now;
previously, it was a resource. |
| | socket_connect | port is nullable now. |
| | socket_create | On success, this function returns a Socket instance now;
previously, a resource was returned. |
| | socket_create_listen | On success, this function returns a Socket instance now;
previously, a resource was returned. |
| | socket_create_pair | pair is a reference to an array of Socket instances now;
previously, it was a reference to an array of resources. |
| | socket_export_stream | socket is a Socket instance now;
previously, it was a resource. |
| | socket_get_option | socket is a Socket instance now;
previously, it was a resource. |
| | socket_getpeername | socket is a Socket instance now;
previously, it was a resource. |
| | socket_getsockname | socket is a Socket instance now;
previously, it was a resource. |
| | socket_import_stream | On success, this function returns a Socket instance now;
previously, a resource was returned. |
| | socket_last_error | socket is a Socket instance now;
previously, it was a resource. |
| | socket_last_error | socket is nullable now. |
| | socket_listen | socket is a Socket instance now;
previously, it was a resource. |
| | socket_read | socket is a Socket instance now;
previously, it was a resource. |
| | socket_recv | socket is a Socket instance now;
previously, it was a resource. |
| | socket_recvfrom | socket is a Socket instance now;
previously, it was a resource. |
| | socket_recvmsg | socket is a Socket instance now;
previously, it was a resource. |
| | socket_send | socket is a Socket instance now;
previously, it was a resource. |
| | socket_sendmsg | socket is a Socket instance now;
previously, it was a resource. |
| | socket_sendto | socket is a Socket instance now;
previously, it was a resource. |
| | socket_sendto | port is nullable now. |
| | socket_set_block | socket is a Socket instance now;
previously, it was a resource. |
| | socket_set_nonblock | socket is a Socket instance now;
previously, it was a resource. |
| | socket_set_option | socket is a Socket instance now;
previously, it was a resource. |
| | socket_shutdown | socket is a Socket instance now;
previously, it was a resource. |
| | socket_write | socket is a Socket instance now;
previously, it was a resource. |
| | socket_write | length is nullable now. |
| | socket_wsaprotocol_info_export | socket is a Socket instance now;
previously, it was a resource. |
| | socket_wsaprotocol_info_import | On success, this function returns a Socket instance now;
previously, a resource was returned. |
| | soundex | Prior to this version, calling the function with an empty string returned false
for no particular reason. |
| | spl_autoload | file_extensions is now nullable. |
| | spl_autoload_extensions | file_extensions is now nullable. |
| | spl_autoload_functions | Return value was updated to always be an array; previously this function returned
false if the autoload queue wasn't activated. |
| | spl_autoload_register | callback is now nullable. |
| | sprintf | This function no longer returns false on failure. |
| | sprintf | Throws a ValueError if the number of arguments is zero;
previously this function emitted an E_WARNING instead. |
| | sprintf | Throws a ValueError if [width] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | sprintf | Throws a ValueError if [precision] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | sprintf | Throws an ArgumentCountError when fewer arguments are given than required;
previously this function emitted an E_WARNING instead. |
| | str_pad | Now throws a ValueError if padding is needed and pad_string
is empty or pad_type is invalid.
Previously, an E_WARNING was raised and null was returned. |
| | str_repeat | Now throws a ValueError if times
is less than 0.
Previously, an E_WARNING was raised and null was returned. |
| | str_split | If length is less than 1,
a ValueError will be thrown now;
previously, an error of level E_WARNING
has been raised instead, and the function returned false. |
| | str_word_count | Now throws a ValueError if format
is invalid.
Previously, an E_WARNING was raised and false was returned. |
| | str_word_count | characters is nullable now. |
| | strcspn | length is nullable now. |
| | stream_context_create | options and params are now nullable. |
| | stream_context_get_default | options is now nullable. |
| | stream_copy_to_stream | length is now nullable. |
| | stream_get_contents | Now throws a ValueError if length is less than -1.
Previously, an E_WARNING was raised and false was returned. |
| | stream_get_contents | length is now nullable. |
| | stream_get_line | Now throws a ValueError if length is negative.
Previously, an E_WARNING was raised and false was returned. |
| | stream_set_chunk_size | A ValueError is now thrown if
size is less than 1 or greater than
PHP_INT_MAX. Previously, an
E_WARNING level error was emitted and false was
returned. |
| | stream_socket_accept | timeout is now nullable. |
| | stream_socket_client | timeout and context are now nullable. |
| | stream_socket_enable_crypto | Now throws a ValueError if crypto_method is needed but
not given.
Previously, an E_WARNING was raised and false was returned. |
| | stream_socket_enable_crypto | session_stream is now nullable. |
| | stream_socket_recvfrom | Now throws a ValueError if length is less than 1.
Previously, an E_WARNING was raised and false was returned. |
| | stream_socket_server | context is nullable now. |
| | stream_socket_shutdown | Now throws a ValueError if mode is invalid.
Previously, an E_WARNING was raised and false was returned. |
| | strftime | timestamp is nullable now. |
| | strip_tags | allowed_tags is nullable now. |
| | stripos | needle now accepts an empty string. |
| | stripos | Passing an int as needle is no longer supported. |
| | stristr | needle now accepts an empty string. |
| | stristr | Passing an int as needle is no longer supported. |
| | strpbrk | Now throws a ValueError if characters
is empty.
Previously, an E_WARNING was raised and false was returned. |
| | strpos | needle now accepts an empty string. |
| | strpos | Passing an int as needle is no longer supported. |
| | strrchr | needle now accepts an empty string. |
| | strrchr | Passing an int as needle is no longer supported. |
| | strripos | needle now accepts an empty string. |
| | strripos | Passing an int as needle is no longer supported. |
| | strrpos | needle now accepts an empty string. |
| | strrpos | Passing an int as needle is no longer supported. |
| | strspn | length is nullable now. |
| | strstr | needle now accepts an empty string. |
| | strstr | Passing an int as needle is no longer supported. |
| | strtotime | baseTimestamp is nullable now. |
| | substr | length is nullable now.
When length is explicitly set to null,
the function returns a substring finishing at the end of the string, when it previously returned an empty string. |
| | substr | The function returns an empty string where it previously returned false. |
| | substr_compare | Now throws a ValueError if offset
is out of range or length is negative.
Previously, an E_WARNING was raised and false was returned. |
| | substr_compare | length is nullable now. |
| | substr_count | Now throws a ValueError instead of raising an
E_WARNING and returning false when
needle is empty or offset
or length is out of range. |
| | substr_count | length is nullable now. |
| | substr_replace | length is nullable now. |
| | touch | mtime and atime
are now nullable. |
| | trigger_error | The function now throws a ValueError if an invalid
error_level is specified. Previously, it returned false. |
| | uasort | If callback expects a parameter to be passed
by reference, this function will now emit an E_WARNING. |
| | uksort | If callback expects a parameter to be passed
by reference, this function will now emit an E_WARNING. |
| | umask | mask is nullable now. |
| | unixtojd | Now throws a ValueError if timestamp
is negative. Previously, false was returned. |
| | unixtojd | timestamp is nullable now. |
| | usort | If callback expects a parameter to be passed
by reference, this function will now emit an E_WARNING. |
| | vfprintf | This function no longer returns false on failure. |
| | vfprintf | Throws a ValueError if the number of arguments is zero;
previously this function emitted an E_WARNING instead. |
| | vfprintf | Throws a ValueError if [width] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | vfprintf | Throw a ValueError if [precision] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | vfprintf | Throws a ValueError when fewer arguments are given than required;
previously this function emitted an E_WARNING instead. |
| | vprintf | This function no longer returns false on failure. |
| | vprintf | Throws a ValueError if the number of arguments is zero;
previously this function emitted an E_WARNING instead. |
| | vprintf | Throws a ValueError if [width] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | vprintf | Throw a ValueError if [precision] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | vprintf | Throws a ValueError when fewer arguments are given than required;
previously this function emitted an E_WARNING instead. |
| | vsprintf | This function no longer returns false on failure. |
| | vsprintf | Throws a ValueError if the number of arguments is zero;
previously this function emitted an E_WARNING instead. |
| | vsprintf | Throws a ValueError if [width] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | vsprintf | Throw a ValueError if [precision] is less than zero or bigger than PHP_INT_MAX;
previously this function emitted an E_WARNING instead. |
| | vsprintf | Throws a ValueError when fewer arguments are given than required;
previously this function emitted an E_WARNING instead. |
| | wordwrap | If break is empty string,
a ValueError is thrown;
previously in this case it emitted an E_WARNING and returned false. |
| | xml_get_current_byte_index | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_get_current_column_number | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_get_current_line_number | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_get_error_code | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_parse | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_parse_into_struct | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_parser_create | This function returns an XMLParser instance now;
previously, a resource was returned, or false on failure. |
| | xml_parser_create | encoding is nullable now. |
| | xml_parser_create_ns | This function returns an XMLParser instance now;
previously, a resource was returned, or false on failure. |
| | xml_parser_create_ns | encoding is nullable now. |
| | xml_parser_free | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_parser_get_option | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_parser_get_option | A ValueError is now thrown if
option is invalid. |
| | xml_parser_set_option | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_parser_set_option | A ValueError is now thrown if
option is invalid. |
| | xml_set_character_data_handler | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_set_default_handler | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_set_element_handler | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_set_end_namespace_decl_handler | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_set_external_entity_ref_handler | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_set_notation_decl_handler | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_set_object | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_set_processing_instruction_handler | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_set_start_namespace_decl_handler | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | xml_set_unparsed_entity_decl_handler | parser expects an XMLParser
instance now; previously, a valid xml resource was expected. |
| | zip_close | This function is deprecated in favor of the Object API,
see ZipArchive::close. |
| | zip_entry_close | This function is deprecated in favor of the Object API. |
| | zip_entry_compressedsize | This function is deprecated in favor of the Object API,
see ZipArchive::statIndex. |
| | zip_entry_compressionmethod | This function is deprecated in favor of the Object API,
see ZipArchive::statIndex. |
| | zip_entry_filesize | This function is deprecated in favor of the Object API,
see ZipArchive::statIndex. |
| | zip_entry_name | This function is deprecated in favor of the Object API,
see ZipArchive::statIndex. |
| | zip_entry_open | This function is deprecated in favor of the Object API. |
| | zip_entry_read | This function is deprecated in favor of the Object API,
see ZipArchive::getFromIndex. |
| | zip_open | This function is deprecated in favor of the Object API,
see ZipArchive::open. |
| | zip_read | This function is deprecated in favor of the Object API,
see ZipArchive::statIndex. |
| | GlobIterator::__construct | Now throws a ValueError if
directory is an empty string;
previously it threw a RuntimeException. |
| | IntlCalendar::setMinimalDaysInFirstWeek | A ValueError is now thrown on invalid input. Previously, false was returned. |
| | IntlTimeZone::getIDForWindowsID | region is now nullable. |
| | LimitIterator::__construct | Now throws a ValueError if
offset is less than 0;
previously it threw a RuntimeException. |
| | LimitIterator::__construct | Now throws a ValueError if
limit is less than -1;
previously it threw a RuntimeException. |
| | Locale::getDisplayLanguage | displayLocale is nullable now. |
| | Locale::getDisplayName | displayLocale is nullable now. |
| | Locale::getDisplayRegion | displayLocale is nullable now. |
| | Locale::getDisplayScript | displayLocale is nullable now. |
| | Locale::getDisplayVariant | displayLocale is nullable now. |
| | mysqli_result::fetch_object | constructor_args now accepts [] for constructors with 0 parameters;
previously an exception was thrown. |
| | mysqli_result::field_seek | This function now always returns true. Previously it returned false on failure. |
| | mysqli_stmt::close | This function now always returns true. Previously it returned false on failure. |
| | mysqli_stmt::__construct | query is now nullable. |
| | mysqli::begin_transaction | name is now nullable. |
| | mysqli::close | This function now always returns true. Previously it returned false on failure. |
| | mysqli::commit | name is now nullable. |
| | mysqli::debug | This function now always returns true. Previously it returned false on failure. |
| | mysqli::rollback | name is now nullable. |
| | NumberFormatter::create | pattern is nullable now. |
| | PDOStatement::fetchAll | This method always returns an array now, while previously false may have
been returned on failure. |
| | Phar::addFile | localName is now nullable. |
| | Phar::buildFromIterator | baseDirectory is now nullable. |
| | Phar::compress | extension is now nullable. |
| | Phar::convertToData | format, compression, and extension are now nullable. |
| | Phar::convertToExecutable | format, compression, and extension are now nullable. |
| | Phar::createDefaultStub | index and webIndex are now nullable. |
| | Phar::decompress | extension is now nullable. |
| | Phar::getMetadata | The parameter unserializeOptions has been added. |
| | Phar::setDefaultStub | webIndex is nullable now. |
| | Phar::setSignatureAlgorithm | privateKey is now nullable. |
| | Phar::webPhar | fileNotFoundScript and rewrite are nullable now. |
| | PharData::addFile | localName is now nullable. |
| | PharData::buildFromIterator | baseDirectory is now nullable. |
| | PharData::compress | extension is now nullable. |
| | PharData::convertToData | format, compression, and extension are now nullable. |
| | PharData::convertToExecutable | format, compression, and localName are now nullable. |
| | PharData::decompress | extension is now nullable. |
| | PharData::setDefaultStub | webIndex is nullable now. |
| | PharData::setSignatureAlgorithm | privateKey is now nullable. |
| | PharFileInfo::getMetadata | The parameter unserializeOptions has been added. |
| | PharFileInfo::isCompressed | compression is now nullable. |
| | RecursiveDirectoryIterator::__construct | Now throws a ValueError if
directory is an empty string;
previously it threw a RuntimeException. |
| | RecursiveIteratorIterator::getSubIterator | level is now nullable. |
| | ReflectionClass::getConstants | filter has been added. |
| | ReflectionClass::getReflectionConstants | filter has been added. |
| | ReflectionClass::newInstanceArgs | args keys will now be interpreted as parameter names, instead of being silently ignored. |
| | ReflectionClass::setStaticPropertyValue | ReflectionClass::setStaticPropertyValue can now
set private and protected static properties. Previously, a
ReflectionException was thrown. |
| | ReflectionFunction::invokeArgs | args keys will now be interpreted as parameter names, instead of being silently ignored. |
| | ReflectionFunction::isDisabled | This function has been deprecated, as ReflectionFunction
can no longer be constructed for disabled functions. |
| | ReflectionMethod::export | Removed this function. |
| | ReflectionMethod::getClosure | object is now nullable. |
| | ReflectionMethod::invokeArgs | args keys will now be interpreted as parameter names, instead of being silently ignored. |
| | ReflectionParameter::getClass | This function has been deprecated in favor of
ReflectionParameter::getType instead. |
| | 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. |
| | ReflectionParameter::isArray | This function has been deprecated in favor of
ReflectionParameter::getType instead. |
| | ReflectionParameter::isCallable | This function has been deprecated in favor of
ReflectionParameter::getType instead. |
| | ReflectionProperty::getValue | object is nullable now. |
| | ReflectionProperty::isInitialized | object is nullable now. |
| | ReflectionType::__toString | ReflectionType::__toString has been undeprecated. |
| | Reflector::export | Removed this function. |
| | SimpleXMLElement::asXML | filename 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. |
| | SplFileInfo::getFileInfo | class is now nullable. |
| | SplFileInfo::getPathInfo | class is now nullable. |
| | SplFileInfo::openFile | context is now nullable. |
| | SplFixedArray::__construct | Now throws a ValueError if
size is a negative;
previously it threw a InvalidArgumentException. |
| | tidy::__construct | filename, config,
encoding and useIncludePath are nullable now. |
| | tidy::parseFile | config and encoding are nullable now. |
| | tidy::parseString | config and encoding are nullable now. |
| | tidy::repairFile | tidy::repairFile is a static method now. |
| | tidy::repairFile | config and encoding are nullable now. |
| | tidy::repairString | tidy::repairString is a static method now. |
| | tidy::repairString | config and encoding are nullable now. |
| | tidy::repairString | This function no longer accepts the useIncludePath parameter. |
| | 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.
Previously, a resource has been returned in this case. |
| | XMLWriter::openUri | This function returns now an XMLWriter instance on success.
Previously, 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::addEmptyDir | flags was added. |
| | ZipArchive::addFile | flags was added. |
| | ZipArchive::addFromString | flags was added. |
| | ZipArchive::addGlob | "flags" in options was added. |
| | ZipArchive::addGlob | "comp_method", "comp_flags",
"enc_method" and "enc_password" in
options were added. |
| | ZipArchive::getStatusString | This method can be called on closed archive. |
| | ZipArchive::getStatusString | This method no longer returns false on failure. |
| | ZipArchive::setEncryptionIndex | password is now nullable. |
| | ZipArchive::setEncryptionName | password is now nullable. |