-
-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:xdebug/xdebug
- Loading branch information
Showing
2 changed files
with
39 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--TEST-- | ||
Test for bug #1245: xdebug_dump_superglobals dumps *uninitialized* with PHP 7 | ||
--INI-- | ||
xdebug.default_enable=1 | ||
xdebug.collect_params=4 | ||
html_errors=0 | ||
xdebug.dump.GET=* | ||
xdebug.dump.POST=* | ||
--GET-- | ||
getFoo=bar | ||
--POST-- | ||
postBar=baz | ||
--FILE-- | ||
<?php | ||
trigger_error("TEST"); | ||
?> | ||
--EXPECTF-- | ||
Notice: TEST in %sbug01245.php on line 2 | ||
|
||
Call Stack: | ||
%w%f %w%d 1. {main}() %sbug01245.php:0 | ||
%w%f %w%d 2. trigger_error('TEST') %sbug01245.php:2 | ||
|
||
Dump $_GET | ||
$_GET['getFoo'] = 'bar' | ||
Dump $_POST | ||
$_POST['postBar'] = 'baz' |
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