Sie sind hier: PHP-Versionen > PHP 7 > PHP 7.0

PHP 7.0.6 wurde am 28.04.2016 herausgebracht. Im folgenden erhalten Sie einen kurzen Überblick welche Änderungen in diesem Patch enthalten waren. Bei Interesse kann auch das ausführliche Änderungsprotokoll eingesehen werden.

Fehlerbehebung
Core
_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed
Crash on assert(new class{})
Reference is lost in "switch"
Interfaces allow final and abstract functions
zend_objects_store_call_destructors operates on realloced memory, crashing
EG(error_zval) is not handled well
Multiple Heap Overflows in php_raw_url_encode/ php_url_encode
Null coalescing operator and ArrayAccess
Segmentation fault on ZTS with gethostbyname
Inheritance, traits and interfaces
Null coalescing operator and magic
Cannot access array keys while uksort()
ArrayAccess, isset() and the offsetExists method
__debugInfo with empty string for key gives error
ArrayObject and isset are not friends
Decorated/Nested Generator is Uncloseable in Finally
BCmath
bcpowmod accepts negative scale and corrupts _one_ definition
Curl
CURLOPT_NOPROXY applied as long instead of string
Date
DateInterval::format Segmentation fault
EXIF
Out of bounds heap read access in exif header processing
GD
libgd: signedness vulnerability
Intl
IntlDateFormatter looses locale if pattern is set via constructor
Missing constant: IntlChar::NO_NUMERIC_VALUE
Inconsistencies in return values of IntlChar methods
Stackoverflow in datefmt_create
Locale::lookup incorrectly returns en or en_US if locale is empty
selectordinal doesn't work with named parameters
Out-of-bounds reads in zif_grapheme_stripos with negative offset
ODBC
Script hangs after max_execution_time
Opcache
null ptr deref ZEND_RETURN_SPEC_CONST_HANDLER
PDO
Own PDOStatement implementation ignore __call()
Quotes inside comments not properly handled
PDO_DBlib
dblib_handle_quoter needs to allocate an extra byte
PDO_pgsql
pdo_pgsql inefficient when getColumnMeta() is used
Postgres
pg_fetch_object binds parameters before call constructor
Function pg_insert does not insert when column type = inet
SOAP
Nested foreach assign-by-reference creates broken variables
SPL
Deserializing serialized SPLObjectStorage-Object can't access properties in PHP
Double-free in SplDoublyLinkedList::offsetSet
Cloned SplObjectStorage with overwritten getHash fails offsetExists()
SPL autoloader breaks class_exists()
Standard
array_fill optimization breaks implementation
Returning the same var twice from __sleep() produces broken serialized data
Unserialize crushes on restore object reference
str_replace returns an incorrect resulting array after a foreach by reference
header_register_callback() and register_shutdown_function()
Null pointer deref (segfault) in stream_context_get_default
Unserialize accepts wrongly data
Wrong arrays behaviour
substr_replace bug, string length
php_crypt() crashes if crypt_r() does not exist or _REENTRANT is not defined
XML
xml_parse_into_struct segmentation fault
Zip
integer overflow in ZipArchive::getFrom*
Neuerung
PDO_DBlib
Add DBLIB-specific attributes for controlling timeouts

Changelog Quelle php.net

Anzeige