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

6 years ago

uestla
Backer | 746
+
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)

6 years ago

Jan Tvrdík
Nette guru | 2559
+
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.

6 years ago

uestla
Backer | 746
+
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?

6 years ago

David Grudl
Nette Core | 6864
+
0
-

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

6 years ago

uestla
Backer | 746
+
0
-

Thank you, David. That helped.