Bug #71169 [Opn->Csd]: I get a Fatal error: Call to undefined function bcpow()

From: Date: Sat, 19 Dec 2015 22:50:25 +0000
Subject: Bug #71169 [Opn->Csd]: I get a Fatal error: Call to undefined function bcpow()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198043@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71169&edit=1 ID: 71169 User updated by: janokary at gmail dot com Reported by: janokary at gmail dot com Summary: I get a Fatal error: Call to undefined function bcpow() -Status: Open +Status: Closed Type: Bug Package: BC math related Operating System: heroku ubuntu PHP Version: 7.0.1 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2015-12-19 22:27:32] tpunt@php.net 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

« previous php.bugs (#198043) next »