Annotation of embedaddon/php/ext/mbstring/tests/mb_regex_set_options.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: mb_regex_set_options()
! 3: --SKIPIF--
! 4: <?php
! 5: extension_loaded('mbstring') or die("skip mbstring not available\n");
! 6: function_exists('mb_regex_set_options') or die("skip\n");
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10: mb_regex_set_options( 'x' );
! 11: print mb_ereg_replace(' -', '+', '- - - - -' );
! 12:
! 13: mb_regex_set_options( '' );
! 14: print mb_ereg_replace(' -', '+', '- - - - -' );
! 15: ?>
! 16:
! 17: --EXPECT--
! 18: + + + + +-++++
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>