blob: d645c6cb036b7a3e0abd05a0ff826ffe97e3973f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
Test explode() function : usage variations - when $string length is greater than
EXPLODE_ALLOC_STEP (64) and the $limit is negative
--CREDITS--
edgarsandi - <edgar.r.sandi@gmail.com>
--FILE--
<?php
/* Prototype : array explode ( string $delimiter , string $string [, int $limit ] )
* Description: Split a string by string.
* Source code: ext/standard/string.c
*/
var_dump(count(explode('|', implode(range(1,65),'|'), -1)));
?>
--EXPECT--
int(64)
|