1
0
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:
Yoshinari Takaoka
2021-12-08 20:18:41 +09:00
committed by GitHub
parent 8a7836bf88
commit 39247cb926
13 changed files with 18 additions and 1 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -29,6 +29,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>

View File

@@ -34,6 +34,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>

View File

@@ -30,6 +30,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>

View File

@@ -29,6 +29,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>

View File

@@ -29,6 +29,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>

View File

@@ -29,6 +29,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>

View File

@@ -29,6 +29,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>

View File

@@ -32,6 +32,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>

View File

@@ -29,6 +29,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>

View File

@@ -29,6 +29,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>

View File

@@ -31,6 +31,7 @@
<para>
The tested string.
&note.ctype.parameter.integer;
&note.ctype.parameter.non-string;
</para>
</listitem>
</varlistentry>