1

I am using a mac and I installed apache and php mysql natively. DLL is for windows not php. my php webservice works fine but when I run the php cli, I get the following error

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20100525/php_curl.dll'

So my question is how do i get the cli to recognize my .so files instead.

1
  • How did you install PHP? Did you copy/paste your config from somewhere? I find it hard to believe that the default php.ini for OSX uses references dll files. Commented Feb 9, 2014 at 1:43

1 Answer 1

1

Simply change your php.ini file to not reference the DLL files.

Sign up to request clarification or add additional context in comments.

4 Comments

The php.ini file doesn't include references to any .dll files, yet this error occurs.
+1 for providing an answer.. had no effect in my case of this exact same error message, due to no references to .dll files. But, the problem disappeared as suddenly and nonsensically as it started.
dll files are for windows only. on mac, it has no business referencing it.
@numerical25 I stand corrected, after some further file searching (brute force, just trying to figure out how it was possible this problem occurred) I found a reference to php_curl.dll. Now I cannot understand how I missed this because I was searching all text files for the text string "php_curl". I spotted it by eye a minute ago.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.