forked from xdebug/xdebug
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #2001: Add 'xdebug.use_compression' setting to turn on/of…
…f compression for profiling files
- Loading branch information
Showing
11 changed files
with
167 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--TEST-- | ||
Test for bug #2001: no zlib, use_compression=1 | ||
--SKIPIF-- | ||
<?php | ||
require __DIR__ . '/../utils.inc'; | ||
check_reqs('!ext-flag compression; !win'); | ||
?> | ||
--INI-- | ||
xdebug.mode=profile | ||
xdebug.start_with_request=default | ||
xdebug.use_compression=1 | ||
xdebug.profiler_output_name=cachegrind.out.%R.end | ||
xdebug.log={TMPDIR}/{RUNID}bug2001-no-zlib-compression.txt | ||
--FILE-- | ||
<?php | ||
$file = xdebug_get_profiler_filename(); | ||
var_dump($file); | ||
if ($file) { | ||
unlink($file); | ||
} | ||
|
||
echo file_get_contents(sys_get_temp_dir() . '/' . getenv('UNIQ_RUN_ID') . 'bug2001-no-zlib-compression.txt' ); | ||
unlink (sys_get_temp_dir() . '/' . getenv('UNIQ_RUN_ID') . 'bug2001-no-zlib-compression.txt' ); | ||
?> | ||
--EXPECTF-- | ||
string(%d) "%send" | ||
[%d] Log opened at %s | ||
[%d] [Config] WARN: Cannot create a compressed file, because support for zlib has not been compiled in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
Test for bug #2001: no zlib, use_compression=0 | ||
--SKIPIF-- | ||
<?php | ||
require __DIR__ . '/../utils.inc'; | ||
check_reqs('!ext-flag compression; !win'); | ||
?> | ||
--INI-- | ||
xdebug.mode=profile | ||
xdebug.start_with_request=default | ||
xdebug.use_compression=0 | ||
xdebug.profiler_output_name=cachegrind.out.%R.end | ||
--FILE-- | ||
<?php | ||
$file = xdebug_get_profiler_filename(); | ||
var_dump($file); | ||
if ($file) { | ||
unlink($file); | ||
} | ||
?> | ||
--EXPECTF-- | ||
string(%d) "%send" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
Test for bug #2001: zlib, use_compression=1 | ||
--SKIPIF-- | ||
<?php | ||
require __DIR__ . '/../utils.inc'; | ||
check_reqs('ext-flag compression; !win'); | ||
?> | ||
--INI-- | ||
xdebug.mode=profile | ||
xdebug.start_with_request=default | ||
xdebug.use_compression=1 | ||
xdebug.profiler_output_name=cachegrind.out.%R.end | ||
--FILE-- | ||
<?php | ||
$file = xdebug_get_profiler_filename(); | ||
var_dump($file); | ||
if ($file) { | ||
unlink($file); | ||
} | ||
?> | ||
--EXPECTF-- | ||
string(%d) "%send.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
Test for bug #2001: zlib, use_compression=0 | ||
--SKIPIF-- | ||
<?php | ||
require __DIR__ . '/../utils.inc'; | ||
check_reqs('ext-flag compression; !win'); | ||
?> | ||
--INI-- | ||
xdebug.mode=profile | ||
xdebug.start_with_request=default | ||
xdebug.use_compression=0 | ||
xdebug.profiler_output_name=cachegrind.out.%R.end | ||
--FILE-- | ||
<?php | ||
$file = xdebug_get_profiler_filename(); | ||
var_dump($file); | ||
if ($file) { | ||
unlink($file); | ||
} | ||
?> | ||
--EXPECTF-- | ||
string(%d) "%send" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters