mirror of
https://github.com/php/doc-en.git
synced 2026-03-26 08:42:21 +01: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:
committed by
GitHub
parent
8a7836bf88
commit
39247cb926
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user