Phpbrew: Uncaught Error: Call to undefined function Symfony\Component\Yaml\ctype_digit

Created on 5 Dec 2016  路  5Comments  路  Source: phpbrew/phpbrew

Output

PHP Fatal error:  Uncaught Error: Call to undefined function Symfony\Component\Yaml\ctype_digit() in phar:///usr/bin/phpbrew/vendor/symfony/yaml/Inline.php:504
Stack trace:
#0 phar:///usr/bin/phpbrew/vendor/symfony/yaml/Inline.php(248): Symfony\Component\Yaml\Inline::evaluateScalar('--with-libdir=l...', Array)
#1 phar:///usr/bin/phpbrew/vendor/symfony/yaml/Inline.php(71): Symfony\Component\Yaml\Inline::parseScalar('--with-libdir=l...', NULL, Array, 19, true, Array)
#2 phar:///usr/bin/phpbrew/vendor/symfony/yaml/Parser.php(506): Symfony\Component\Yaml\Inline::parse('--with-libdir=l...', false, false, false, Array)
#3 phar:///usr/bin/phpbrew/vendor/symfony/yaml/Parser.php(117): Symfony\Component\Yaml\Parser->parseValue('--with-libdir=l...', false, false, false, 'sequence')
#4 phar:///usr/bin/phpbrew/vendor/symfony/yaml/Parser.php(225): Symfony\Component\Yaml\Parser->parse('- --with-libdir...', false, false, false)

Expected Result

Successfull instalation of predefined extension in config.yml

Command

phpbrew ext install +ituvs --debug

config.yml

extensions:
  ituvs:
    xdebug: stable

Build Log

no build log available.

Platform

OS:

Centos 6.8 x64

Running PHP:
php 5.5
Installing PHP:
php 7.1

phpbrew - 1.22.6
cliframework core: 2.5.4

Most helpful comment

phpbrew rely on Symfony/yaml, which needs the ctype extension to run. could you check does your php support ctype?

All 5 comments

phpbrew rely on Symfony/yaml, which needs the ctype extension to run. could you check does your php support ctype?

it appears it's not

php -r "var_dump(function_exists('ctype_digit'));"
bool(false)

i just installed php 7.1 with phpbrew, the php.net docs say that it should be included by default, but somehow it's not

phpbrew ext install ctype
solved the problem, but if extension installation depends on ctype module maybe it should be installed by default by phpbrew or at least a warning that ctype module is required for extension installation, like the curl does:

# WARNING: curl extension might be required for fetching data.

I've just installed php-ctype extension and the problem has resolved

Can any one help me to how to install php-ctype extension in php module

@chimu123 depends on your operating system, php version and type (devel, fpm, cgi, etc.)
But I guess StackOverflow is the better place to ask such questions

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mcpeng picture mcpeng  路  5Comments

WelingtonM picture WelingtonM  路  5Comments

cnmade picture cnmade  路  6Comments

luohengyi picture luohengyi  路  5Comments

chris001 picture chris001  路  3Comments