Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528166 - =dev-lang/php-5.6.x - Add support for phpdbg command line debugger
Summary: =dev-lang/php-5.6.x - Add support for phpdbg command line debugger
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL: https://github.com/krakjoe/phpdbg
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-03 18:49 UTC by Alex Barker
Modified: 2022-05-10 19:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
enable phpdbg in 5.6.6 (php-5.6.6.patch,1.11 KB, patch)
2015-03-14 16:31 UTC, Simon Maurer
Details | Diff
don't use eselect on phpdbg (php-5.6.6.patch,1.36 KB, patch)
2015-03-14 18:27 UTC, Simon Maurer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barker 2014-11-03 18:49:07 UTC
It looks like phpdbg has been integrated with PHP core starting in 5.6.  Gentoo currently has no support to build with this feature enabled.  Would it be possible to add and build the secondary sources with the phpdbg use flag?

It looks pretty strait forward so I will try to workout an patch and attach it here.

Reproducible: Always
Comment 1 Simon Maurer 2015-03-14 16:31:39 UTC
Created attachment 398900 [details, diff]
enable phpdbg in 5.6.6

not very well tested, but it seems to work.
I get the error 
"!!! Error: Please chose one of the following modules: cli apache2 fpm cgi"
and I've got no idea where this is coming from.
Comment 2 Simon Maurer 2015-03-14 18:27:50 UTC
Created attachment 398916 [details, diff]
don't use eselect on phpdbg

this should fix the error
Comment 3 Brian Evans (RETIRED) gentoo-dev 2015-12-18 03:01:11 UTC
Could you please try the patch in comment 1 along with https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=270d0436  a patch to eselect-php?
Comment 4 Brian Evans (RETIRED) gentoo-dev 2015-12-18 05:20:05 UTC
Added to php-7.0.1.  Try that and see.

Will come back to 5.6 soon if that is OK.
Comment 5 Michael Orlitzky gentoo-dev 2016-02-05 16:42:44 UTC
I've tried to add this to the 5.6 series a few times, and this is what typically happens:

  $ phpdbg
  [Welcome to phpdbg, the interactive PHP debugger, v0.4.0]
  To get help using phpdbg type "help" and press enter
  [Please report bugs to <http://github.com/krakjoe/phpdbg/issues>]
  phpdbg> help
  Segmentation fault

It does work with 7.0, so I'm going to leave it out of 5.6 unless it's absolutely critical to someone. We'll have it going forward, though.