mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
[PHP 8.1] Document deprecated ctype non-string argument. (#1179)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
This commit is contained in:
parent
8a7836bf88
commit
39247cb926
13 changed files with 18 additions and 1 deletions
|
@ -153,7 +153,7 @@ $arr[] = 2;
|
|||
In the future, the argument will be interpreted as a string instead
|
||||
of an ASCII codepoint.
|
||||
Depending on the intended behavior, the argument should either be
|
||||
casted to &string; or an explicit call to
|
||||
cast to &string; or an explicit call to
|
||||
<function>chr</function> should be made.
|
||||
All <literal>ctype_*()</literal> functions are affected.
|
||||
</para>
|
||||
|
|
|
@ -1846,6 +1846,12 @@ the ASCII value of a single character (negative values have 256 added in order t
|
|||
characters in the Extended ASCII range). Any other integer is interpreted as a string
|
||||
containing the decimal digits of the integer.</para></note>'>
|
||||
|
||||
<!ENTITY note.ctype.parameter.non-string '<warning xmlns="http://docbook.org/ns/docbook"><para>
|
||||
As of PHP 8.1.0, passing a non-string argument is deprecated.
|
||||
In the future, the argument will be interpreted as a string instead of an ASCII codepoint.
|
||||
Depending on the intended behavior, the argument should either be cast to &string;
|
||||
or an explicit call to <function>chr</function> should be made.</para></warning>'>
|
||||
|
||||
<!-- FTP Notes -->
|
||||
<!ENTITY ftp.changelog.ftp-param '<row xmlns="http://docbook.org/ns/docbook">
|
||||
<entry>8.1.0</entry>
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
<para>
|
||||
The tested string.
|
||||
¬e.ctype.parameter.integer;
|
||||
¬e.ctype.parameter.non-string;
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
Loading…
Reference in a new issue