Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appendices/migration84/incompatible.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<simpara>
比較中に再帰が発生すると、
<constant>E_ERROR</constant> の致命的なエラーの代わりに、
<constant>E_ERROR</constant> が発生する代わりに、
<exceptionname>Error</exceptionname> 例外がスローされるようになりました。
</simpara>
</sect3>
Expand Down
46 changes: 45 additions & 1 deletion reference/exec/functions/escapeshellarg.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 0600ff7ba94e3f491aeb246d8ddfedd98f0d7276 Maintainer: hirokawa Status: ready -->
<!-- EN-Revision: d71237a6d72fe22ef4b47b6d65ef169b90aecd9b Maintainer: hirokawa Status: ready -->
<!-- CREDITS: shimooka,mumumu -->
<!-- splitted from ./en/functions/exec.xml, last change in rev 1.8 -->
<refentry xml:id="function.escapeshellarg" xmlns="http://docbook.org/ns/docbook">
Expand Down Expand Up @@ -63,6 +63,50 @@
</simpara>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<simpara>
<parameter>arg</parameter> に null バイトが含まれていたり、
<parameter>arg</parameter> またはエスケープ後の引数が
システムのコマンドラインの最大長を超える場合、
<exceptionname>ValueError</exceptionname> がスローされます。
</simpara>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
<parameter>arg</parameter> またはエスケープ後の引数が長すぎる場合、
<function>escapeshellarg</function> は <exceptionname>ValueError</exceptionname> をスローするようになりました。
これより前のバージョンでは、
<constant>E_ERROR</constant> が発生していました。
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
<parameter>arg</parameter> に null バイトが含まれている場合、
<function>escapeshellarg</function> は <exceptionname>ValueError</exceptionname> をスローするようになりました。
これより前のバージョンでは、
<constant>E_ERROR</constant> が発生していました。
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down
46 changes: 45 additions & 1 deletion reference/exec/functions/escapeshellcmd.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 0600ff7ba94e3f491aeb246d8ddfedd98f0d7276 Maintainer: takagi Status: ready -->
<!-- EN-Revision: d71237a6d72fe22ef4b47b6d65ef169b90aecd9b Maintainer: takagi Status: ready -->
<!-- splitted from ./en/functions/exec.xml, last change in rev 1.2 -->
<!-- CREDITS: hirokawa,shimooka,mumumu -->
<refentry xml:id="function.escapeshellcmd" xmlns="http://docbook.org/ns/docbook">
Expand Down Expand Up @@ -63,6 +63,50 @@
</simpara>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<simpara>
<parameter>command</parameter> に null バイトが含まれていたり、
<parameter>command</parameter> またはエスケープ後のコマンドが
システムのコマンドラインの最大長を超える場合、
<exceptionname>ValueError</exceptionname> がスローされます。
</simpara>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
<parameter>command</parameter> またはエスケープ後のコマンドが長すぎる場合、
<function>escapeshellcmd</function> は <exceptionname>ValueError</exceptionname> をスローするようになりました。
これより前のバージョンでは、
<constant>E_ERROR</constant> が発生していました。
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
<parameter>command</parameter> に null バイトが含まれている場合、
<function>escapeshellcmd</function> は <exceptionname>ValueError</exceptionname> をスローするようになりました。
これより前のバージョンでは、
<constant>E_ERROR</constant> が発生していました。
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down
33 changes: 32 additions & 1 deletion reference/exec/functions/shell-exec.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 81593f08db3320d5366bf925c8561f097a9d69ad Maintainer: takagi Status: ready -->
<!-- EN-Revision: d71237a6d72fe22ef4b47b6d65ef169b90aecd9b Maintainer: takagi Status: ready -->
<!-- CREDITS: hirokawa,shimooka,mumumu -->
<!-- splitted from ./en/functions/exec.xml, last change in rev 1.2 -->
<refentry xml:id="function.shell-exec" xmlns="http://docbook.org/ns/docbook">
Expand Down Expand Up @@ -67,6 +67,37 @@
パイプがオープンできなかった場合は
<constant>E_WARNING</constant> レベルの警告が発生します。
</para>
<simpara>
<parameter>command</parameter>
が空だったり、null バイトが含まれている場合、
<exceptionname>ValueError</exceptionname> がスローされます。
</simpara>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
<parameter>command</parameter>
が空だったり、null バイトが含まれている場合、
<function>shell_exec</function> は <exceptionname>ValueError</exceptionname> をスローするようになりました。
これより前のバージョンでは、
<constant>E_WARNING</constant> が発生し、&false; を返していました。
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
Expand Down
42 changes: 41 additions & 1 deletion reference/exec/functions/system.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 0c9c2dd669fe9395eaa73d487fbd160f9057429a Maintainer: hirokawa Status: ready -->
<!-- EN-Revision: d71237a6d72fe22ef4b47b6d65ef169b90aecd9b Maintainer: hirokawa Status: ready -->
<!-- CREDITS: shimooka,mumumu -->
<!-- splitted from ./en/functions/exec.xml, last change in rev 1.24 -->
<refentry xml:id="function.system" xmlns="http://docbook.org/ns/docbook">
Expand Down Expand Up @@ -64,6 +64,46 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<simpara>
<function>system</function>
が <parameter>command</parameter>
を実行できない場合、<constant>E_WARNING</constant> が発生します。
</simpara>
<simpara>
<parameter>command</parameter>
が空だったり、null バイトが含まれている場合、
<exceptionname>ValueError</exceptionname> がスローされます。
</simpara>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
<parameter>command</parameter>
が空だったり、null バイトが含まれている場合、
<function>system</function> は <exceptionname>ValueError</exceptionname> をスローするようになりました。
これより前のバージョンでは、
<constant>E_WARNING</constant> が発生し、&false; を返していました。
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down