A
A
Aricus2022-03-11 14:51:58
PHP
Aricus, 2022-03-11 14:51:58

How to connect PHP extension (dll) on xampp?

I need to install on a local XAMPP server (php version 7.2.7) the php mailparse extension.
Downloaded it from here pecl.php.net/package/mailparse/3.0.4/windows , 7.2 Thread Safe (TS) x64 . Unpacked the archive. It contains the following files:

  • CREDITS
  • LICENSE
  • php_mailparse.dll
  • php_mailparse.pdb
  • README.md
  • try.php

Took php_mailparse.dll, placed it in the extensions folder D:\xampp\php\ext Added to
php.ini:
extentions=php_mailparse.dll
Tried also
extension=mailparse
Rebooted the server. Checking the connection (not sure how to do it right)
var_dump(extension_loaded('mailparse'));
var_dump(extension_loaded('php_mailparse'));
var_dump(extension_loaded('php_mailparse.dll'));

False everywhere.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aricus, 2022-03-14
@Aricus

Thanks Para bellum c cyberforum.ru
I didn't correctly identify the version. It turns out that the bitness of the system (windows in this case) does not have to match the bitness of php. You need to pay attention to the following lines in phpinfo:

  • php version
  • architecture
  • thread safety

T
ThunderCat, 2022-03-11
@ThunderCat

php.ini is usually 2 pieces, one "for the web", the other for the cli.
First, look at phpinfo(), make sure that you have changed the correct php.ini,
secondly, check the folder for connecting extensions, whether you uploaded the file there,
thirdly, look at the launch log, maybe you have the wrong version of the dll.
Then we can talk about something...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question