Date: Sat Apr 10 12:33:49 CEST 2004
User: Derick Rethans
Directory: xdebug
Log Message:
[0.50]
- Added test cases for bug #57
Modified files:
xdebug/test.sh (version: 1.11)
Added files:
xdebug/test-4.3.sh (new version: 1.1)
xdebug/tests/bug00057-ze1.phpt (new version: 1.1)
xdebug/tests/bug00057-ze2.phpt (new version: 1.1)
[FILE: /xdebug/test-4.3.sh]
TEST_PHP_EXECUTABLE=`which php-4.3dev` php-4.3dev /dat/dev/php/php-4.3dev/run-tests.php tests/*.phpt
[FILE: /xdebug/test.sh]
===================================================================
RCS file: cvstemp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- xdebug/test.sh:1.10 Wed Feb 18 19:45:31 2004 GMT
+++ xdebug/test.sh Sat Apr 10 08:33:49 2004 GMT
@@ -1 +1 @@
-TEST_PHP_EXECUTABLE=`which php` php /dat/dev/php/php-5.0dev/run-tests.php tests/*.phpt
+TEST_PHP_EXECUTABLE=`which php-5.0dev` php-5.0dev /dat/dev/php/php-5.0dev/run-tests.php tests/*.phpt
[FILE: /xdebug/tests/bug00057-ze1.phpt]
--TEST--
Test for bug #57: Crash with overloading functions (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.show_mem_delta=0
--FILE--
<?php
class OO {
var $a = 111;
var $elem = array('b' => 9, 'c' => 42);
// Callback method for executing a method
function __call($function, $params)
{
echo strlen($params[0]);
}
}
// Here we overload the OO object
overload('OO');
$o = new OO;
echo $o->foo('80');
?>
--EXPECTF--
Notice: Undefined offset: 0 in /%s/bug00057-ze1.php on line 9
Call Stack:
%f %d 1. {main}() /%s/bug00057-ze1.php:0
%f %d 2. oo->__call('oo', array (), NULL) /%s/bug00057-ze1.php:16
0
Warning: Call to undefined method oo::oo() in /%s/bug00057-ze1.php on line 16
Call Stack:
%f %d 1. {main}() /%s/bug00057-ze1.php:0
2
Warning: Call to undefined method oo::foo() in /%s/bug00057-ze1.php on line 18
Call Stack:
%f %d 1. {main}() /%s/bug00057-ze1.php:0
[FILE: /xdebug/tests/bug00057-ze2.phpt]
--TEST--
Test for bug #57: Crash with overloading functions (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
xdebug.collect_params=1
xdebug.show_mem_delta=0
--FILE--
<?php
class OO {
var $a = 111;
var $elem = array('b' => 9, 'c' => 42);
// Callback method for executing a method
function __call($function, $params)
{
echo strlen($params[0]);
}
}
$o = new OO;
echo $o->foo('80');
?>
--EXPECTF--
Strict standards: var: Deprecated. Please use the public/private/protected modifiers in /%s/bug00057-ze2.php on line 3
Strict standards: var: Deprecated. Please use the public/private/protected modifiers in /%s/bug00057-ze2.php on line 4
2
Received on Sat Apr 10 2004 - 12:33:51 BST
This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:02 BST