Nette Tester – Call to undefined function Nette\Utils\mb_strtoupper()

Notice: This thread is very old.
uestla
Backer | 796
+
0
-

Hi everyone.

I'm running Nette Tester from within NetBeans IDE using Run configuration.

But anytime I use Nette\Utils\Strings::<anything using mbstring extension>, it breaks with Fatal error

Call to undefined function Nette\Utils\mb_<whatever>().

It seems like a strange namespace issue…

I've double checked my PHP 5.4.12 configuration and have the mbstring extension is turned on.

Does anyone happen to come across this?
Thanks.

Last edited by uestla (2013-07-12 10:47)

Jan Tvrdík
Nette guru | 2595
+
0
-

@uestla: That's simple mbstring extension is not enabled – trust me. Please tripple check it =) This is usually because console use entirely different php.ini.

uestla
Backer | 796
+
0
-

I've checked all .ini at least septuple (I'm using WampServer).

Isn't there any chance for the Tester to change the configuration whilst running?

David Grudl
Nette Core | 8129
+
0
-

You must specify which php.ini to use with -c option (see https://github.com/nette/tester). Otherwise no php.ini is used.

uestla
Backer | 796
+
0
-

Thank you, David. That helped.