php-src/ext/mbstring/tests/php_gr_jp_10830.phpt
2014-09-11 19:25:42 +08:00

19 lines
358 B
PHP

--TEST--
php-users@php.gr.jp #10830
--SKIPIF--
<?php
extension_loaded('mbstring') or die('skip mbstring not available');
function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
?>
--FILE--
<?php
$a="aaa\n<>";
var_dump( mb_ereg("^[^><]+$",$a) );
var_dump( !!preg_match("/^[^><]+$/",$a) );
?>
--EXPECTF--
bool(false)
bool(false)