From e0a0e1100e4c3922506d59381d518f7be4cfdbe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Sat, 14 Nov 2026 12:54:22 +0900 Subject: [PATCH 1/2] =?UTF-8?q?exec=20=E3=82=92=E5=8E=9F=E6=96=87=E3=81=AE?= =?UTF-8?q?=E5=A4=89=E6=9B=B4=E3=81=AB=E8=BF=BD=E5=BE=93=20(4=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reference/exec/functions/escapeshellarg.xml | 46 ++++++++++++++++++++- reference/exec/functions/escapeshellcmd.xml | 46 ++++++++++++++++++++- reference/exec/functions/shell-exec.xml | 33 ++++++++++++++- reference/exec/functions/system.xml | 42 ++++++++++++++++++- 4 files changed, 163 insertions(+), 4 deletions(-) diff --git a/reference/exec/functions/escapeshellarg.xml b/reference/exec/functions/escapeshellarg.xml index 777a41ba78d..6df5b231503 100644 --- a/reference/exec/functions/escapeshellarg.xml +++ b/reference/exec/functions/escapeshellarg.xml @@ -1,6 +1,6 @@ - + @@ -63,6 +63,50 @@ + + &reftitle.errors; + + arg に null バイトが含まれていたり、 + arg またはエスケープ後の引数が + システムのコマンドラインの最大長を超える場合、 + ValueError がスローされます。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.4.0 + + arg またはエスケープ後の引数が長すぎる場合、 + escapeshellarg は ValueError をスローするようになりました。 + これより前のバージョンでは、 + E_ERROR が発生していました。 + + + + 8.0.0 + + arg に null バイトが含まれている場合、 + escapeshellarg は ValueError をスローするようになりました。 + これより前のバージョンでは、 + E_ERROR が発生していました。 + + + + + + + &reftitle.examples; diff --git a/reference/exec/functions/escapeshellcmd.xml b/reference/exec/functions/escapeshellcmd.xml index 7acb193f7c5..ae8b0f4d115 100644 --- a/reference/exec/functions/escapeshellcmd.xml +++ b/reference/exec/functions/escapeshellcmd.xml @@ -1,6 +1,6 @@ - + @@ -63,6 +63,50 @@ + + &reftitle.errors; + + command に null バイトが含まれていたり、 + command またはエスケープ後のコマンドが + システムのコマンドラインの最大長を超える場合、 + ValueError がスローされます。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.4.0 + + command またはエスケープ後のコマンドが長すぎる場合、 + escapeshellcmd は ValueError をスローするようになりました。 + これより前のバージョンでは、 + E_ERROR が発生していました。 + + + + 8.0.0 + + command に null バイトが含まれている場合、 + escapeshellcmd は ValueError をスローするようになりました。 + これより前のバージョンでは、 + E_ERROR が発生していました。 + + + + + + + &reftitle.examples; diff --git a/reference/exec/functions/shell-exec.xml b/reference/exec/functions/shell-exec.xml index b0ba846060e..1550f23c9fd 100644 --- a/reference/exec/functions/shell-exec.xml +++ b/reference/exec/functions/shell-exec.xml @@ -1,6 +1,6 @@ - + @@ -67,6 +67,37 @@ パイプがオープンできなかった場合は E_WARNING レベルの警告が発生します。 + + command + が空だったり、null バイトが含まれている場合、 + ValueError がスローされます。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + command + が空だったり、null バイトが含まれている場合、 + shell_exec は ValueError をスローするようになりました。 + これより前のバージョンでは、 + E_WARNING が発生し、&false; を返していました。 + + + + + diff --git a/reference/exec/functions/system.xml b/reference/exec/functions/system.xml index 99967bac7a4..d82a5e04288 100644 --- a/reference/exec/functions/system.xml +++ b/reference/exec/functions/system.xml @@ -1,6 +1,6 @@ - + @@ -64,6 +64,46 @@ + + &reftitle.errors; + + system + が command + を実行できない場合、E_WARNING が発生します。 + + + command + が空だったり、null バイトが含まれている場合、 + ValueError がスローされます。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + command + が空だったり、null バイトが含まれている場合、 + system は ValueError をスローするようになりました。 + これより前のバージョンでは、 + E_WARNING が発生し、&false; を返していました。 + + + + + + + &reftitle.examples; From 18c469935e23e650f67bb3062ac7ea8b33bb6a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Sat, 14 Nov 2026 13:56:45 +0900 Subject: [PATCH 2/2] =?UTF-8?q?PHP=208.4=20=E3=81=AE=E7=A7=BB=E8=A1=8C?= =?UTF-8?q?=E3=82=AC=E3=82=A4=E3=83=89=E3=81=AE=20E=5FERROR=20=E3=81=AE?= =?UTF-8?q?=E8=A8=80=E3=81=84=E5=9B=9E=E3=81=97=E3=82=92=20exec=20?= =?UTF-8?q?=E3=81=AE=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=AB=E6=8F=83=E3=81=88?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appendices/migration84/incompatible.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appendices/migration84/incompatible.xml b/appendices/migration84/incompatible.xml index 21f01fcdd24..a77f9a5b343 100644 --- a/appendices/migration84/incompatible.xml +++ b/appendices/migration84/incompatible.xml @@ -41,7 +41,7 @@ 比較中に再帰が発生すると、 - E_ERROR の致命的なエラーの代わりに、 + E_ERROR が発生する代わりに、 Error 例外がスローされるようになりました。