Annotation of embedaddon/php/ext/ereg/tests/ereg_basic_003.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test ereg() function : basic functionality - long RE
! 3: --FILE--
! 4: <?php
! 5: /* Prototype : proto int ereg(string pattern, string string [, array registers])
! 6: * Description: Regular expression match
! 7: * Source code: ext/standard/reg.c
! 8: * Alias to functions:
! 9: */
! 10:
! 11: /*
! 12: * Test a long RE with lots of matches
! 13: */
! 14:
! 15: var_dump(ereg(str_repeat('(.)', 2048), str_repeat('x', 2048)));
! 16: var_dump(ereg(str_repeat('(.)', 2048), str_repeat('x', 2048), $regs));
! 17: var_dump(count($regs));
! 18:
! 19: echo "Done";
! 20: ?>
! 21: --EXPECTF--
! 22: Deprecated: Function ereg() is deprecated in %s on line %d
! 23: int(1)
! 24:
! 25: Deprecated: Function ereg() is deprecated in %s on line %d
! 26: int(2048)
! 27: int(2049)
! 28: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>