Skip to content

Commit cee696d

Browse files
author
Moriyoshi Koizumi
committed
Added a new test case to confirm the inconsistent regex behaviour reported
on php-users@php.gr.jp (10830)
1 parent fe7c6de commit cee696d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

ext/mbstring/tests/027.inc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
$a="aaa\n<>";
3+
4+
var_dump( mb_ereg("^[^><]+$",$a) );
5+
var_dump( ereg("^[^><]+$",$a) );
6+
?>

ext/mbstring/tests/027.phpt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
php-users@php.gr.jp #10830
3+
--SKIPIF--
4+
<?php include('skipif.inc'); ?>
5+
function_exists('mb_ereg') or die("SKIP");
6+
--POST--
7+
--GET--
8+
--FILE--
9+
<?php include('027.inc'); ?>
10+
--EXPECT--
11+
bool(false)
12+
bool(false)

0 commit comments

Comments
 (0)