svn: /phpdoc/en/trunk/reference/strings/functions/ sprintf.xml
| From: | Adam Harvey | Date: | Mon, 12 Nov 2012 02:14:56 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ sprintf.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-10684@lists.php.net to get a copy of this message | ||
aharvey Mon, 12 Nov 2012 02:14:56 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=328312
Log:
Add a note about position specifiers respecting PHP_INT_MAX.
Fixes doc bug #61531 (Integer Overflow in all printf functions).
Bug: https://bugs.php.net/61531 (Analyzed) Integer Overflow
in all printf functions
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/sprintf.xml
Modified: phpdoc/en/trunk/reference/strings/functions/sprintf.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/sprintf.xml 2012-11-12 02:00:58 UTC (rev 328311)
+++ phpdoc/en/trunk/reference/strings/functions/sprintf.xml 2012-11-12 02:14:56 UTC (rev 328312)
@@ -245,6 +245,13 @@
</screen>
</example>
</para>
+ <note>
+ <para>
+ Attempting to use a position specifier greater than
+ <constant>PHP_INT_MAX</constant> will result in
+ <function>sprintf</function> generating warnings.
+ </para>
+ </note>
</listitem>
</varlistentry>
<varlistentry>