Few ladybug debugger functions not working in symfony2 php application

I use this

https://github.com/raulfraile/LadybugBundle

They have three functions.

ld($var1[, $var2[, ...]]): shortcut for ladybug_dump

ldd($var1[, $var2[, ...]]): shortcut for ladybug_dump_die

ldr($format, $var1[, $var2[, ...]]): shortcut for ladybug_return

The first two work, but for the third, it says an undefined function

I also tried this to reset json, then I also get an error

ld(json_decode($jsonContent, true));

and i get it

UndefinedFunctionException: attempt to call the "bccomp" function from the "Ladybug \ Type" namespace in /var/www/html/site/Symfony/vendor/raulfraile/ladybug/src/Ladybug/Type/FloatType.php line 115

+2
source share
1 answer

The bccomp () function needs a php BC Math extension.

, PHP - enable-bcmath.

PHP Windows

php -i | grep -i bcmath...

...

BCMath support => enabled

... . , , php --enable-bcmath.

+2

All Articles