Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue1474-property-reads'
- Loading branch information
Showing
41 changed files
with
441 additions
and
190 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ language: php | |
php: | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- nightly | ||
|
||
matrix: | ||
|
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
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
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ calls=1 0 0 | |
2 %d | ||
|
||
fl=(3) php:internal | ||
fn=(3) php::count | ||
fn=(3) php::array_count_values | ||
23 %d | ||
|
||
fl=(3) | ||
|
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,40 @@ | ||
--TEST-- | ||
Test for bug #699: Xdebug gets the filename wrong for the countable interface (>= PHP 7.2) | ||
--SKIPIF-- | ||
<?php if (!version_compare(phpversion(), "7.2", '>=')) echo "skip >= PHP 7.2 needed\n"; ?> | ||
--INI-- | ||
xdebug.default_enable=1 | ||
xdebug.profiler_enable=0 | ||
xdebug.auto_trace=0 | ||
xdebug.trace_format=0 | ||
xdebug.collect_vars=0 | ||
xdebug.collect_params=1 | ||
xdebug.collect_return=0 | ||
xdebug.collect_assignments=0 | ||
--FILE-- | ||
<?php | ||
$tf = xdebug_start_trace(sys_get_temp_dir() . '/'. uniqid('xdt', TRUE)); | ||
|
||
require dirname( __FILE__ ) . '/bug00699.inc'; | ||
$n = new SomeClass; | ||
$n->addData('foobar'); | ||
|
||
|
||
|
||
count($n); | ||
|
||
|
||
|
||
xdebug_stop_trace(); | ||
echo file_get_contents($tf); | ||
unlink($tf); | ||
?> | ||
--EXPECTF-- | ||
TRACE START [%d-%d-%d %d:%d:%d] | ||
%w%f %w%d -> dirname(string(%d)) %sbug00699-php72.php:4 | ||
%w%f %w%d -> require(%sbug00699.inc) %sbug00699-php72.php:4 | ||
%w%f %w%d -> SomeClass->addData(string(6)) %sbug00699-php72.php:6 | ||
%w%f %w%d -> SomeClass->count(%S) %sbug00699-php72.php:10 | ||
%w%f %w%d -> xdebug_stop_trace() %sbug00699-php72.php:14 | ||
%w%f %w%d | ||
TRACE END [%d-%d-%d %d:%d:%d] |
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 was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,17 @@ | ||
--TEST-- | ||
Test for bug #978: Inspection of array with negative keys fails | ||
--FILE-- | ||
<?php | ||
include dirname(__FILE__) . '/bug00978.inc'; | ||
|
||
xdebug_debug_zval('$a'); | ||
xdebug_debug_zval('$a[-1]'); | ||
xdebug_debug_zval('$a[-]'); | ||
xdebug_debug_zval('$a[1]'); | ||
?> | ||
--EXPECTF-- | ||
4 | ||
$a: (refcount=%d, is_ref=0)=array (0 => (refcount=1, is_ref=0)='nul', -1 => (refcount=1, is_ref=0)='minus one', -2 => (refcount=1, is_ref=0)='not two', 1 => (refcount=1, is_ref=0)='een') | ||
$a[-1]: (refcount=1, is_ref=0)='minus one' | ||
$a[-]: no such symbol | ||
$a[1]: (refcount=1, is_ref=0)='een' |
File renamed without changes.
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,12 @@ | ||
--TEST-- | ||
Test for bug #1048: Can not get $GLOBAL variable by property_value on function context | ||
--FILE-- | ||
<?php | ||
include dirname(__FILE__) . '/bug01048.inc'; | ||
|
||
xdebug_debug_zval('$GLOBALS[\'cache\']'); | ||
xdebug_debug_zval('$GLOBALS[\'cache\']'); | ||
?> | ||
--EXPECTF-- | ||
11$GLOBALS['cache']: (refcount=%d, is_ref=0)='cache' | ||
$GLOBALS['cache']: (refcount=%d, is_ref=0)='cache' |
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
File renamed without changes.
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,20 @@ | ||
--TEST-- | ||
Test for bug #1272: property_get doesn't return attributes for SimpleXMLElement | ||
--FILE-- | ||
<?php | ||
include dirname(__FILE__) . '/bug01272.inc'; | ||
|
||
xdebug_debug_zval('e'); | ||
xdebug_debug_zval('e->@attributes'); | ||
xdebug_debug_zval('e->@attributes["att1"]'); | ||
xdebug_debug_zval('e->b[0]->@attributes'); | ||
xdebug_debug_zval('e->b[1]->@attributes["attb"]'); | ||
?> | ||
--EXPECTF-- | ||
attb-1 | ||
attb-2 | ||
e: (refcount=1, is_ref=0)=class SimpleXMLElement { public $@attributes = (refcount=1, is_ref=0)=array ('att1' => (refcount=1, is_ref=0)='att-a'); public $b = (refcount=1, is_ref=0)=array (0 => (refcount=1, is_ref=0)=class SimpleXMLElement { ... }, 1 => (refcount=1, is_ref=0)=class SimpleXMLElement { ... }) } | ||
e->@attributes: (refcount=1, is_ref=0)=array ('att1' => (refcount=1, is_ref=0)='att-a') | ||
e->@attributes["att1"]: (refcount=1, is_ref=0)='att-a' | ||
e->b[0]->@attributes: (refcount=1, is_ref=0)=array ('attb' => (refcount=1, is_ref=0)='attb-1') | ||
e->b[1]->@attributes["attb"]: (refcount=1, is_ref=0)='attb-2' |
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
Oops, something went wrong.