[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] [doc-en] master: explode() no longer returns false as of PHP 8.0.0
From:       "Christoph M. Becker" <noreply () php ! net>
Date:       2021-08-23 15:50:18
Message-ID: YYG2QOrYE0kziMjszAcEPyFXElPX0w6w0axmUJ8QA () main ! php ! net
[Download RAW message or body]

Author: Christoph M. Becker (cmb69)
Date: 2021-08-23T17:50:27+02:00

Commit: https://github.com/php/doc-en/commit/abd75f51f4daa22d471b0d14114df3886832fb6f
Raw diff: https://github.com/php/doc-en/commit/abd75f51f4daa22d471b0d14114df3886832fb6f.diff

explode() no longer returns false as of PHP 8.0.0

See also <https://bugs.php.net/bug.php?id=42129>.

Changed paths:
  M  reference/strings/functions/explode.xml


Diff:

diff --git a/reference/strings/functions/explode.xml b/reference/strings/functions/explode.xml
index faaa8b9e3a..2a62782fac 100644
--- a/reference/strings/functions/explode.xml
+++ b/reference/strings/functions/explode.xml
@@ -79,7 +79,7 @@
   </para>
   <para>
    If <parameter>separator</parameter> is an empty <type>string</type> (""),
-   <function>explode</function> will return &false;.
+   <function>explode</function> throws a <classname>ValueError</classname>.
    If <parameter>separator</parameter> contains a value that is not
    contained in <parameter>string</parameter> and a negative
    <parameter>limit</parameter> is used, then an empty <type>array</type> will be
@@ -108,6 +108,7 @@
        <function>explode</function> will now throw <classname>ValueError</classname>
        when <parameter>separator</parameter> parameter is given an empty string
        (<literal>""</literal>).
+       Previously, <function>explode</function> returned &false; instead.
       </entry>
      </row>
     </tbody>

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