PHP 4.0 Bug #8355: split() and explode() only accepts 2 parameters
| From: | webbox at hotmail dot com | Date: | Thu, 21 Dec 2000 15:53:51 +0000 |
| Subject: | PHP 4.0 Bug #8355: split() and explode() only accepts 2 parameters | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42052@lists.php.net to get a copy of this message | ||
From: webbox@hotmail.com
Operating system: Linux (Debian 2.0.36)
PHP version: 4.0.0
PHP Bug Type: *Regular Expressions
Bug description: split() and explode() only accepts 2 parameters
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);
--
Edit Bug report at: http://bugs.php.net/?id=8355&edit=1