Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 7547 программистов и 1173 робота. Сейчас ищут 379 программистов ...
Приступая к работе

Deprecated features in PHP 5.6.x

Вернуться к: Migrating from PHP 5.5.x to PHP 5.6.x

Calls from incompatible context

Methods called from an incompatible context are now deprecated, and will generate E_DEPRECATED errors when invoked instead of E_STRICT. Support for these calls will be removed in a future version of PHP.

An example of such a call is:

class {
f() { echo get_class($this); }

f() { A::f(); }


Результат выполнения данного примера:

Deprecated: Non-static method A::f() should not be called statically, assuming $this from incompatible context in - on line 7

$HTTP_RAW_POST_DATA and always_populate_raw_post_data

always_populate_raw_post_data will now generate an E_DEPRECATED error when $HTTP_RAW_POST_DATA is populated. New code should use php://input instead of $HTTP_RAW_POST_DATA, which will be removed in a future release. You can opt in for the new behaviour (in which $HTTP_RAW_POST_DATA is never defined hence no E_DEPRECATED error will be generated) by setting always_populate_raw_post_data to -1.

iconv and mbstring encoding settings

The iconv and mbstring configuration options related to encoding have been deprecated in favour of default_charset. The deprecated options are:

Вернуться к: Migrating from PHP 5.5.x to PHP 5.6.x

© 2022 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware