Doc #62774 [Opn]: split is deprecated since 5.3, okay. what to use instead? suggestion missing.
| From: | aseleznyov at parallels dot com | Date: | Wed, 08 Aug 2012 08:28:40 +0000 |
| Subject: | Doc #62774 [Opn]: split is deprecated since 5.3, okay. what to use instead? suggestion missing. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-8717@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62774&edit=1
ID: 62774
User updated by: aseleznyov at parallels dot com
Reported by: aseleznyov at parallels dot com
Summary: split is deprecated since 5.3, okay. what to use
instead? suggestion missing.
Status: Open
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Yes, suggestion should be within the Big Red Box.
Without it here, reader is forced to read through the whole description of already deprecated
function, and this seems nonsense.
Probably, just "Use preg_split()[link] or explode()[link] instead." at the end warning
message.
Previous Comments:
------------------------------------------------------------------------
[2012-08-08 08:07:33] salathe@php.net
I encourage you to keep reading the page. Further down, we have several notes
suggesting to use the PCRE extension and in particular preg_split(). The page
also mentions "the list of differences" (between POSIX and PCRE regex), which
contains a table of suggested replacements for the POSIX regex functions.
Is that enough to find the information that you're wanting, or are you really
just trying to push for "hey, use preg_split()!" within the Big Red Box?
------------------------------------------------------------------------
[2012-08-08 07:22:51] aseleznyov at parallels dot com
Description:
------------
---
From manual page: http://www.php.net/function.split#refsect1-function.split-description
---
Test script:
---------------
suggestion is missing, what to use instead of deprecated split() function.
Expected result:
----------------
suggestion is added next to deprecation warning.
Actual result:
--------------
suggestion is missing.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62774&edit=1