Skip to content

Commit

Permalink
Sync datetime and fileinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Aug 20, 2023
1 parent e0ca32e commit 4d9f9f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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

0 comments on commit 4d9f9f7

Please sign in to comment.