From c8b637945ca8a7a7635d900b1f3daae332ac33b6 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, 8 Aug 2026 18:58:50 +0900 Subject: [PATCH] =?UTF-8?q?wasm=E5=AE=9F=E8=A1=8C=E7=B5=90=E6=9E=9C?= =?UTF-8?q?=E3=81=AE=E3=83=89=E3=83=AA=E3=83=95=E3=83=88=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=BE=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 対象PR - php/doc-en#5721 - php/doc-en#5730 - php/doc-en#5740 --- .../datetime/functions/date-sun-info.xml | 25 ++++++++++--------- reference/uri/uri/whatwg/url/getport.xml | 12 ++++++--- reference/uri/uri/whatwg/url/parse.xml | 4 +-- reference/uri/uri/whatwg/url/withport.xml | 11 +++++--- 4 files changed, 31 insertions(+), 21 deletions(-) diff --git a/reference/datetime/functions/date-sun-info.xml b/reference/datetime/functions/date-sun-info.xml index 7a78297eeb..9c7436e76e 100644 --- a/reference/datetime/functions/date-sun-info.xml +++ b/reference/datetime/functions/date-sun-info.xml @@ -1,6 +1,6 @@ - + @@ -178,6 +178,7 @@ $val) { echo "$key: " . date("H:i:s", $val) . "\n"; @@ -187,15 +188,15 @@ foreach ($sun_info as $key => $val) { &example.outputs; @@ -279,13 +280,13 @@ $si = date_sun_info(strtotime('2022-08-26'), 50.45, 30.52); $diff = $si['sunset'] - $si['sunrise']; echo "Length of day: ", floor($diff / 3600), "h ", - floor(($diff % 3600) / 60), "s\n"; + floor(($diff % 3600) / 60), "m\n"; ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/getport.xml b/reference/uri/uri/whatwg/url/getport.xml index 43046adfa0..8d3018eba8 100644 --- a/reference/uri/uri/whatwg/url/getport.xml +++ b/reference/uri/uri/whatwg/url/getport.xml @@ -1,6 +1,6 @@ - + Uri\WhatWg\Url::getPort @@ -37,16 +37,20 @@ getPort()); -echo $url->getPort(); +// 443 は https のデフォルトポートなので、保持されません。 +$url = new \Uri\WhatWg\Url("https://example.com:443"); +var_dump($url->getPort()); ?> ]]> &example.outputs; diff --git a/reference/uri/uri/whatwg/url/parse.xml b/reference/uri/uri/whatwg/url/parse.xml index 39a3272732..187bf24ddf 100644 --- a/reference/uri/uri/whatwg/url/parse.xml +++ b/reference/uri/uri/whatwg/url/parse.xml @@ -1,6 +1,6 @@ - + Uri\WhatWg\Url::parse @@ -81,7 +81,7 @@ if ($url !== null) { &example.outputs; diff --git a/reference/uri/uri/whatwg/url/withport.xml b/reference/uri/uri/whatwg/url/withport.xml index f5034486e9..ffc9ad5b2a 100644 --- a/reference/uri/uri/whatwg/url/withport.xml +++ b/reference/uri/uri/whatwg/url/withport.xml @@ -1,6 +1,6 @@ - + @@ -53,16 +53,21 @@ withPort(443); +var_dump($url->getPort()); -echo $url->getPort(); +$url = $url->withPort(8443); +var_dump($url->getPort()); ?> ]]> &example.outputs;