diff --git a/reference/simplexml/functions/simplexml-import-dom.xml b/reference/simplexml/functions/simplexml-import-dom.xml index cf609b3866..83215643e9 100644 --- a/reference/simplexml/functions/simplexml-import-dom.xml +++ b/reference/simplexml/functions/simplexml-import-dom.xml @@ -1,6 +1,6 @@ - + @@ -36,12 +36,12 @@ class_name - + このオプションパラメータを使用すると、 simplexml_import_dom は指定したクラスのオブジェクトを返します。このクラスは SimpleXMLElement を継承していなければなりません。 - + @@ -62,6 +62,10 @@ 非XMLまたは非HTMLのnodeが渡された場合、 TypeErrorをスローします。 + + class_name が SimpleXMLElement + でもそのサブクラスでもない場合、TypeError をスローします。 + @@ -104,10 +108,6 @@ loadXML('blah'); -if (!$dom) { - echo 'ドキュメントのパース時にエラーが発生しました'; - exit; -} $s = simplexml_import_dom($dom); diff --git a/reference/simplexml/functions/simplexml-load-file.xml b/reference/simplexml/functions/simplexml-load-file.xml index 6cf4e5ecef..34dfbebfab 100644 --- a/reference/simplexml/functions/simplexml-load-file.xml +++ b/reference/simplexml/functions/simplexml-load-file.xml @@ -1,6 +1,6 @@ - + @@ -83,9 +83,14 @@ &return.falseforfailure;。 &return.falseproblem; + + options に LIBXML_RECOVER を指定した場合は、 + 空でない入力からルート要素を復元できなくても &false; を返しません。 + 代わりに、初期化されていない SimpleXMLElement を返します。 + - + &reftitle.errors; XML データ内でエラーが見つかるたびに E_WARNING @@ -97,7 +102,34 @@ 後から libxml_get_errors で取得することもできます。 - + + options が int の範囲に収まらない場合、 + ValueError をスローします。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + options が int の範囲に収まらない場合、 + ValueError をスローするようになりました。 + + + + + + &reftitle.examples; diff --git a/reference/simplexml/functions/simplexml-load-string.xml b/reference/simplexml/functions/simplexml-load-string.xml index ee8881a27b..3fab39bdda 100644 --- a/reference/simplexml/functions/simplexml-load-string.xml +++ b/reference/simplexml/functions/simplexml-load-string.xml @@ -1,6 +1,6 @@ - + @@ -83,9 +83,14 @@ &return.falseforfailure;。 &return.falseproblem; + + options に LIBXML_RECOVER を指定した場合は、 + 空でない入力からルート要素を復元できなくても &false; を返しません。 + 代わりに、初期化されていない SimpleXMLElement を返します。 + - + &reftitle.errors; XML データ内でエラーが見つかるたびに E_WARNING @@ -97,7 +102,34 @@ 後から libxml_get_errors で取得することもできます。 - + + options が int の範囲に収まらない場合、 + ValueError をスローします。 + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + options が int の範囲に収まらない場合、 + ValueError をスローするようになりました。 + + + + + + &reftitle.examples;