Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / php / ext / ereg / tests / eregi_basic_003.phpt
blobf045ad42805bc3706ab8e650a56ed4c8b979706c
1 --TEST--
2 Test eregi() function : basic functionality - long RE
3 --FILE--
4 <?php
5 /* Prototype  : proto int eregi(string pattern, string string [, array registers])
6  * Description: Regular expression match 
7  * Source code: ext/standard/reg.c
8  * Alias to functions: 
9  */
12  * Test a long RE with lots of matches
13  */
15 var_dump(eregi(str_repeat('(.)', 2048), str_repeat('x', 2048)));
16 var_dump(eregi(str_repeat('(.)', 2048), str_repeat('x', 2048), $regs));
17 var_dump(count($regs));
19 echo "Done";
21 --EXPECTF--
22 Deprecated: Function eregi() is deprecated in %s on line %d
23 int(1)
25 Deprecated: Function eregi() is deprecated in %s on line %d
26 int(2048)
27 int(2049)
28 Done