Skip to content

Commit b8887dc

Browse files
authored
Merge pull request #4 from weirdan/disable-for-whole-process-tree
Disable xdebug for whole process tree
2 parents 006dabb + bad5bf6 commit b8887dc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Runs a php script with XDebug disabled",
44
"keywords" : ["Xdebug", "xdebug", "performance"],
55
"require": {
6-
"composer/xdebug-handler": "^1.1.0",
6+
"composer/xdebug-handler": "^1.2",
77
"php": "~5.3 || ~7.0"
88
},
99
"require-dev": {

src/prepend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
namespace Weirdan\RunWithoutXdebug;
3+
34
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
45
// standalone
56
require __DIR__ . '/../vendor/autoload.php';
@@ -28,4 +29,6 @@
2829

2930
$x->setLogger($logger);
3031
$x->check();
32+
$config = new \Composer\XdebugHandler\PhpConfig;
33+
$config->usePersistent();
3134
});

0 commit comments

Comments
 (0)