diff options
author | Christoph M. Becker <cmb@php.net> | 2015-06-29 23:55:18 +0200 |
---|---|---|
committer | Christoph M. Becker <cmb@php.net> | 2015-06-29 23:55:18 +0200 |
commit | 8b064a18c8aa8c9aeb5a7171cf80889f76a6d35f (patch) | |
tree | c3fb3b33900393fe4702a0000ec359eb979997c0 | |
parent | e32a60dd884490fcd26f0035e0859e43c3a1cfe1 (diff) | |
parent | 1b1a86c415aea8146070613638fac818b65b8656 (diff) | |
download | php-git-8b064a18c8aa8c9aeb5a7171cf80889f76a6d35f.tar.gz |
Merge branch 'PHP-5.6'
* PHP-5.6:
Improved code coverage of explode function
-rw-r--r-- | ext/standard/tests/strings/explode_variation7.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/standard/tests/strings/explode_variation7.phpt b/ext/standard/tests/strings/explode_variation7.phpt new file mode 100644 index 0000000000..d645c6cb03 --- /dev/null +++ b/ext/standard/tests/strings/explode_variation7.phpt @@ -0,0 +1,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) |