PHP throwing XDebug errors ONLY in command line mode...
Posted
by Wilhelm Murdoch
on Server Fault
See other posts from Server Fault
or by Wilhelm Murdoch
Published on 2010-02-27T02:56:11Z
Indexed on
2010/04/04
19:03 UTC
Read the original article
Hit count: 572
Hey, all!
I've been having a few problems running PHP-based utilities within the command line ever since I enabled the XDebug. It runs just fine when executing script through a browser, but once I try an execute a script on the command line, it throws the following errors:
h:\www\test>@php test.php
PHP Warning: PHP Startup: Unable to load dynamic library 'E:\development\xampplite\php\ext\php_curl.dll' - The specified module could not be found in Unknown on line 0
PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
h:\www\test>
The script runs just fine after this, but it's something I can't seem to wrap my head around. Could it be a path issue within my php.ini config? I'm not sure if that's the case considering it throws the same error no matter where I access the @php
environmental variable.
Also, all paths within my php.ini are absolute. Not really sure what's going on here. Any ideas?
Thanks!
© Server Fault or respective owner