1--TEST-- 2Test spliti() function : usage variations - out-of-range values for limit 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 11function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { 12 echo "Error: $err_no - $err_msg, $filename($linenum)\n"; 13} 14set_error_handler('test_error_handler'); 15echo "*** Testing spliti() : usage variations ***\n"; 16 17$pattern = '[[:space:]]'; 18$string = '1 2 3 4 5'; 19var_dump(spliti($pattern, $string, 0)); 20var_dump(spliti($pattern, $string, -10)); 21var_dump(spliti($pattern, $string, 10E20)); 22 23 24echo "Done"; 25?> 26--EXPECTF-- 27*** Testing spliti() : usage variations *** 28Error: 8192 - Function spliti() is deprecated, %s(16) 29array(1) { 30 [0]=> 31 string(9) "1 2 3 4 5" 32} 33Error: 8192 - Function spliti() is deprecated, %s(17) 34array(1) { 35 [0]=> 36 string(9) "1 2 3 4 5" 37} 38Error: 8192 - Function spliti() is deprecated, %s(18) 39array(1) { 40 [0]=> 41 string(9) "1 2 3 4 5" 42} 43Done 44