[PHP-DEV] PHP 4.0 Bug #8355: split() and explode() only accepts 2 parameters From: webbox <email protected>
Date: 12/21/00

From: webbox <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>