mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
39131219e8
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
19 lines
311 B
PHP
19 lines
311 B
PHP
--TEST--
|
|
php-users@php.gr.jp #10830
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--SKIPIF--
|
|
<?php
|
|
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) );
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(false)
|