Re: PHP 4.0 Bug #8355 Updated: split() and explode() only accepts 2 parameters
| From: | Cynic | Date: | Thu, 21 Dec 2000 20:09:51 +0000 |
| Subject: | Re: PHP 4.0 Bug #8355 Updated: split() and explode() only accepts 2 parameters | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-42076@lists.php.net to get a copy of this message | ||
then this entry should not be closed, but changed to
documentation problem instead:
there's nothing about which version added the third argument
in explode().
At 20:44 21.12. 2000, hholzgra@php.net wrote the following:
--------------------------------------------------------------
>ID: 8355
>Updated by: hholzgra
>Reported By: webbox@hotmail.com
>Old-Status: Open
>Status: Closed
>Bug Type: *Regular Expressions
>Assigned To:
>Comments:
>
>third parameter to explode() was added in 4.0.1
>third parameter to split() has been there from the start in php 4
>
>Previous Comments:
>---------------------------------------------------------------------------
>
>[2000-12-21 10:53:48] webbox@hotmail.com
>The optional limit parameter produces the following error messages when given to the functios
>explode() and split():
>
>Warning: Wrong parameter count for explode() in path/to/file.php on line xxx
>
>Warning: unexpected regex error (13) in
>path/to/file.php on line xxx
>
>The PHP code I executed was
>
>list ($t1, $t2, $t3) = explode ($find, $string, 3);
>list ($t1, $t2, $t3) = split ($find, $string, 3);
>
>---------------------------------------------------------------------------
>
>
>Full Bug description available at: http://bugs.php.net/?id=8355
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
>For additional commands, e-mail: php-dev-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz