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 181 182 183 184 185 186 187 188 189
|
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<sect2 xml:id="migration70.incompatible.removed-functions">
<title>Removed functions</title>
<sect3 xml:id="migration70.incompatible.removed-functions.call-user-method">
<title>
<function>call_user_method</function> and
<function>call_user_method_array</function>
</title>
<para>
These functions were deprecated in PHP 4.1.0 in favour of
<function>call_user_func</function> and
<function>call_user_func_array</function>. You may also want to consider
using
<link linkend="functions.variable-functions">variable functions</link>
and/or the
<link linkend="functions.variable-arg-list"><literal>...</literal></link>
operator.
</para>
</sect3>
<sect3 xml:id="migration70.incompatible.removed-functions.ereg">
<title>
All ereg* functions
</title>
<para>
All <literal>ereg</literal> functions were removed.
<link linkend="book.pcre">PCRE</link> is a recommended alternative.
</para>
</sect3>
<sect3 xml:id="migration70.incompatible.removed-functions.mcrypt">
<title><link linkend="book.mcrypt">mcrypt</link> aliases</title>
<para>
The deprecated <function>mcrypt_generic_end</function> function has been
removed in favour of <function>mcrypt_generic_deinit</function>.
</para>
<para>
Additionally, the deprecated <function>mcrypt_ecb</function>,
<function>mcrypt_cbc</function>, <function>mcrypt_cfb</function> and
<function>mcrypt_ofb</function> functions have been removed in favour of
using <function>mcrypt_decrypt</function> with the appropriate
<constant>MCRYPT_MODE_<replaceable>*</replaceable></constant> constant.
</para>
</sect3>
<sect3 xml:id="migration70.incompatible.removed-functions.mysql">
<title>
All ext/mysql functions
</title>
<para>
All <link linkend="book.mysql">ext/mysql</link> functions were removed. For
details about choosing a different MySQL API, see
<link linkend="mysqlinfo.api.choosing">Choosing a MySQL API</link>.
</para>
</sect3>
<sect3 xml:id="migration70.incompatible.removed-functions.mssql">
<title>
All ext/mssql functions
</title>
<para>
All <literal>ext/mssql</literal> functions were removed.
<simplelist role="alternatives">
<member><link linkend="ref.pdo-sqlsrv">PDO_SQLSRV</link></member>
<member><link linkend="ref.pdo-odbc">PDO_ODBC</link></member>
<member><link linkend="book.sqlsrv">SQLSRV</link></member>
<member><link linkend="book.uodbc">Unified ODBC API</link></member>
</simplelist>
</para>
</sect3>
<sect3 xml:id="migration70.incompatible.removed-functions.intl">
<title><link linkend="book.intl">intl</link> aliases</title>
<para>
The deprecated <function>datefmt_set_timezone_id</function> and
<methodname>IntlDateFormatter::setTimeZoneID</methodname> aliases have been
removed in favour of <function>datefmt_set_timezone</function> and
<methodname>IntlDateFormatter::setTimeZone</methodname>, respectively.
</para>
</sect3>
<sect3 xml:id="migration70.incompatible.removed-functions.magic-quotes">
<title><function>set_magic_quotes_runtime</function></title>
<para>
<function>set_magic_quotes_runtime</function>, along with its alias
<function>magic_quotes_runtime</function>, have been removed. They were
deprecated in PHP 5.3.0, and became effectively non-functional with the
removal of magic quotes in PHP 5.4.0.
</para>
</sect3>
<sect3 xml:id="migration70.incompatible.removed-functions.set-socket-blocking">
<title><function>set_socket_blocking</function></title>
<para>
The deprecated <function>set_socket_blocking</function> alias has been
removed in favour of <function>stream_set_blocking</function>.
</para>
</sect3>
<sect3 xml:id="migration70.incompatible.removed-functions.dl">
<title><function>dl</function> in PHP-FPM</title>
<para>
<function>dl</function> can no longer be used in PHP-FPM. It remains
functional in the CLI and embed SAPIs.
</para>
</sect3>
<sect3 xml:id="migration70.incompatible.removed-functions.gd">
<title><link linkend="book.image">GD</link> Type1 functions</title>
<para>
Support for PostScript Type1 fonts has been removed from the GD extension,
resulting in the removal of the following functions:
</para>
<itemizedlist>
<listitem>
<simpara>
<function>imagepsbbox</function>
</simpara>
</listitem>
<listitem>
<simpara>
<function>imagepsencodefont</function>
</simpara>
</listitem>
<listitem>
<simpara>
<function>imagepsextendfont</function>
</simpara>
</listitem>
<listitem>
<simpara>
<function>imagepsfreefont</function>
</simpara>
</listitem>
<listitem>
<simpara>
<function>imagepsloadfont</function>
</simpara>
</listitem>
<listitem>
<simpara>
<function>imagepsslantfont</function>
</simpara>
</listitem>
<listitem>
<simpara>
<function>imagepstext</function>
</simpara>
</listitem>
</itemizedlist>
<para>
Using TrueType fonts and their associated functions is recommended instead.
</para>
</sect3>
</sect2>
<!-- 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
-->
|