eregi_basic_003.phpt 657 B

12345678910111213141516171819202122232425262728
  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. */
  10. /*
  11. * Test a long RE with lots of matches
  12. */
  13. var_dump(eregi(str_repeat('(.)', 2048), str_repeat('x', 2048)));
  14. var_dump(eregi(str_repeat('(.)', 2048), str_repeat('x', 2048), $regs));
  15. var_dump(count($regs));
  16. echo "Done";
  17. ?>
  18. --EXPECTF--
  19. Deprecated: Function eregi() is deprecated in %s on line %d
  20. int(1)
  21. Deprecated: Function eregi() is deprecated in %s on line %d
  22. int(2048)
  23. int(2049)
  24. Done