PHP 8 how to add missing extensions?


  • | 1129 points

    I'm using Laravel v8 and this requires the following extensions:

    bcmath
    ctype
    json
    tokenizer
    xml

    I have manually added them into my php.ini file like this: extension=bcmath
    However, I am getting an error back saying that Windows 10 can not find them.

    Warning: PHP Startup: Unable to load dynamic library 'bcmath' (tried: C:/laragon/bin/php/php-8.0.7
    -Win32-vs16-x64/ext\bcmath (The specified module could not be found), C:/laragon/bin/php/php-8.0.7
    -Win32-vs16-x64/ext\php_bcmath.dll (The specified module could not be found)) in Unknown on line 0

    So any advice on how I get these extensions into Laragon?

    Many thanks !


  • | 9869 points

    @vincej there is a known problem with Laragon 4 not working with PHP 8, the fix is to upgrade to Laragon 5.

    Alternatively, the three known problems with Laragon 4 when switching to PHP8 are:

    1. mod_php.conf, change php8_module to php_module, see PHP 8.0 (8.0.0alpha1) testing anyone?
    2. VS16 is required, see PHP 8.0 (8.0.0alpha1) testing anyone?
    3. PHP extensions are not automatically registering in php.ini, see Don't support PHP8?

Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.