mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +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.
17 lines
329 B
PHP
17 lines
329 B
PHP
--TEST--
|
|
mb_ereg_replace() compat test 1
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--SKIPIF--
|
|
<?php
|
|
function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
/* (counterpart: ext/standard/tests/reg/001.phpt) */
|
|
$a="abc123";
|
|
echo mb_ereg_replace("123","def",$a);
|
|
?>
|
|
--EXPECT--
|
|
abcdef
|