empty_pattern.phpt 352 B

12345678910111213141516
  1. --TEST--
  2. Check for empty pattern
  3. --SKIPIF--
  4. <?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
  5. --FILE--
  6. <?php
  7. mb_ereg_search_init("","","");
  8. mb_split("","");
  9. mb_ereg_search_regs();
  10. ?>
  11. --EXPECTF--
  12. Warning: mb_ereg_search_init(): Empty pattern in %s on line %d
  13. Warning: mb_ereg_search_regs(): No regex given in %s on line %d