Bug 26275 - PHP: Не работает xdebug из коробки
Summary: PHP: Не работает xdebug из коробки
Status: CLOSED FIXED
Alias: None
Product: Branch p6
Classification: Distributions
Component: php5-xdebug (show other bugs)
Version: не указана
Hardware: all Linux
: P3 normal
Assignee: Andrey Cherepanov
QA Contact: QA p6
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-11 03:56 MSK by anyx
Modified: 2011-09-12 17:21 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anyx 2011-09-11 03:56:29 MSK
Во всех виденных мною дистрибутивах  alt'а раширение php подключается так:

#/etc/php/5.3/apache2-mod_php/php.d/xdebug.ini

extension=xdebug.so

Однако, это не работает. Для корректной работы необходимо подключать по-другому:

#/etc/php/5.3/apache2-mod_php/php.d/xdebug.ini
zend_extension=/usr/lib64/php/5.3.6/extensions/xdebug.so
Comment 1 Anton Farygin 2011-09-12 15:32:53 MSK
всё работает в php5-5.3.8.20110823-alt0.M60P.1

apt-get install php5-xdebug
# cat /etc/php/5.3/fpm/php.d/xdebug.ini 
extension=xdebug.so

xdebug включен, согласно php.ini
Comment 2 anyx 2011-09-12 15:54:47 MSK
(В ответ на комментарий №1)
> всё работает в php5-5.3.8.20110823-alt0.M60P.1
> 
> apt-get install php5-xdebug
> # cat /etc/php/5.3/fpm/php.d/xdebug.ini 
> extension=xdebug.so
> 
> xdebug включен, согласно php.ini

Такое подключение не работает. При попытке выполнить php-скрипт из консоли, выводится явная ошибка, что xdebug должен быть подключен как zend_extension.

Собственно, вот: http://xdebug.org/docs/install

> but you still need to add the correct line to your php.ini: (don't forget to > change the path and filename to the correct one — but make sure you use the > full path) 
> zend_extension="/usr/local/php/modules/xdebug.so"
Comment 3 Anton Farygin 2011-09-12 16:03:23 MSK
да, есть такое дело. xdebug нужно подключать как zend_extension с полным путём.

Не могли бы вы рассказать, в каких Linux дистрибутивах xdebug нужно подключать обычным способом как extension ?
Comment 4 Anton Farygin 2011-09-12 16:55:28 MSK
Исправлено в php5-xdebug-5.3.8.20110823-alt0.M60P.1.1
Comment 5 Andrey Cherepanov 2011-09-12 17:21:05 MSK
На пакет