Skip to content

Commit

Permalink
Merge pull request #4 from weirdan/disable-for-whole-process-tree
Browse files Browse the repository at this point in the history
Disable xdebug for whole process tree
  • Loading branch information
weirdan authored Aug 16, 2018
2 parents 006dabb + bad5bf6 commit b8887dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Runs a php script with XDebug disabled",
"keywords" : ["Xdebug", "xdebug", "performance"],
"require": {
"composer/xdebug-handler": "^1.1.0",
"composer/xdebug-handler": "^1.2",
"php": "~5.3 || ~7.0"
},
"require-dev": {
Expand Down
3 changes: 3 additions & 0 deletions src/prepend.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
namespace Weirdan\RunWithoutXdebug;

if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
// standalone
require __DIR__ . '/../vendor/autoload.php';
Expand Down Expand Up @@ -28,4 +29,6 @@

$x->setLogger($logger);
$x->check();
$config = new \Composer\XdebugHandler\PhpConfig;
$config->usePersistent();
});

0 comments on commit b8887dc

Please sign in to comment.