com doc/ja: Update example: reference/var/functions/get-resource-type.xml
[email protected] (Yoshinari Takaoka) Thu, 18 Feb 2021 08:51:27 +0000
| Newsgroups | php.doc.ja |
|---|---|
| Message-ID | <[email protected]> |
Commit: dd1b901cf2bc3c9bd6273cbc93b350ba6de40bee=0AAuthor: Yoshinari = Takaoka <[email protected]> Thu, 18 Feb 2021 17:51:27 +0900=0AParen= ts: e1be4921305b4b5de4ad269b4c3391738d3179e1=0ABranches: master=0A=0ALin= k: http://git.php.net/?p=3Ddoc/ja.git;a=3Dcommitdiff;h=3Ddd1b901cf2bc= 3c9bd6273cbc93b350ba6de40bee=0A=0ALog:=0AUpdate example=0A=0Amysql_connect(= ) and new_xmldoc() are deprecated/removed.=0A=0ACloses GH-454.=0A=0AChanged= paths:=0A M reference/var/functions/get-resource-type.xml=0A=0A=0ADiff:= =0Adiff --git a/reference/var/functions/get-resource-type.xml b/reference/v= ar/functions/get-resource-type.xml=0Aindex 85ce7b20f5..e0872e7f9c 100644=0A= --- a/reference/var/functions/get-resource-type.xml=0A+++ b/reference/var/f= unctions/get-resource-type.xml=0A@@ -1,7 +1,7 @@=0A <?xml version=3D"1.0" e= ncoding=3D"utf-8"?>=0A <!-- $Revision$ -->=0A <!-- splitted from ./ja/funct= ions/var.xml, last change in rev 1.23 -->=0A-<!-- EN-Revision: ac20506c2ac1= e8af83fd3577d1387c6cb648a5e6 Maintainer: hirokawa Status: ready -->=0A+<!--= EN-Revision: e4c3d5d495373a8ae080e9e8b62ffe512f2dfd11 Maintainer: hirokawa= Status: ready -->=0A <!-- CREDITS: takagi,mumumu -->=0A <refentry xml:id= =3D"function.get-resource-type" xmlns=3D"http://docbook.org/ns/docbook">=0A= <refnamediv>=0A@@ -57,17 +57,13 @@=0A <programlisting role=3D"php">= =0A <![CDATA[=0A <?php=0A-// mysql link =E3=82=92=E5=87=BA=E5=8A=9B=0A-$c = =3D mysql_connect();=0A-echo get_resource_type($c) . "\n";=0A-=0A // stream= =E3=82=92=E5=87=BA=E5=8A=9B=0A $fp =3D fopen("foo", "w");=0A echo get_reso= urce_type($fp) . "\n";=0A =0A-// domxml document =E3=82=92=E5=87=BA= =E5=8A=9B=0A-$doc =3D new_xmldoc("1.0");=0A-echo get_resource_type($doc->do= c) . "\n";=0A+// curl =E3=82=92=E5=87=BA=E5=8A=9B=0A+$c =3D curl_init ();= =0A+echo get_resource_type($c) . "\n"; // PHP 8.0.0 =E3=82=88=E3=82=8A= =E5=89=8D=E3=81=AE=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E3=81=A7= =E5=8B=95=E4=BD=9C=E3=81=97=E3=81=BE=E3=81=99=E3=80=828.0 =E4=BB=A5= =E9=99=8D=E3=81=AF CurlHandle =E3=82=AA=E3=83=96=E3=82=B8=E3=82=A7=E3=82= =AF=E3=83=88=E3=82=92=E8=BF=94=E3=81=99=E3=81=8B=E3=82=89=E3=81=A7=E3=81= =99=E3=80=82=0A ?>=0A ]]>=0A </programlisting>=0A