A
A
Askar Fuzaylov2015-05-14 09:36:44
Yii
Askar Fuzaylov, 2015-05-14 09:36:44

Why is the function being called from the current namespace?

There is a project on Yii2. Everything worked great. until I updated Yii. Now I am getting this error.

'yii\base\ErrorException' with message 'Call to undefined function yii\db\ctype_digit()' in /var/www/rowcash/public_html/vendor/yiisoft/yii2/db/QueryBuilder.php:832

For some reason, the ctype_digit() function is called from the yii\db\ namespace and not from the global one.
PHP 5.5.22
Yii 2.0.4

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Askar Fuzaylov, 2015-05-14
@ARACOOOL

Problem solved. It was my fault. The ctype extension was not installed.

H
He11ion, 2015-05-14
@He11ion

\ctype_digit();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question