Include null on failure in return values

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349161 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sherif Ramadan 2020-02-07 13:53:29 +00:00
parent 1ebf8fee1a
commit a4e73423dc

View file

@ -38,6 +38,7 @@
<para>
The length of the <parameter>string</parameter> on success,
and <literal>0</literal> if the <parameter>string</parameter> is empty.
Will return &null; on failure.
</para>
</refsect1>
@ -55,6 +56,7 @@
<row>
<entry>5.3.0</entry>
<entry>
Returns &null; on failure.
Prior versions treated arrays as the string <literal>Array</literal>, thus returning
a string length of <literal>5</literal> and emitting an <constant>E_NOTICE</constant> level error.
</entry>