PHP 5.4.* already comes with xdebug installed?

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

Ubuntu 12.10 fresh install here.

So I just installed php with sudo apt-get install php5 + a few other packages like php5-curl. I executed php -v and noticed something pretty bizarre:

PHP 5.4.6-1ubuntu1.1 (cli) (built: Nov 15 2012 01:18:34) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

Notice the Xdebug extension installed? I did not install it through apt (php5-xdebug package), neither through pecl and neither from source!

Question. On Ubuntu, does PHP already comes with xdebug now?

profilepic.png
manpreet 2 years ago

Marcio,

you might have accidentaly installed com/tag/php">php5-xdebug as a dependency of some other package.

The default clean com/tag/php">php5-cli installation just gives:

# com/tag/php">php5 -v
PHP 5.4.6-1ubuntu1.2 (cli) (built: Mar 11 2013 14:57:54) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

You can check installed binary modules in /usr/lib/com/tag/php">php5/20100525 directory and then you can use dpkg -S to query the coresponding debian package (I have installed php5-xdebug manually meanwhile):

# dpkg -S /usr/lib/com/tag/php">php5/20100525/xdebug.so 
com/tag/php">php5-xdebug: /usr/lib/com/tag/php">php5/20100525/xdebug.so

If this doesn't show up anything then it means that somebody (or some automatic com/tag/script">script) has installed the xdebug without you knowing.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.