mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
20 lines
282 B
Plaintext
20 lines
282 B
Plaintext
|
--TEST--
|
||
|
Bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$string = chr(13).chr(10);
|
||
|
|
||
|
$array = preg_split('//u', $string, - 1, PREG_SPLIT_NO_EMPTY);
|
||
|
|
||
|
var_dump(array_map('ord', $array));
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
array(2) {
|
||
|
[0]=>
|
||
|
int(13)
|
||
|
[1]=>
|
||
|
int(10)
|
||
|
}
|