[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/appendices/migration71/_incompatible.xml_other-changes.xml
From: Thomas_Punt <tpunt () php ! net>
Date: 2016-11-23 14:39:23
Message-ID: svn-tpunt-1479911963-341112-251527822 () svn ! php ! net
[Download RAW message or body]
tpunt Wed, 23 Nov 2016 14:39:23 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=341112
Log:
More PHP 7.1 migration guide additions
Changed paths:
U phpdoc/en/trunk/appendices/migration71/incompatible.xml
U phpdoc/en/trunk/appendices/migration71/other-changes.xml
Modified: phpdoc/en/trunk/appendices/migration71/incompatible.xml
===================================================================
--- phpdoc/en/trunk/appendices/migration71/incompatible.xml 2016-11-23 14:07:44 UTC (rev 341111)
+++ phpdoc/en/trunk/appendices/migration71/incompatible.xml 2016-11-23 14:39:23 UTC (rev 341112)
@@ -350,6 +350,135 @@
</para>
</sect2>
+ <sect2 xml:id="migration71.incompatible.fatal-errors-to-error-exceptions">
+ <title>Fatal errors to <classname>Error</classname> exceptions conversions</title>
+ <para>
+ In the Date extension, invalid serialization data for
+ <classname>DateTime</classname> or <classname>DatePeriod</classname> classes,
+ or timezone initialization failure from serialized data, will now throw an
+ <classname>Error</classname> exception from the
+ <methodname>__wakeup</methodname> or <methodname>__set_state</methodname>
+ methods, instead of resulting in a fatal error.
+ </para>
+
+ <para>
+ In the DBA extension, data modification functions (such as
+ <function>dba_insert</function>) will now throw an
+ <classname>Error</classname> exception instead of triggering a catchable
+ fatal error if the key does not contain exactly two elements.
+ </para>
+
+ <para>
+ In the DOM extension, invalid schema or RelaxNG validation contexts will now
+ throw an <classname>Error</classname> exception instead of resulting in a
+ fatal error. Similarly, attempting to register a node class that does not
+ extend the appropriate base class, or attempting to read an invalid property
+ or write to a readonly property, will also now throw an
+ <classname>Error</classname> exception.
+ </para>
+
+ <para>
+ In the IMAP extension, email addresses longer than 16385 bytes will throw an
+ <classname>Error</classname> exception instead of resulting in a fatal error.
+ </para>
+
+ <para>
+ In the Intl extension, failing to call the parent constructor in a class
+ extending <classname>Collator</classname> before invoking the parent methods
+ will now throw an <classname>Error</classname> instead of resulting in a
+ recoverable fatal error. Also, cloning a
+ <classname>Transliterator</classname> object will now throw an
+ <classname>Error</classname> exception on failure to clone the internal
+ transliterator instead of resulting in a fatal error.
+ </para>
+
+ <para>
+ In the LDAP extension, providing an unknown modification type to
+ <function>ldap_batch_modify</function> will now throw an
+ <classname>Error</classname> exception instead of resulting in a fatal error.
+ </para>
+
+ <para>
+ In the mbstring extension, the <function>mb_ereg</function> and
+ <function>mb_eregi</function> functions will now throw a
+ <classname>ParseError</classname> exception if an invalid PHP expression is
+ provided and the 'e' option is used.
+ </para>
+
+ <para>
+ In the Mcrypt extension, the <function>mcrypt_encrypt</function> and
+ <function>mcrypt_decrypt</function> will now throw an
+ <classname>Error</classname> exception instead of resulting in a fatal error
+ if mcrypt cannot be initialized.
+ </para>
+
+ <para>
+ In the mysqli extension, attempting to read an invalid property or write to
+ a readonly property will now throw an <classname>Error</classname> exception
+ instead of resulting in a fatal error.
+ </para>
+
+ <para>
+ In the Reflection extension, failing to retrieve a reflection object or
+ retrieve an object property will now throw an <classname>Error</classname>
+ exception instead of resulting in a fatal error.
+ </para>
+
+ <para>
+ In the Session extension, custom session handlers that do not return strings
+ for session IDs will now throw an <classname>Error</classname> exception
+ instead of resulting in a fatal error when a function is called that must
+ generate a session ID.
+ </para>
+
+ <para>
+ In the SimpleXML extension, creating an unnamed or duplicate attribute will
+ now throw an <classname>Error</classname> exception instead of resulting in
+ a fatal error.
+ </para>
+
+ <para>
+ In the SPL extension, attempting to clone an
+ <classname>SplDirectory</classname> object will now throw an
+ <classname>Error</classname> exception instead of resulting in a fatal
+ error. Similarly, calling <methodname>ArrayIterator::append</methodname> when
+ iterating over an object will also now throw an <classname>Error</classname>
+ exception.
+ </para>
+
+ <para>
+ In the standard extension, the <function>assert</function> function, when
+ provided with a string argument as its first parameter, will now throw a
+ <classname>ParseError</classname> exception instead of resulting in a
+ catchable fatal error if the PHP code is invalid. Similarly, calling
+ <function>forward_static_call</function> outside of a class scope will now
+ throw an <classname>Error</classname> exception.
+ </para>
+
+ <para>
+ In the Tidy extension, creating a <classname>tidyNode</classname> manually
+ will now throw an <classname>Error</classname> exception instead of
+ resulting in a fatal error.
+ </para>
+
+ <para>
+ In the WDDX extension, a circular reference when serializing will now throw
+ an <classname>Error</classname> exception instead of resulting in a fatal
+ error.
+ </para>
+
+ <para>
+ In the XML-RPC extension, a circular reference when serializing will now
+ throw an instance of <classname>Error</classname> exception instead of
+ resulting in a fatal error.
+ </para>
+
+ <para>
+ In the Zip extension, the <methodname>ZipArchive::addGlob</methodname>
+ method will now throw an <classname>Error</classname> exception instead of
+ resulting in a fatal error if glob support is not available.
+ </para>
+ </sect2>
</sect1>
<!-- Keep this comment at the end of the file
Modified: phpdoc/en/trunk/appendices/migration71/other-changes.xml
===================================================================
--- phpdoc/en/trunk/appendices/migration71/other-changes.xml 2016-11-23 14:07:44 UTC (rev 341111)
+++ phpdoc/en/trunk/appendices/migration71/other-changes.xml 2016-11-23 14:39:23 UTC (rev 341112)
@@ -160,6 +160,14 @@
</varlistentry>
</variablelist>
</sect2>
+
+ <sect2 xml:id="migration71.other-changes.session-id-csprng-gen">
+ <title>Session ID generation with a CSPRNG only</title>
+
+ <para>
+ Session IDs will now only be generated with a CSPRNG.
+ </para>
+ </sect2>
</sect1>
<!-- Keep this comment at the end of the file
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic