ID: 44237 User updated by: lip at lip dot net dot ua Reported By: lip at lip dot net dot ua Status: Open Bug Type: Apache2 related Operating System: Debian 4.0 PHP Version: 5.2.5 New Comment:
Expected result: ---------------- php1.net - Warning: mb_ereg() function.mb-ereg: mbregex compile err: premature end of char-class in /var/www/php2/mb.php php2.net - galaD Actual result: -------------- php1.net - Warning php2.net - Warning Previous Comments: ------------------------------------------------------------------------ [2008-02-24 22:03:13] lip at lip dot net dot ua Description: ------------ PHP 5.2.5 Apache/2.2.8 If I use mbstring.func_overload in .htaccess other virtual-host doesn't work. For example: <VirtualHost *:80> DocumentRoot /var/www/php1 ServerName php1.net </VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/php2 ServerName php2.net </VirtualHost> in /var/www/php1/.htaccess php_value mbstring.func_overload 6 In this situation php2.net/mb.php doesn't work when I refresh few times php1.net/mb.php and php2.net/mb.php Reproduce code: --------------- --mb.php--- <?php $re0 = '(^|(\\\\\\\\)+|[^\])'; $dbname_to_test = 'galaD'; if (ereg($re0,$dbname_to_test)) { var_dump ($dbname_to_test); } ?> Expected result: ---------------- galaD Actual result: -------------- Warning: mb_ereg() function.mb-ereg: mbregex compile err: premature end of char-class in /var/www/php2/mb.php ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44237&edit=1