In my PHP.ini, the extensions are not uncommented.


But in phpinfo(), I can see that curl (by example) is enable and in my code I can use it.

enter image description here

But I can't understand why curl is enable, someone can help me?

My conf :

  • PHP 5.5.34
  • OS X El Capitan 10.11.5

1 Answer 1


Extensions can be loaded into PHP two ways. Either statically at compile time, or dynamically at run time.

Statically loaded extensions are included in the PHP binary at compile time, and does not require an extension= line in php.ini to load it.

Dynamically loaded extensions are not included in the PHP binary, but are saved as dynamic link libraries (.so files on OS X). They require a extension= line in php.ini to load it at run time.

The short answer to your question: Your cURL extension is statically compiled with the PHP executable, therefore it works even though you haven't got a extension=php_curl.so line in php.ini.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .