diff --git a/appendices/migration74/incompatible.xml b/appendices/migration74/incompatible.xml index 849ef00904f..b98630d0152 100644 --- a/appendices/migration74/incompatible.xml +++ b/appendices/migration74/incompatible.xml @@ -1,6 +1,6 @@ - + 下位互換性のない変更点 @@ -253,6 +253,11 @@ ではなく Exception が生成されるようになりました。これは、シリアル化をサポートしていない他の内部的なクラスと一貫した挙動です。 + + + ReflectionClassConstant, + ReflectionMethod, ReflectionProperty のクラス定数の値が変更されました。 + diff --git a/reference/reflection/reflectionclassconstant.xml b/reference/reflection/reflectionclassconstant.xml index 9a4421273bb..f8a2718da6e 100644 --- a/reference/reflection/reflectionclassconstant.xml +++ b/reference/reflection/reflectionclassconstant.xml @@ -1,6 +1,6 @@ - + @@ -41,16 +41,19 @@ const int ReflectionClassConstant::IS_PUBLIC + 1 const int ReflectionClassConstant::IS_PROTECTED + 2 const int ReflectionClassConstant::IS_PRIVATE + 4 &Properties; @@ -113,6 +116,7 @@ アクセス権が public であることを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 256 でした。 @@ -122,6 +126,7 @@ アクセス権が protected であることを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 512 でした。 @@ -131,11 +136,19 @@ アクセス権が private であることを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 1024 でした。 + + + これらの定数の値は、PHP のバージョンが異なると変更される可能性があります。 + これらの値を直接用いず、常に定数を使うことを推奨します。 + + + diff --git a/reference/reflection/reflectionclassconstant/getmodifiers.xml b/reference/reflection/reflectionclassconstant/getmodifiers.xml index 7d596d04efb..05f6ee46286 100644 --- a/reference/reflection/reflectionclassconstant/getmodifiers.xml +++ b/reference/reflection/reflectionclassconstant/getmodifiers.xml @@ -1,6 +1,6 @@ - + @@ -29,7 +29,7 @@ アクセス修飾子の数値表現を返します。 これらの修飾子の実際の意味は、 - 定義済みの定数 で説明しています。 + 定義済みの定数 で説明しています。 diff --git a/reference/reflection/reflectionmethod.xml b/reference/reflection/reflectionmethod.xml index 4faa00b2eec..e84c02d4221 100644 --- a/reference/reflection/reflectionmethod.xml +++ b/reference/reflection/reflectionmethod.xml @@ -1,6 +1,6 @@ - + @@ -47,37 +47,37 @@ const int ReflectionMethod::IS_STATIC - 1 + 16 const int ReflectionMethod::IS_PUBLIC - 256 + 1 const int ReflectionMethod::IS_PROTECTED - 512 + 2 const int ReflectionMethod::IS_PRIVATE - 1024 + 4 const int ReflectionMethod::IS_ABSTRACT - 2 + 64 const int ReflectionMethod::IS_FINAL - 4 + 32 &Properties; @@ -137,46 +137,70 @@ ReflectionMethod::IS_STATIC - メソッドが static であることを示します。 + + メソッドが static であることを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 1 でした。 + ReflectionMethod::IS_PUBLIC - メソッドが public であることを示します。 + + メソッドが public であることを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 256 でした。 + ReflectionMethod::IS_PROTECTED - メソッドが protected であることを示します。 + + メソッドが protected であることを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 512 でした。 + ReflectionMethod::IS_PRIVATE - メソッドが private であることを示します。 + + メソッドが private であることを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 1024 でした。 + ReflectionMethod::IS_ABSTRACT - メソッドが abstract であることを示します。 + + メソッドが abstract であることを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 2 でした。 + ReflectionMethod::IS_FINAL - メソッドが final であることを示します。 + + メソッドが final であることを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 4 でした。 + + + + これらの定数の値は、PHP のバージョンが異なると変更される可能性があります。 + これらの値を直接用いず、常に定数を使うことを推奨します。 + + diff --git a/reference/reflection/reflectionmethod/getmodifiers.xml b/reference/reflection/reflectionmethod/getmodifiers.xml index 7c14d2c53b9..7fd3ec9607c 100644 --- a/reference/reflection/reflectionmethod/getmodifiers.xml +++ b/reference/reflection/reflectionmethod/getmodifiers.xml @@ -1,6 +1,6 @@ - + @@ -71,10 +71,10 @@ echo implode(' ', Reflection::getModifierNames($bar->getModifiers())); diff --git a/reference/reflection/reflectionproperty.xml b/reference/reflection/reflectionproperty.xml index b9b9686e30c..6768665006e 100644 --- a/reference/reflection/reflectionproperty.xml +++ b/reference/reflection/reflectionproperty.xml @@ -1,6 +1,6 @@ - + @@ -43,25 +43,25 @@ const int ReflectionProperty::IS_STATIC - 1 + 16 const int ReflectionProperty::IS_PUBLIC - 256 + 1 const int ReflectionProperty::IS_PROTECTED - 512 + 2 const int ReflectionProperty::IS_PRIVATE - 1024 + 4 &Properties; @@ -126,6 +126,7 @@ static プロパティを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 1 でした。 @@ -136,6 +137,7 @@ public プロパティを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 256 でした。 @@ -146,6 +148,7 @@ protected プロパティを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 512 でした。 @@ -156,11 +159,18 @@ private プロパティを示します。 + PHP 7.4.0 より前のバージョンでは、この値は 1024 でした。 + + + これらの定数の値は、PHP のバージョンが異なると変更される可能性があります。 + これらの値を直接用いず、常に定数を使うことを推奨します。 + + diff --git a/reference/reflection/reflectionproperty/getmodifiers.xml b/reference/reflection/reflectionproperty/getmodifiers.xml index ef5c06eb0fe..ab885445e54 100644 --- a/reference/reflection/reflectionproperty/getmodifiers.xml +++ b/reference/reflection/reflectionproperty/getmodifiers.xml @@ -1,6 +1,6 @@ - + @@ -31,6 +31,8 @@ &reftitle.returnvalues; 修飾子の数値表現を返します。 + これらの修飾子の実際の意味は、 + 定義済みの定数 で説明しています。