forked from xdebug/xdebug
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed/added test cases for PHP 4.4. SVN Rev: 2217
- Loading branch information
Showing
33 changed files
with
396 additions
and
18 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 |
---|---|---|
@@ -1 +1 @@ | ||
TEST_PHP_EXECUTABLE=`which php-4.3dev` php-4.3dev /dat/dev/php/php-4.3dev/run-tests.php tests/*.phpt | ||
TEST_PHP_EXECUTABLE=`which php-4.4dev` php-5.2dev /dat/dev/php/php-5.2dev/run-tests.php tests/*.phpt |
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 @@ | ||
TEST_PHP_EXECUTABLE=`which php-5.1dev` php-5.1dev -dxdebug.auto_trace=0 /dat/dev/php/php-5.1dev/run-tests.php tests/*.phpt |
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 @@ | ||
TEST_PHP_EXECUTABLE=`which php-5.2dev` php-5.2dev -dxdebug.auto_trace=0 /dat/dev/php/php-5.2dev/run-tests.php tests/*.phpt |
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,48 @@ | ||
--TEST-- | ||
Test for segmentation fault with xdebug_get_function_stack() and collect_params=1. (ZE1) | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("xdebug")) print "skip"; ?> | ||
<?php if(version_compare(zend_version(), "2.0.0-dev", '>')) echo "skip Zend Engine 1 needed\n"; ?> | ||
--INI-- | ||
xdebug.enable=1 | ||
xdebug.auto_trace=0 | ||
xdebug.collect_params=1 | ||
xdebug.profiler_enable=0 | ||
--FILE-- | ||
<?php | ||
function foo($s) { | ||
print $s; | ||
var_dump(xdebug_get_function_stack()); | ||
} | ||
|
||
foo('bar'); | ||
?> | ||
--EXPECTF-- | ||
bararray(2) { | ||
[0]=> | ||
array(4) { | ||
["function"]=> | ||
string(6) "{main}" | ||
["file"]=> | ||
string(%d) "/%s/bug00022-ze1.php" | ||
["line"]=> | ||
int(0) | ||
["params"]=> | ||
array(0) { | ||
} | ||
} | ||
[1]=> | ||
array(4) { | ||
["function"]=> | ||
string(3) "foo" | ||
["file"]=> | ||
string(%d) "/%s/bug00022-ze1.php" | ||
["line"]=> | ||
int(7) | ||
["params"]=> | ||
array(1) { | ||
[0]=> | ||
string(5) "'bar'" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--TEST-- | ||
Test for bug #212: coverage coverage inaccurate (ZE1). | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("xdebug")) print "skip"; ?> | ||
<?php if(version_compare(zend_version(), "2.0.0-dev", '>')) echo "skip Zend Engine 1 needed\n"; ?> | ||
--INI-- | ||
xdebug.default_enable=1 | ||
xdebug.auto_trace=0 | ||
xdebug.trace_options=0 | ||
xdebug.trace_output_dir=/tmp | ||
xdebug.collect_params=1 | ||
xdebug.collect_return=0 | ||
xdebug.auto_profile=0 | ||
xdebug.profiler_enable=0 | ||
xdebug.dump_globals=0 | ||
xdebug.show_mem_delta=0 | ||
xdebug.trace_format=0 | ||
xdebug.extended_info=1 | ||
--FILE-- | ||
<?php | ||
xdebug_start_code_coverage( XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE ); | ||
$file = realpath('./tests/bug00212a.inc'); | ||
include $file; | ||
$cc = xdebug_get_code_coverage(); | ||
xdebug_stop_code_coverage(); | ||
var_dump($cc[$file]); | ||
?> | ||
--EXPECT-- | ||
array(5) { | ||
[5]=> | ||
int(1) | ||
[7]=> | ||
int(1) | ||
[9]=> | ||
int(1) | ||
[10]=> | ||
int(-1) | ||
[12]=> | ||
int(1) | ||
} |
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,56 @@ | ||
--TEST-- | ||
Test with Code Coverage (ZE1) | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("xdebug")) print "skip"; ?> | ||
<?php if(version_compare(zend_version(), "2.0.0-dev", '>')) echo "skip Zend Engine 1 needed\n"; ?> | ||
--INI-- | ||
xdebug.default_enable=1 | ||
xdebug.auto_trace=0 | ||
xdebug.trace_options=0 | ||
xdebug.trace_output_dir=/tmp | ||
xdebug.collect_params=1 | ||
xdebug.collect_return=0 | ||
xdebug.auto_profile=0 | ||
xdebug.profiler_enable=0 | ||
xdebug.dump_globals=0 | ||
xdebug.show_mem_delta=0 | ||
xdebug.trace_format=0 | ||
xdebug.extended_info=1 | ||
--FILE-- | ||
<?php | ||
xdebug_start_code_coverage(); | ||
$file = realpath('./tests/coverage.inc'); | ||
include $file; | ||
$cc = xdebug_get_code_coverage(); | ||
xdebug_stop_code_coverage(); | ||
var_dump($cc[$file]); | ||
?> | ||
--EXPECTF-- | ||
This is a YYYY-MM-DD format. | ||
This is a YYYYMMDD HHii format. | ||
array(12) { | ||
[2]=> | ||
int(1) | ||
[4]=> | ||
int(1) | ||
[7]=> | ||
int(1) | ||
[8]=> | ||
int(1) | ||
[10]=> | ||
int(1) | ||
[11]=> | ||
int(1) | ||
[17]=> | ||
int(1) | ||
[18]=> | ||
int(1) | ||
[20]=> | ||
int(1) | ||
[21]=> | ||
int(1) | ||
[22]=> | ||
int(1) | ||
[25]=> | ||
int(1) | ||
} |
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,68 @@ | ||
--TEST-- | ||
Test with Code Coverage with unused lines (ZE1) | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("xdebug")) print "skip"; ?> | ||
<?php if(version_compare(zend_version(), "2.0.0-dev", '>')) echo "skip Zend Engine 1 needed\n"; ?> | ||
--INI-- | ||
xdebug.default_enable=1 | ||
xdebug.auto_trace=0 | ||
xdebug.trace_options=0 | ||
xdebug.trace_output_dir=/tmp | ||
xdebug.collect_params=1 | ||
xdebug.collect_return=0 | ||
xdebug.auto_profile=0 | ||
xdebug.profiler_enable=0 | ||
xdebug.dump_globals=0 | ||
xdebug.show_mem_delta=0 | ||
xdebug.trace_format=0 | ||
xdebug.extended_info=1 | ||
--FILE-- | ||
<?php | ||
xdebug_start_code_coverage(XDEBUG_CC_UNUSED); | ||
$file = realpath('./tests/coverage.inc'); | ||
include $file; | ||
$cc = xdebug_get_code_coverage(); | ||
xdebug_stop_code_coverage(); | ||
var_dump($cc[$file]); | ||
?> | ||
--EXPECTF-- | ||
This is a YYYY-MM-DD format. | ||
This is a YYYYMMDD HHii format. | ||
array(%d) { | ||
[2]=> | ||
int(1) | ||
[4]=> | ||
int(1) | ||
[5]=> | ||
int(-1) | ||
[6]=> | ||
int(-1) | ||
[7]=> | ||
int(1) | ||
[8]=> | ||
int(1) | ||
[9]=> | ||
int(-1) | ||
[10]=> | ||
int(1) | ||
[11]=> | ||
int(1) | ||
[12]=> | ||
int(-1) | ||
[14]=> | ||
int(-1) | ||
[17]=> | ||
int(1) | ||
[18]=> | ||
int(1) | ||
[20]=> | ||
int(1) | ||
[21]=> | ||
int(1) | ||
[22]=> | ||
int(1) | ||
[23]=> | ||
int(-1) | ||
[25]=> | ||
int(1) | ||
} |
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.