Starting with the Xampp 7.2.#, the extension directives did not require the 'php_' prefix nor the '.dll' file extension, hence, to specify php_bz2.dll, you only needed to provide:
- Code: Select all
extension=bz2
...and it would locate the dll in C:\xampp\php\ext\, which is where the extensions are located by default on my Windows set-up.
When I upgraded to Xampp 7.3, I received an error message for each of the extensions specified in php.ini, each like this:
[20-Dec-2018 01:55:08 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_bz2' (tried: C:\php\ext\php_bz2 (The specified module could not be found.), C:\php\ext\php_php_bz2.dll (The specified module could not be found.)) in Unknown on line 0
The error here is that Xampp is looking for the extensions in C:\php\ext, not in C:\Xampp\php\ext, where they're kept on my system.
The work-around is to spell out the location in full, like this:
- Code: Select all
extension=C:\Xampp\php\ext\php_bz2.dll
This works, but it's inconvenient.
Is the directory location of the extensions stored in a variable anywhere, either in an INI file or an environment variable? If I could edit it once there, I'd be spared having to specify the full path name of the file each time.
Many thanks,
Tom