mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
Update the changed functions list, and integrate the changes into the text.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334639 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
4307b3bcdf
commit
da75c15e02
9 changed files with 216 additions and 11 deletions
|
@ -15,6 +15,19 @@
|
|||
parameter is omitted.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>substr_compare</function> will now accept <literal>0</literal>
|
||||
for its <parameter>length</parameter> parameter.
|
||||
</simpara>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>unserialize</function> will now fail if passed serialised data
|
||||
that has been manipulated to attempt to instantiate an object without
|
||||
calling its constructor.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</sect2>
|
||||
|
||||
|
@ -47,6 +60,21 @@
|
|||
</itemizedlist>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="migration56.changed-functions.openssl">
|
||||
<title><link linkend="book.openssl">OpenSSL</link></title>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>stream_socket_enable_crypto</function> now allows the
|
||||
<parameter>crypto_type</parameter> parameter to be optional if the
|
||||
stream's SSL context includes the new <parameter>crypto_type</parameter>
|
||||
option.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="migration56.changed-functions.pgsql">
|
||||
<title><link linkend="book.pgsql">PostgreSQL</link></title>
|
||||
|
||||
|
@ -70,6 +98,20 @@
|
|||
</itemizedlist>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="migration56.changed-functions.reflection">
|
||||
<title><link linkend="book.reflection">Reflection</link></title>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<methodname>ReflectionClass::newInstanceWithoutConstructor</methodname>
|
||||
now allows non-final internal classes to be
|
||||
instantiated.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</sect2>
|
||||
|
||||
<sect2 xml:id="migration56.changed-functions.xmlreader">
|
||||
<title><link linkend="book.xmlreader">XMLReader</link></title>
|
||||
|
||||
|
|
|
@ -376,8 +376,8 @@
|
|||
uploads instead.
|
||||
</entry>
|
||||
<entry valign="top">
|
||||
Added in PHP 5.5.0. Currenly &false; by default, but this is likely
|
||||
to be changed in a future version of PHP.
|
||||
Added in PHP 5.5.0 with &false; as the default value. PHP 5.6.0
|
||||
changes the default value to &true;.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
|
@ -1454,6 +1454,12 @@
|
|||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.6.0</entry>
|
||||
<entry>
|
||||
<constant>CURL_SAFE_UPLOAD</constant> is now &true; by default.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.6.0</entry>
|
||||
<entry>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<methodsynopsis>
|
||||
<type>string</type><methodname>mcrypt_create_iv</methodname>
|
||||
<methodparam><type>int</type><parameter>size</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>source</parameter><initializer>MCRYPT_DEV_RANDOM</initializer></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>source</parameter><initializer>MCRYPT_DEV_URANDOM</initializer></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Creates an initialization vector (IV) from a random source.
|
||||
|
@ -48,6 +48,10 @@
|
|||
<filename>/dev/urandom</filename>). Prior to 5.3.0,
|
||||
<constant>MCRYPT_RAND</constant> was the only one supported on Windows.
|
||||
</para>
|
||||
<para>
|
||||
Note that the default value of this parameter was
|
||||
<constant>MCRYPT_DEV_RANDOM</constant> prior to PHP 5.6.0.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
|
@ -73,6 +77,13 @@
|
|||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.6.0</entry>
|
||||
<entry>
|
||||
<constant>MCRYPT_DEV_URANDOM</constant> is now the default value of
|
||||
<parameter>source</parameter>.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.3.0</entry>
|
||||
<entry>
|
||||
|
|
|
@ -30,11 +30,38 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.6.0</entry>
|
||||
<entry>
|
||||
All internal classes can now be instantiated except for those declared
|
||||
<link linkend="language.oop5.final">final</link>.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
A <classname>ReflectionException</classname> if the class is an internal
|
||||
class that cannot be instantiated without invoking the constructor.
|
||||
class that cannot be instantiated without invoking the constructor. In PHP
|
||||
5.6.0 onwards, this exception is limited only to internal classes that are
|
||||
<link linkend="language.oop5.final">final</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
|
|
@ -64,6 +64,10 @@
|
|||
<listitem><simpara><constant>STREAM_CRYPTO_METHOD_TLS_SERVER</constant></simpara></listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<para>
|
||||
If omitted, the <parameter>crypto_type</parameter> context option on
|
||||
the stream's SSL context will be used instead.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
|
@ -86,6 +90,30 @@
|
|||
(only for non-blocking sockets).
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.6.0</entry>
|
||||
<entry>
|
||||
The <parameter>crypto_type</parameter> is now optional.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples"><!-- {{{ -->
|
||||
&reftitle.examples;
|
||||
|
|
|
@ -83,8 +83,9 @@
|
|||
<parameter>offset</parameter> is less than <parameter>str</parameter>, >
|
||||
0 if it is greater than <parameter>str</parameter>, and 0 if they are equal.
|
||||
If <parameter>offset</parameter> is equal to or greater than the length of
|
||||
<parameter>main_str</parameter> or <parameter>length</parameter> is set and
|
||||
is less than 1, <function>substr_compare</function> prints a warning and returns
|
||||
<parameter>main_str</parameter>, or the <parameter>length</parameter> is
|
||||
set and is less than 1 (prior to PHP 5.6),
|
||||
<function>substr_compare</function> prints a warning and returns
|
||||
&false;.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
@ -101,6 +102,12 @@
|
|||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.6.0</entry>
|
||||
<entry>
|
||||
<parameter>length</parameter> may now be <literal>0</literal>.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.1.0</entry>
|
||||
<entry>
|
||||
|
|
|
@ -69,6 +69,32 @@
|
|||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.6.0</entry>
|
||||
<entry>
|
||||
Manipulating the serialised data by replacing <literal>C:</literal>
|
||||
with <literal>O:</literal> to force object instantiation without
|
||||
calling the constructor will now fail.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
an element node.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
|
@ -34,13 +35,41 @@
|
|||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The value of the attribute, or an empty string if no attribute exists
|
||||
at <parameter>index</parameter> or not positioned of element.
|
||||
The value of the attribute, or an empty string (before PHP 5.6) or &null;
|
||||
(from PHP 5.6 onwards) if no attribute exists at
|
||||
<parameter>index</parameter> or is not positioned on the element.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.6.0</entry>
|
||||
<entry>
|
||||
<methodname>XMLReader::getAttributeNo</methodname> now returns &null;
|
||||
if the attribute doesn't exist.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
string if attribute does not exist or not positioned on an element node.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
|
@ -40,14 +41,42 @@
|
|||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
The value of the attribute, or an empty string if no attribute with the
|
||||
given <parameter>localName</parameter> and
|
||||
<parameter>namespaceURI</parameter> is found or not positioned of element.
|
||||
The value of the attribute, or an empty string (before PHP 5.6) or &null;
|
||||
(from PHP 5.6 onwards) if no attribute with the given
|
||||
<parameter>localName</parameter> and <parameter>namespaceURI</parameter> is
|
||||
found or not positioned of element.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>5.6.0</entry>
|
||||
<entry>
|
||||
<methodname>XMLReader::getAttributeNS</methodname> now returns &null;
|
||||
if the attribute doesn't exist.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue