본문 바로가기
작성중인글

[PHP] Deprecated features in PHP 5.6.x

by 언제나초심. 2016. 10. 20.
반응형
관련 링크 : http://php.net/manual/en/migration56.deprecated.php



Deprecated features in 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:


<?php

class A {

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

}


class B {

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

}


(new B)->f();

?>

The above example will output:


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

B




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:


iconv.input_encoding

iconv.output_encoding

iconv.internal_encoding

mbstring.http_input

mbstring.http_output

mbstring.internal_encoding

반응형