Compare commits

...
1 Commits
2 changed files with 0 additions and 61 deletions

No files matched your search

-31
View File
@@ -1,31 +0,0 @@
--TEST--
invoke() with base class method
--FILE--
<?php
class Foo
{
function Test()
{
echo __METHOD__ . "\n";
}
}
class Bar extends Foo
{
function Test()
{
echo __METHOD__ . "\n";
}
}
$o = new Bar;
$r = new ReflectionMethod('Foo','Test');
$r->invoke($o);
?>
===DONE===
--EXPECT--
Foo::Test
===DONE===
-30
View File
@@ -1,30 +0,0 @@
--TEST--
Bug #30862 (Static array with boolean indexes)
--FILE--
<?php
class T {
static $a = array(false=>"false", true=>"true");
}
print_r(T::$a);
?>
----------
<?php
define("X",0);
define("Y",1);
class T2 {
static $a = array(X=>"false", Y=>"true");
}
print_r(T2::$a);
?>
--EXPECT--
Array
(
[0] => false
[1] => true
)
----------
Array
(
[0] => false
[1] => true
)