PHP 4.0 Bug #8355 Updated: split() and explode() only accepts 2 parameters
| From: | hholzgra@php.net | Date: | Thu, 21 Dec 2000 19:44:32 +0000 |
| Subject: | PHP 4.0 Bug #8355 Updated: split() and explode() only accepts 2 parameters | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42072@lists.php.net to get a copy of this message | ||
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