1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
|
<?xml version="1.0" encoding="utf-8"?>
<sect1 xml:id="migration83.deprecated">
<title>Deprecated Features</title>
<sect2 xml:id="migration83.deprecated.core">
<title>PHP Core</title>
<sect3 xml:id="migration83.deprecated.core.saner-inc-dec-operators">
<title>Saner Increment/Decrement operators</title>
<para>
Using the <link linkend="language.operators.increment">increment</link>
operator (<literal>++</literal>) on empty, non-numeric,
or non-alphanumeric strings is now deprecated.
Moreover, incrementing non-numeric strings is soft deprecated.
That means no <constant>E_DEPRECATED</constant> diagnostic is emitted,
but this feature should not be used when producing new code.
The new <function>str_increment</function> function should be used instead.
</para>
<para>
Using the <link linkend="language.operators.increment">decrement</link>
operator (<literal>--</literal>) on empty or non-numeric strings is now deprecated.
</para>
<!-- RFC: https://wiki.php.net/rfc/saner-inc-dec-operators -->
</sect3>
<sect3 xml:id="migration83.deprecated.core.get-class">
<title>get_class()/get_parent_class() call without arguments</title>
<para>
Calling <function>get_class</function> and <function>get_parent_class</function>
without arguments is now deprecated.
</para>
</sect3>
</sect2>
<sect2 xml:id="migration83.deprecated.core.dba">
<title>DBA</title>
<para>
Calling <function>dba_fetch</function> with <parameter>$dba</parameter> as
the 3rd argument is now deprecated.
</para>
</sect2>
<sect2 xml:id="migration83.deprecated.ffi">
<title>FFI</title>
<para>
Calling <methodname>FFI::cast</methodname>, <methodname>FFI::new</methodname>,
and <methodname>FFI::type</methodname> statically is now deprecated.
</para>
</sect2>
<sect2 xml:id="migration83.deprecated.intl">
<title>Intl</title>
<para>
The <constant>U_MULTIPLE_DECIMAL_SEP*E*RATORS</constant>
constant had been deprecated, using the
<constant>U_MULTIPLE_DECIMAL_SEP*A*RATORS</constant>
constant instead is recommended.
</para>
<para>
The <constant>NumberFormatter::TYPE_CURRENCY</constant> constant has been deprecated.
</para>
</sect2>
<sect2 xml:id="migration83.deprecated.ldap">
<title>LDAP</title>
<para>
Calling <function>ldap_connect</function> with separate
<parameter>$hostname</parameter> and <parameter>$port</parameter> is
deprecated.
<!-- RFC: https://wiki.php.net/rfc/deprecations_php_8_3#deprecate_calling_ldap_connect_with_2_parameters -->
</para>
</sect2>
<sect2 xml:id="migration83.deprecated.mbstring">
<title>MBString</title>
<para>
Passing a negative <parameter>$width</parameter> to
<function>mb_strimwidth</function> is now deprecated.
</para>
</sect2>
<sect2 xml:id="migration83.deprecated.phar">
<title>Phar</title>
<para>
Calling <methodname>Phar::setStub</methodname> with a
<type>resource</type> and a <parameter>$length</parameter>
is now deprecated. Such calls should be replaced by:
<code>$phar->setStub(stream_get_contents($resource));</code>
</para>
</sect2>
<sect2 xml:id="migration83.deprecated.random">
<title>Random</title>
<para>
The <constant>MT_RAND_PHP</constant> Mt19937 variant is deprecated.
<!-- RFC: https://wiki.php.net/rfc/deprecations_php_8_3#mt_rand_php -->
</para>
</sect2>
<sect2 xml:id="migration83.deprecated.reflection">
<title>Reflection</title>
<para>
Calling <methodname>ReflectionProperty::setValue</methodname> with only one
parameter is deprecated.
To set static properties, pass &null; as the first parameter.
</para>
</sect2>
<sect2 xml:id="migration83.deprecated.standard">
<title>Standard</title>
<para>
The <function>assert_options</function> function is now deprecated.
</para>
<para>
The <constant>ASSERT_ACTIVE</constant>, <constant>ASSERT_BAIL</constant>,
<constant>ASSERT_CALLBACK</constant>, <constant>ASSERT_EXCEPTION</constant>,
and <constant>ASSERT_WARNING</constant> constants have been deprecated.
</para>
<para>
The <literal>assert.*</literal> INI settings have been deprecated.
See the
<link linkend="migration83.other-changes.ini">Changes to INI File Handling</link>
page for further details.
</para>
<!-- RFC: https://wiki.php.net/rfc/assert-string-eval-cleanup -->
</sect2>
<sect2 xml:id="migration83.deprecated.sqlite3">
<title>SQLite3</title>
<para>
Using exceptions is now preferred, warnings will be removed in the future.
Calling <code>SQLite3::enableExceptions(false)</code> will trigger a
deprecation warning in this version.
</para>
</sect2>
<sect2 xml:id="migration83.deprecated.zip">
<title>Zip</title>
<para>
The <constant>ZipArchive::FL_RECOMPRESS</constant> constant is deprecated
and will be removed in a future version of libzip.
</para>
</sect2>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
|