1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/standard/tests/strings/explode_variation7.phpt
2015-06-29 23:49:41 +02:00

19 lines
465 B
PHP

--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)