더 이상 사용되지 않는 기능
Calls from incompatible context
호환되지 않는 컨텍스트에서 호출된 메서드는 이제 더 이상 사용되지 않으며 E_STRICT 대신 호출될 때 E_DEPRECATED 오류가 생성됩니다. 이러한 호출에 대한 지원은 향후 버전의 PHP에서 제거됩니다.
이러한 호출의 예는 다음과 같습니다.
<?php
class A {
function f() { echo get_class($this); }
}
class B {
function f() { A::f(); }
}
(new B)->f();
?>
위의 예는 다음을 출력합니다.
Deprecated: Non-static method A::f() should not be called statically, assuming $this from incompatible context in - on line 7 B
$HTTP_RAW_POST_DATA and always_populate_raw_post_data
이제 always_populate_raw_post_data는 $HTTP_RAW_POST_DATA가 채워지면 E_DEPRECATED 오류를 생성합니다. 새 코드는 향후 릴리스에서 제거될 $HTTP_RAW_POST_DATA 대신 php://input을 사용해야 합니다. always_populate_raw_post_data를 -1로 설정하여 새로운 동작($HTTP_RAW_POST_DATA가 정의되지 않으므로 E_DEPRECATED 오류가 생성되지 않음)을 선택할 수 있습니다.
iconv and mbstring encoding settings
인코딩과 관련된 iconv 및 mbstring 구성 옵션은 더 이상 사용되지 않으며 default_charset이 사용됩니다. 더 이상 사용되지 않는 옵션은 다음과 같습니다.