svn: /phpdoc/en/trunk/reference/datetime/functions/ mktime.xml
| From: | Peter Cowburn | Date: | Sat, 01 Aug 2009 12:01:14 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/datetime/functions/ mktime.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4589@lists.php.net to get a copy of this message | ||
salathe Sat, 01 Aug 2009 12:01:14 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=286620
Log:
Fixes #47084 Document mktime() E_STRICT with no arguments
Bug: http://bugs.php.net/47084 (Open) Calling mktime() w/o
arguments raises strict error
Changed paths:
U phpdoc/en/trunk/reference/datetime/functions/mktime.xml
Modified: phpdoc/en/trunk/reference/datetime/functions/mktime.xml
===================================================================
--- phpdoc/en/trunk/reference/datetime/functions/mktime.xml 2009-08-01 12:00:31 UTC (rev 286619)
+++ phpdoc/en/trunk/reference/datetime/functions/mktime.xml 2009-08-01 12:01:14 UTC (rev 286620)
@@ -32,6 +32,17 @@
</para>
</refsect1>
+ <refsect1 role="notes">
+ &reftitle.notes;
+ <note>
+ <para>
+ As of PHP 5.1, when called with no arguments, <function>mktime</function>
+ throws an <constant>E_STRICT</constant> notice: use the
+ <function>time</function> function instead.
+ </para>
+ </note>
+ </refsect1>
+
<refsect1 role="parameters">
&reftitle.parameters;
<para>
@@ -161,6 +172,14 @@
as zero.
</entry>
</row>
+ <row>
+ <entry>5.1.0</entry>
+ <entry>
+ When called with no arguments, <function>mktime</function> throws
+ <constant>E_STRICT</constant> notice. Use the
+ <function>time</function> function instead.
+ </entry>
+ </row>
&date.timezone.errors.changelog;