Skip to content

PHP debugger switcher breaks on pysed #106

@choonge

Description

@choonge

Whenever I specify PHP_DEBUGGER as either none or blackfire, the container fails to start. The logs are showing:

PHP-Debugger: Blackfire enabled
pysed: error: Too many arguments
Usage: pysed [-h] [-v]
             [[-r] [-f] [-s] [-m] [-l] [-g] [-s] --write]

I've reproduced it on the following tags:

  • ubuntu-12.04
  • ubuntu-16.04
  • centos-7
  • debian-9

As discussed on Slack, @guiyomh had an idea to use rename rather than pysed:

  • disable: rename .ini .ini.disabled *xdebug.ini
  • enable: rename .ini.disabled .ini *xdebug.ini.disabled

To do:

  • remove pysed package installation
  • rewrite pysed usage to rename
  • write tests ( this will obsolete Add testsuite for PHP_DEBUGGER #100 )
  • document the option in the README of php-apache-dev, php-nginx-dev and php-dev

Working on this in a fork.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions