[xdebug-dev] xdebug xdebug/tests/bug00032-ze1.phpt xdebug/tests/local_vars_in_error-ze1.phpt xdebug/tests/shutdown.phpt xdebug/tests/bug00032.phpt xdebug/tests/call_user_func_array2.phpt xdebug/tests/local_vars_in_error.phpt xdebug/tests/test1.phpt - Update tests with new style of showing include files.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sat, 10 Apr 2004 01:27:52 +0200

Date: Sat Apr 10 01:27:51 CEST 2004
User: Derick Rethans
Directory: xdebug

Log Message:
[0.50]
- Update tests with new style of showing include files.
- Split local vars and bug 32 tests to ZE1 and ZE2 test.

Modified files:
           xdebug/tests/bug00032.phpt (version: 1.6)
           xdebug/tests/call_user_func_array2.phpt (version: 1.6)
           xdebug/tests/local_vars_in_error.phpt (version: 1.5)
           xdebug/tests/test1.phpt (version: 1.10)
Added files:
           xdebug/tests/bug00032-ze1.phpt (new version: 1.1)
           xdebug/tests/local_vars_in_error-ze1.phpt (new version: 1.1)
           xdebug/tests/shutdown.phpt (new version: 1.1)

[FILE: /xdebug/tests/bug00032-ze1.phpt]

--TEST--
Test for segmentation fault with unusual variables (ZE1)
--SKIPIF--
<?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.collect_params=1
--FILE--
<?php
        ${1} = "foo";
        echo ${1} . "\n";

        ${STDIN} = "foo";
        echo ${STDIN} . "\n";

        ${array(1,2,3)} = "foo";
        echo ${array(1,2,3)} . "\n";

        ${new stdclass} = "foo";
        echo ${new stdclass} . "\n";
?>
--EXPECTF--
foo
foo

Notice: Array to string conversion in %sbug00032-ze1.php on line 8

Call Stack:
    %f %d 1. {main}() %sbug00032-ze1.php:0

Notice: Array to string conversion in %sbug00032-ze1.php on line 9

Call Stack:
    %f %d 1. {main}() %sbug00032-ze1.php:0
foo

Notice: Object to string conversion in %sbug00032-ze1.php on line 11

Call Stack:
    %f %d 1. {main}() %sbug00032-ze1.php:0

Notice: Object to string conversion in %sbug00032-ze1.php on line 12

Call Stack:
    %f %d 1. {main}() %sbug00032-ze1.php:0
foo

[FILE: /xdebug/tests/local_vars_in_error-ze1.phpt]

--TEST--
Test with showing local variables on errors (ZE1)
--SKIPIF--
<?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.collect_params=1
xdebug.auto_profile=0
xdebug.dump_globals=0
xdebug.show_local_vars=1
--FILE--
<?php
        function a($a,$b) {
                $c = array($a, $b * $b);
                $d = new stdClass;
                do_f();
        }

        a(5, 6);
?>
--EXPECTF--
Fatal error: Call to undefined function: do_f() in /%s/local_vars_in_error-ze1.php on line 5

Call Stack:
    %f %d 1. {main}() /%s/local_vars_in_error-ze1.php:0
    %f %d 2. a(5, 6) /%s/local_vars_in_error-ze1.php:8

Variables in local scope:
  $d = class stdClass { }
  $a = 5
  $c = array (0 => 5, 1 => 36)
  $b = 6

[FILE: /xdebug/tests/shutdown.phpt]

--TEST--
Shutdown function
--INI--
xdebug.default_enable=1
xdebug.auto_trace=1
xdebug.collect_params=1
--FILE--
<?php
        register_shutdown_function('foo');

        function foo() {
                echo "I'm alive!";
        }
?>
--EXPECTF--
I'm alive!

[FILE: /xdebug/tests/bug00032.phpt]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- xdebug/tests/bug00032.phpt:1.5 Tue Mar 16 18:22:36 2004 GMT
+++ xdebug/tests/bug00032.phpt Fri Apr 09 21:27:51 2004 GMT
@@ -1,5 +1,7 @@
 --TEST--
-Test for segmentation fault with unusual variables
+Test for segmentation fault with unusual variables (ZE2)
+--SKIPIF--
+<?php if(version_compare(zend_version(), "2.0.0-dev", '<')) echo "skip Zend Engine 2 needed\n"; ?>
 --INI--
 xdebug.default_enable=1
 xdebug.auto_trace=0

[FILE: /xdebug/tests/call_user_func_array2.phpt]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- xdebug/tests/call_user_func_array2.phpt:1.5 Tue Mar 16 18:03:37 2004 GMT
+++ xdebug/tests/call_user_func_array2.phpt Fri Apr 09 21:27:51 2004 GMT
@@ -23,7 +23,7 @@
 ?>
 --EXPECTF--
 TRACE START [%d-%d-%d %d:%d:%d]
- %f %d -> include('call_user_func_array2.inc') /%s/call_user_func_array2.php:4
+ %f %d -> include(/%s/call_user_func_array2.inc) /%s/call_user_func_array2.php:4
     %f %d -> call_user_func_array('debug', array (0 => 'foo', 1 => array (0 => 1, 1 => 2))) /%s/call_user_func_array2.php:7
     %f %d -> debug('foo', array (0 => 1, 1 => 2)) /%s/call_user_func_array2.php:7
     %f %d -> is_array(array (0 => 1, 1 => 2)) /%s/call_user_func_array2.inc:4

[FILE: /xdebug/tests/local_vars_in_error.phpt]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- xdebug/tests/local_vars_in_error.phpt:1.4 Tue Mar 16 18:03:37 2004 GMT
+++ xdebug/tests/local_vars_in_error.phpt Fri Apr 09 21:27:51 2004 GMT
@@ -1,5 +1,7 @@
 --TEST--
-Test with showing variables in the top most stackframe on errors
+Test with showing local variables on errors (ZE2)
+--SKIPIF--
+<?php if(version_compare(zend_version(), "2.0.0-dev", '<')) echo "skip Zend Engine 2 needed\n"; ?>
 --INI--
 xdebug.default_enable=1
 xdebug.auto_trace=0

[FILE: /xdebug/tests/test1.phpt]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- xdebug/tests/test1.phpt:1.9 Tue Mar 16 18:03:37 2004 GMT
+++ xdebug/tests/test1.phpt Fri Apr 09 21:27:51 2004 GMT
@@ -25,7 +25,7 @@
 --EXPECTF--
 15
 TRACE START [%d-%d-%d %d:%d:%d]
- %f %i -> include('test_class.php') /%s/test1.php:11
+ %f %i -> include(/%s/test_class.php) /%s/test1.php:11
     %f %i -> foo(5) /%s/test1.php:13
     %f %i -> een->foo2(15, array (0 => 'blaat', 1 => 5, 2 => FALSE)) /%s/test1.php:7
     %f %i -> een->hang() /%s/test_class.php:10
Received on Sat Apr 10 2004 - 01:27:52 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:02 BST