php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48703 unclear specification of limit option to preg_split
Submitted: 2009-06-26 13:57 UTC Modified: 2009-07-20 00:22 UTC
From: eldering at a-eskwadraat dot nl Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-06-26 13:57 UTC] eldering at a-eskwadraat dot nl
Description:
------------
On the function reference for preg_split, the limit option does not specify that the last element contains the remaining string. Compare with the split documentation, which does clearly state this and whose behaviour seems identical.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-26 14:26 UTC] rquadling@php.net
Currently the limit parameter provides different output for explode and 
preg_split() (http://bugs.php.net/bug.php?id=47560 and http://bugs.php.net/bug.php?id=48704)

 [2009-07-20 00:22 UTC] svn@php.net
Automatic comment from SVN on behalf of rasmus
Log: Fix bug #48703

Revision: http://svn.php.net/viewvc?view=revision&revision=284405
 [2009-07-20 00:22 UTC] rasmus@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of rasmus
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=8b564cbf648d5b9ddd6a5459fd694b5789b64a47
Log: Fix bug #48703
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 16:01:31 2024 UTC