Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync datetime and fileinfo #779

Merged
merged 1 commit into from
Aug 21, 2023
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
4 changes: 2 additions & 2 deletions reference/datetime/functions/gmmktime.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: 8734cc1232dfe9a0fc9e455f470c6bf000537402 Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: 57e27d2a7615da2ee6de57ed27eb40b473d487cb Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<refentry xml:id="function.gmmktime" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -100,7 +100,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
成功时返回 <type>int</type> Unix 时间戳,&return.falseforfailure;。
成功时返回 <type>int</type> Unix 时间戳,如果时间戳不适合 PHP 整数则返回 &false;。
</para>
</refsect1>

Expand Down
4 changes: 2 additions & 2 deletions reference/datetime/functions/mktime.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: 8734cc1232dfe9a0fc9e455f470c6bf000537402 Maintainer: HonestQiao Status: ready -->
<!-- EN-Revision: 57e27d2a7615da2ee6de57ed27eb40b473d487cb Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.mktime" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -108,7 +108,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<function>mktime</function> 根据给出的参数返回 Unix 时间戳。
<function>mktime</function> 根据给出的参数返回 Unix 时间戳,如果时间戳不适合 PHP 整数则返回 &false;
</para>
</refsect1>

Expand Down
4 changes: 2 additions & 2 deletions reference/fileinfo/functions/finfo-file.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: 1160ec4e7d21a2619e9661d6afe3a6356267c6c2 Maintainer: yuanyuqiang Status: ready -->
<!-- EN-Revision: 811ee28918e320b3f2d9324ef0f9feae816091b5 Maintainer: yuanyuqiang Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<!-- Generated by xml_proto.php v2.3. Found in /scripts directory of phpdoc. -->
<refentry xml:id="function.finfo-file" xmlns="http://docbook.org/ns/docbook">
Expand Down Expand Up @@ -108,7 +108,7 @@
<programlisting role="php">
<![CDATA[
<?php
$finfo = finfo_open(FILEINFO_MIME_TYPE); // 返回 mime 类型
$finfo = finfo_open(FILEINFO_MIME_TYPE); // 返回 mime 类型,也被称为 mime 类型扩展。
foreach (glob("*") as $filename) {
echo finfo_file($finfo, $filename) . "\n";
}
Expand Down