ささやかな日々記

日々過ごす中で感じたことや培ったことが誰かの役に立てられたらと思うSEの雑記

PHP 7.2.x から PHP 7.3.x への移行の勝手な日本語訳 廃止予定の機能

PHP 7.2.x から PHP 7.3.x への移行の日本語訳がないので勝手に翻訳して備忘録にする。

廃止予定の機能。

まだ使えるけれど近いうちのバージョンアップで廃止する予定のため、ぼちぼち対応してくださいねという機能について。

廃止された場合には後方互換のない変更として記載されるはずです。

https://www.php.net/manual/ja/migration73.deprecated.php

 

PHP Core

Case-Insensitive Constants

大文字と小文字を区別しない定数

The declaration of case-insensitive constants has been deprecated. Passing TRUE as the third argument to define() will now generate a deprecation warning. The use of case-insensitive constants with a case that differs from the declaration is also deprecated.

大文字と小文字を区別しない定数の宣言は廃止されました。 define()の3番目の引数としてTRUEを渡すと、非推奨の警告が生成されます。 宣言とは異なるcaseを使用した、大文字と小文字を区別しない定数の使用も非推奨です。

 

Namespaced assert() 

名前空間付きassert()

Declaring a function called assert() inside a namespace is deprecated. The assert() function is subject to special handling by the engine, which may lead to inconsistent behavior when defining a namespaced function with the same name.

名前空間内でassert()という関数を宣言することは非推奨です。 assert()関数は、エンジンによる特別な処理の対象となります。これは、同じ名前を持つ名前空間付き関数を定義するときの動作に矛盾が生じる可能性があります。

 

Searching Strings for non-string Needle 

 文字列以外のNeedleを文字列で検索する

Passing a non-string needle to string search functions is deprecated. In the future the needle will be interpreted as a string instead of an ASCII codepoint. Depending on the intended behavior, you should either explicitly cast the needle to string or perform an explicit call to chr(). The following functions are affected:

文字列検索関数に非文字列の針を渡すことは非推奨です。 将来的には、針はASCIIコードポイントではなく文字列として解釈されます。 意図した動作に応じて、needleを明示的にstringにキャストするか、明示的にchr()を呼び出してください。 以下の機能が影響を受けます。

  • strpos()
  • strrpos()
  • stripos()
  • strripos()
  • strstr()
  • strchr()
  • strrchr()
  • stristr()

 

Strip-Tags Streaming

Strip-Tags ストリーミング

The fgetss() function and the string.strip_tags stream filter have been deprecated. This also affects the SplFileObject::fgetss() method and gzgetss() function.

fgetss()関数とstring.strip_tagsストリームフィルタは非推奨になりました。これはSplFileObject :: fgetss()メソッドとgzgetss()関数にも影響します。

 

Data Filtering

 データフィルタリング

The explicit usage of the constants FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED is now deprecated; both are implied for FILTER_VALIDATE_URL anyway.

定数FILTER_FLAG_SCHEME_REQUIREDおよびFILTER_FLAG_HOST_REQUIREDの明示的な使用は現在推奨されていません。とにかく、どちらもFILTER_VALIDATE_URLに暗黙的に含まれています。

 

Image Processing and GD

画像処理とGD

image2wbmp() has been deprecated.

image2wbmp()は推奨されなくなりました。

 

Internationalization Functions

国際化機能

Usage of the Normalizer::NONE form throws a deprecation warning, if PHP is linked with ICU ≥ 56.

PHPICU≧56にリンクされている場合、Normalizer :: NONE形式を使用すると非推奨警告がスローされます。

 

Multibyte String

マルチバイト文字列

The following undocumented mbereg_*() aliases have been deprecated. Use the corresponding mb_ereg_*() variants instead.

次の文書化されていないmbereg _ *()エイリアスは推奨されていません。代わりに対応するmb_ereg _ *()の変種を使用してください。

  • mbregex_encoding()
  • mbereg()
  • mberegi()
  • mbereg_replace()
  • mberegi_replace()
  • mbsplit()
  • mbereg_match()
  • mbereg_search()
  • mbereg_search_pos()
  • mbereg_search_regs()
  • mbereg_search_init()
  • mbereg_search_getregs()
  • mbereg_search_getpos()
  • mbereg_search_setpos()

 

ODBC and DB2 Functions (PDO_ODBC)

ODBCDB2の関数(PDO_ODBC

 

The pdo_odbc.db2_instance_name ini setting has been formally deprecated. It is deprecated in the documentation as of PHP 5.1.1.

pdo_odbc.db2_instance_name ini設定は正式に廃止されました。 PHP 5.1.1以降のドキュメントでは非推奨です。

 

[商品価格に関しましては、リンクが作成された時点と現時点で情報が変更されている場合がございます。]

気づけばプロ並みPHP 改訂版ーーゼロから作れる人になる! [ 谷藤賢一 ]
価格:2916円(税込、送料無料) (2019/6/16時点)

楽天で購入

 

ホームページ作成サービス「グーペ」