Annotation of embedaddon/php/ext/ereg/tests/spliti_basic_004.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test spliti() function : basic functionality - confirm case insensitivity
! 3: --FILE--
! 4: <?php
! 5: /* Prototype : proto array spliti(string pattern, string string [, int limit])
! 6: * Description: spliti string into array by regular expression
! 7: * Source code: ext/standard/reg.c
! 8: * Alias to functions:
! 9: */
! 10:
! 11: $replacement = 'r';
! 12:
! 13: var_dump(spliti('[a-z]', '--- A ---'));
! 14: var_dump(spliti('[A-Z]', '--- a ---'));
! 15: var_dump(spliti('[[:lower:]]', '--- A ---'));
! 16: var_dump(spliti('[[:upper:]]', '--- a ---'));
! 17:
! 18: echo "Done";
! 19: ?>
! 20: --EXPECTF--
! 21: Deprecated: Function spliti() is deprecated in %s on line %d
! 22: array(2) {
! 23: [0]=>
! 24: string(4) "--- "
! 25: [1]=>
! 26: string(4) " ---"
! 27: }
! 28:
! 29: Deprecated: Function spliti() is deprecated in %s on line %d
! 30: array(2) {
! 31: [0]=>
! 32: string(4) "--- "
! 33: [1]=>
! 34: string(4) " ---"
! 35: }
! 36:
! 37: Deprecated: Function spliti() is deprecated in %s on line %d
! 38: array(2) {
! 39: [0]=>
! 40: string(4) "--- "
! 41: [1]=>
! 42: string(4) " ---"
! 43: }
! 44:
! 45: Deprecated: Function spliti() is deprecated in %s on line %d
! 46: array(2) {
! 47: [0]=>
! 48: string(4) "--- "
! 49: [1]=>
! 50: string(4) " ---"
! 51: }
! 52: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>