[xdebug-general] PHP Warning but Xdebug works fine

From: Rob Mills <rob.mills[@]sitemakers.co.uk>
Date: Thu, 29 May 2008 10:31:50 +0100

Hi,

Thanks for a great product, I have recently installed it on a local dev
box and it works fine apart from one issue. Xdebug works properly but
running any php command through the command line is returning an error,
for example running php -v returns:

PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP Warning: Module 'xdebug' already loaded in Unknown on line 0
PHP 5.2.6 (cli) (built: May 2 2008 15:18:38)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

running php -m returns this:

PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP Warning: Module 'xdebug' already loaded in Unknown on line 0
[PHP Modules]
bz2
calendar
ctype
curl
date
dbase
exif
filter
ftp
gd
gettext
gmp
hash
iconv
json
ldap
libxml
mbstring
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
posix
pspell
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xdebug
xml
zip
zlib

[Zend Modules]

I believe that xdebug should be in the bottom list aswell, not too sure
what the issue might be. When i run a phpinfo() i can see all Xdebug
settings in there so i'm very confused.

here is a snippet from my phpinfo();

xdebug
xdebug support enabled
Version 2.0.3

Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.125.2.4 $
GDB - GNU Debugger protocol $Revision: 1.87 $
PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $

Thanks for your time.

Rob.

-- 
Kind Regards
Rob Mills
Website Developer
--------------------------------------------------
robert.mills[@]sitemakers.co.uk
-------------------------------------------------
Telephone: 01458 253290
http://www.sitemakers.co.uk
Sitemakers Ltd, Unit 15 Bowdens Farm Business Park, Hambridge, Somerset TA10 0BP
This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Sitemakers Limited. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify emailerror[@]sitemakers.co.uk
Sitemakers Ltd is Registered in England, Company No. 3718031,
Registered office - Fair View House, Back Lane, Curry Rivel, Langport TA10 0NY, VAT Number 728 9203 17 
Received on Thu May 29 2008 - 11:41:14 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST