1--TEST--
2mb_ereg_replace_callback()
3--SKIPIF--
4<?php
5extension_loaded('mbstring') or die('skip mbstring not available');
6function_exists('mb_ereg_replace_callback') or die("skip mb_ereg_replace_callback() is not available in this build");
7?>
8--FILE--
9<?php
10$str = 'abc 123 #",; $foo';
11echo mb_ereg_replace_callback('(\S+)', function($m){return $m[1].'('.strlen($m[1]).')';}, $str);
12?>
13--EXPECT--
14abc(3) 123(3) #",;(4) $foo(4)
15
16