mirror of
https://github.com/php/php-src.git
synced 2024-12-26 18:29:37 +08:00
18fa07e68f
This reverts commit 1981dd9c73
.
19 lines
358 B
PHP
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)
|