Edit report at https://bugs.php.net/bug.php?id=71169&edit=1
ID: 71169
Updated by: [email protected]
Reported by: janokary at gmail dot com
Summary: I get a Fatal error: Call to undefined function
bcpow()
-Status: Closed
+Status: Not a bug
Type: Bug
Package: BC math related
Operating System: heroku ubuntu
PHP Version: 7.0.1
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2015-12-19 22:50:24] janokary at gmail dot com
I just added the BCMath extension as a requirement in composer.json and now it works.
I followed this instructions
https://devcenter.heroku.com/articles/php-support#using-optional-extensions
I didn't know that BCMath is optional. I didn't have to do this on previous versions of PHP in heroku.
Anyway, sorry to bother and thanks for your help.
------------------------------------------------------------------------
[2015-12-19 22:27:32] [email protected]
I couldn't replicate this. Have you made sure you've added the BCMath extension as a requirement in your composer.json file?
------------------------------------------------------------------------
[2015-12-19 19:06:41] janokary at gmail dot com
Description:
------------
I am using Laravel framework and my application is hosted at Heroku.
Though everything was fine until PHP v7, now in 7.0.1 I get a
FatalThrowableError
Fatal error: Call to undefined function App\Services\ShortUrl\bcpow()
Actual result:
--------------
I looks like bcpow() is not included in php v7.0.1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71169&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.