mb_ereg-compat-01.phpt 417 B

12345678910111213141516171819202122
  1. --TEST--
  2. mb_ereg() compat test 1
  3. --EXTENSIONS--
  4. mbstring
  5. --SKIPIF--
  6. <?php
  7. function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
  8. ?>
  9. --FILE--
  10. <?php
  11. /* (counterpart: ext/standard/tests/reg/004.phpt) */
  12. $a="This is a nice and simple string";
  13. if (mb_ereg(".*nice and simple.*",$a)) {
  14. echo "ok\n";
  15. }
  16. if (!mb_ereg(".*doesn't exist.*",$a)) {
  17. echo "ok\n";
  18. }
  19. ?>
  20. --EXPECT--
  21. ok
  22. ok