mirror of
https://github.com/php/php-src.git
synced 2024-12-11 10:54:47 +08:00
24 lines
636 B
PHP
24 lines
636 B
PHP
--TEST--
|
|
php-dev@php.gr.jp #884 (2)
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded('mbstring') or die('skip mbstring not available');
|
|
function_exists('mb_ereg_replace') or die("skip mb_ereg_replace() is not available in this build");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(mb_ereg_replace("C?$", "Z", "ABC"));
|
|
var_dump(ereg_replace("C?$", "Z", "ABC"));
|
|
var_dump(mb_ereg_replace("C*$", "Z", "ABC"));
|
|
var_dump(ereg_replace("C*$", "Z", "ABC"));
|
|
?>
|
|
--EXPECTF--
|
|
string(4) "ABZZ"
|
|
|
|
Deprecated: Function ereg_replace() is deprecated in %s on line %d
|
|
string(4) "ABZZ"
|
|
string(4) "ABZZ"
|
|
|
|
Deprecated: Function ereg_replace() is deprecated in %s on line %d
|
|
string(4) "ABZZ"
|