ささやかな日々記

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

PHP 7.2.x から PHP 7.3.x への移行の勝手な日本語訳 後方互換のない変更⑥

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

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

 

BCMath Arbitrary Precision Mathematics 

BCMath関数


All warnings thrown by BCMath functions are now using PHP's error handling. Formerly some warnings have directly been written to stderr.

BCMath関数によって投げられるすべての警告は、現在PHPのエラー処理を使用しています。以前はいくつかの警告が直接stderrに書き込まれていました。

 

bcmul() and bcpow() now return numbers with the requested scale. Formerly, the returned numbers may have omitted trailing decimal zeroes.

bcmul()とbcpow()は、要求されたスケールで数値を返すようになりました。以前は、返された数値で末尾の10進ゼロが省略されていた可能性があります。

 

 

IMAP, POP3 and NNTP 

IMAPPOP3、NNTP


rsh/ssh logins are disabled by default. Use imap.enable_insecure_rsh if you want to enable them. Note that the IMAP library does not filter mailbox names before passing them to the rsh/ssh command, thus passing untrusted data to this function with rsh/ssh enabled is insecure.

rsh / sshログインはデフォルトで無効になっています。有効にしたい場合はimap.enable_insecure_rshを使用してください。 IMAPライブラリはメールボックス名をrsh / sshコマンドに渡す前にフィルタリングしないので、rsh / sshを有効にして信頼できないデータをこの関数に渡すのは安全ではありません。

 

 

Multibyte String 

マルチバイト文字列


Due to added support for named captures, mb_ereg_*() patterns using named captures will behave differently. In particular named captures will be part of matches and mb_ereg_replace() will interpret additional syntax. See Named Captures for more information.

名前付きキャプチャのサポートが追加されたため、名前付きキャプチャを使用したmb_ereg _ *()パターンの動作は異なります。特に名前付きキャプチャはマッチの一部となり、mb_ereg_replace()は追加の構文を解釈します。詳細については、名前付きキャプチャを参照してください。

 

 

MySQL Improved Extension 

MySQLの改良された拡張機能


Prepared statements now properly report the fractional seconds for DATETIME, TIME and TIMESTAMP columns with decimals specifier (e.g. TIMESTAMP(6) when using microseconds). Formerly, the fractional seconds part was simply omitted from the returned values.

DATETIME、TIME、TIMESTAMPの各桁の小数秒を小数点付きの指定子で正確に報告するようになりました(マイクロ秒を使用する場合はTIMESTAMP(6)など)。以前は、小数秒の部分は単に戻り値から省略されていました。

 

 

MySQL Functions (PDO_MYSQL

MySQL関数(PDO_MYSQL

 

Prepared statements now properly report the fractional seconds for DATETIME, TIME and TIMESTAMP columns with decimals specifier (e.g. TIMESTAMP(6) when using microseconds). Formerly, the fractional seconds part was simply omitted from the returned values. Please note that this only affects the usage of PDO_MYSQL with emulated prepares turned off (e.g. using the native preparation functionality). Statements using connections having PDO::ATTR_EMULATE_PREPARES=TRUE (which is the default) were not affected by the bug fixed and have already been getting the proper fractional seconds values from the engine.

 

DATETIME、TIME、TIMESTAMPの各桁の小数秒を小数点付きの指定子で正確に報告するようになりました(マイクロ秒を使用する場合はTIMESTAMP(6)など)。以前は、小数秒の部分は単に戻り値から省略されていました。これはエミュレートされた準備がオフになっている場合のPDO_MYSQLの使用法にのみ影響することに注意してください(例えば、ネイティブ準備機能の使用)。 PDO :: ATTR_EMULATE_PREPARES = TRUE(デフォルト)を持つ接続を使用しているステートメントは、修正されたバグの影響を受けず、エンジンから適切な小数秒の値をすでに取得しています。

 

 

Reflection 

リフレクション

Reflection export to string now uses int and bool instead of integer and boolean, respectively.

文字列へのリフレクションエクスポートで、整数とブール値の代わりにそれぞれintとboolが使用されるようになりました。

 

 

 

Standard PHP Library (SPL) 

標準PHPライブラリ(SPL)

 

If an SPL autoloader throws an exception, following autoloaders will not be executed. Previously all autoloaders were executed and exceptions were chained.

 SPLオートローダが例外をスローした場合、以下のオートローダは実行されません。以前はすべてのオートローダが実行され、例外が連鎖していました。

 

 

SimpleXML 

SimpleXML

 

Mathematic operations involving SimpleXML objects will now treat the text as an integer or float, whichever is more appropriate. Previously values were treated as integers unconditionally.

 SimpleXMLオブジェクトを含む数学演算は、テキストを整数または浮動小数点のどちらか適切な方として扱うようになりました。以前は、値は無条件に整数として扱われていました。

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

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

楽天で購入