관련링크 : http://php.net/manual/en/migration70.deprecated.php
Deprecated features in PHP 7.0.x ¶
PHP 4 style constructors ¶
PHP 4 style constructors (methods that have the same name as the class they are defined in) are deprecated, and will be removed in the future. PHP 7 will emit E_DEPRECATED if a PHP 4 constructor is the only constructor defined within a class. Classes that implement a __construct() method are unaffected.
<?php
class foo {
function foo() {
echo 'I am the constructor';
}
}
?>
The above example will output:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; foo has a deprecated constructor in example.php on line 3
Static calls to non-static methods ¶
Static calls to methods that are not declared static are deprecated, and may be removed in the future.
<?php
class foo {
function bar() {
echo 'I am not static!';
}
}
foo::bar();
?>
The above example will output:
Deprecated: Non-static method foo::bar() should not be called statically in - on line 8
I am not static!
password_hash() salt option ¶
The salt option for the password_hash() function has been deprecated to prevent developers from generating their own (usually insecure) salts. The function itself generates a cryptographically secure salt when no salt is provided by the developer - therefore custom salt generation should not be needed.
capture_session_meta SSL context option ¶
The capture_session_meta SSL context option has been deprecated. SSL metadata is now available through the stream_get_meta_data() function.
LDAP deprecations ¶
The following function has been deprecated:
ldap_sort()
'작성중인글' 카테고리의 다른 글
[PHP] Deprecated features in PHP 5.6.x (0) | 2016.10.20 |
---|---|
[PHP] Deprecated features in PHP 5.5.x (0) | 2016.10.20 |
혁신에 대한 이야기 (작성중) (0) | 2016.06.17 |
한컴오피스 한글 단축키 정리중 (0) | 2013.10.01 |
엑셀 - 쓸데없는 거 간단히 (0) | 2013.09.30 |
어베스트 설정 과정 기록 - 2013/09/30 (0) | 2013.09.30 |
iptime 공유기. 펌웨어 업그레이드 완료후 관리자 인증이 안 될 때 (0) | 2013.02.22 |
NSIS Error (0) | 2012.09.25 |