mirror of
https://github.com/php/php-src.git
synced 2024-10-16 14:02:37 +00:00
87fac43ac0
- html_translation_table and setlocale tests are no longer relevant - there are a number of ANSI-encoded files. Is this deliberate?
20 lines
352 B
PHP
Executable File
20 lines
352 B
PHP
Executable File
--TEST--
|
|
Bug #42866 (str_split() returns extra char when given string size is not multiple of length)
|
|
--FILE--
|
|
<?php
|
|
$str = 'Testing str_split()';
|
|
$split_length = 5;
|
|
var_dump( str_split($str, $split_length) );
|
|
?>
|
|
--EXPECT--
|
|
array(4) {
|
|
[0]=>
|
|
unicode(5) "Testi"
|
|
[1]=>
|
|
unicode(5) "ng st"
|
|
[2]=>
|
|
unicode(5) "r_spl"
|
|
[3]=>
|
|
unicode(4) "it()"
|
|
}
|