- killed off UEXPECT

This commit is contained in:
Steph Fox 2008-05-26 15:52:06 +00:00
parent 6d8760677d
commit 10c04aca38
236 changed files with 420 additions and 2162 deletions

View file

@ -9,11 +9,6 @@ a[]=1
var_dump($_POST['a']); var_dump($_POST['a']);
?> ?>
--EXPECT-- --EXPECT--
array(1) {
[0]=>
string(1) "1"
}
--UEXPECT--
array(1) { array(1) {
[0]=> [0]=>
unicode(1) "1" unicode(1) "1"

View file

@ -9,13 +9,6 @@ a[]=1&a[]=1
var_dump($_POST['a']); var_dump($_POST['a']);
?> ?>
--EXPECT-- --EXPECT--
array(2) {
[0]=>
string(1) "1"
[1]=>
string(1) "1"
}
--UEXPECT--
array(2) { array(2) {
[0]=> [0]=>
unicode(1) "1" unicode(1) "1"

View file

@ -9,11 +9,6 @@ a[]=1&a[0]=5
var_dump($_POST['a']); var_dump($_POST['a']);
?> ?>
--EXPECT-- --EXPECT--
array(1) {
[0]=>
string(1) "5"
}
--UEXPECT--
array(1) { array(1) {
[0]=> [0]=>
unicode(1) "5" unicode(1) "5"

View file

@ -9,13 +9,6 @@ a[a]=1&a[b]=3
var_dump($_POST['a']); var_dump($_POST['a']);
?> ?>
--EXPECT-- --EXPECT--
array(2) {
["a"]=>
string(1) "1"
["b"]=>
string(1) "3"
}
--UEXPECT--
array(2) { array(2) {
[u"a"]=> [u"a"]=>
unicode(1) "1" unicode(1) "1"

View file

@ -9,15 +9,6 @@ a[]=1&a[a]=1&a[b]=3
var_dump($_POST['a']); var_dump($_POST['a']);
?> ?>
--EXPECT-- --EXPECT--
array(3) {
[0]=>
string(1) "1"
["a"]=>
string(1) "1"
["b"]=>
string(1) "3"
}
--UEXPECT--
array(3) { array(3) {
[0]=> [0]=>
unicode(1) "1" unicode(1) "1"

View file

@ -10,31 +10,6 @@ var_dump($_POST['a']);
var_dump($_POST['b']); var_dump($_POST['b']);
?> ?>
--EXPECT-- --EXPECT--
array(2) {
[0]=>
array(1) {
[0]=>
string(1) "1"
}
[1]=>
array(1) {
[0]=>
string(1) "3"
}
}
array(1) {
["a"]=>
array(1) {
["b"]=>
array(2) {
["c"]=>
string(1) "1"
["d"]=>
string(1) "1"
}
}
}
--UEXPECT--
array(2) { array(2) {
[0]=> [0]=>
array(1) { array(1) {

View file

@ -9,15 +9,6 @@ a[]=1&a[]]=3&a[[]=4
var_dump($_POST['a']); var_dump($_POST['a']);
?> ?>
--EXPECT-- --EXPECT--
array(3) {
[0]=>
string(1) "1"
[1]=>
string(1) "3"
["["]=>
string(1) "4"
}
--UEXPECT--
array(3) { array(3) {
[0]=> [0]=>
unicode(1) "1" unicode(1) "1"

View file

@ -9,13 +9,6 @@ a[a[]]=1&a[b[]]=3
var_dump($_POST['a']); var_dump($_POST['a']);
?> ?>
--EXPECT-- --EXPECT--
array(2) {
["a["]=>
string(1) "1"
["b["]=>
string(1) "3"
}
--UEXPECT--
array(2) { array(2) {
[u"a["]=> [u"a["]=>
unicode(1) "1" unicode(1) "1"

View file

@ -1,35 +1,12 @@
--TEST-- --TEST--
Cookies test#1 Cookies test#1
--COOKIE-- --COOKIE--
cookie1=val1 ; cookie2=val2%20; cookie3=val 3.; cookie 4= value 4 %3B; cookie1=bogus; %20cookie1=ignore;+cookie1=ignore;cookie1;cookie 5=%20 value; cookie%206=þæö;cookie+7=;$cookie.8;cookie-9=1;;;- & % $cookie 10=10 cookie1=val1 ; cookie2=val2%20; cookie3=val 3.; cookie 4= value 4 %3B; cookie1=bogus; %20cookie1=ignore;+cookie1=ignore;cookie1;cookie 5=%20 value; cookie%206=þæö;cookie+7=;$cookie.8;cookie-9=1;;;- & % $cookie 10=10
--FILE-- --FILE--
<?php <?php
var_dump($_COOKIE); var_dump($_COOKIE);
?> ?>
--EXPECT-- --EXPECT--
array(10) {
["cookie1"]=>
string(6) "val1 "
["cookie2"]=>
string(5) "val2 "
["cookie3"]=>
string(6) "val 3."
["cookie_4"]=>
string(10) " value 4 ;"
["cookie__5"]=>
string(7) " value"
["cookie_6"]=>
string(3) "þæö"
["cookie_7"]=>
string(0) ""
["$cookie_8"]=>
string(0) ""
["cookie-9"]=>
string(1) "1"
["-_&_%_$cookie_10"]=>
string(2) "10"
}
--UEXPECTF--
array(10) { array(10) {
[u"cookie1"]=> [u"cookie1"]=>
unicode(0) "" unicode(0) ""

View file

@ -7,15 +7,6 @@ c o o k i e=value; c o o k i e= v a l u e ;;c%20o+o k+i%20e=v;name="value","valu
var_dump($_COOKIE); var_dump($_COOKIE);
?> ?>
--EXPECT-- --EXPECT--
array(3) {
["c_o_o_k_i_e"]=>
string(5) "value"
["name"]=>
string(24) ""value","value",UEhQIQ=="
["UEhQIQ"]=>
string(4) "=foo"
}
--UEXPECT--
array(3) { array(3) {
[u"c_o_o_k_i_e"]=> [u"c_o_o_k_i_e"]=>
unicode(1) "v" unicode(1) "v"

View file

@ -12,23 +12,6 @@ a=ABC&y=XYZ&c[]=1&c[]=2&c[a]=3
var_dump($_POST, $HTTP_RAW_POST_DATA); var_dump($_POST, $HTTP_RAW_POST_DATA);
?> ?>
--EXPECT-- --EXPECT--
array(3) {
["a"]=>
string(3) "ABC"
["y"]=>
string(3) "XYZ"
["c"]=>
array(3) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
["a"]=>
string(1) "3"
}
}
string(30) "a=ABC&y=XYZ&c[]=1&c[]=2&c[a]=3"
--UEXPECT--
array(3) { array(3) {
[u"a"]=> [u"a"]=>
unicode(3) "ABC" unicode(3) "ABC"

View file

@ -15,8 +15,4 @@ var_dump($_POST, $HTTP_RAW_POST_DATA);
--EXPECT-- --EXPECT--
array(0) { array(0) {
} }
string(9) "a=1&b=ZYX"
--UEXPECT--
array(0) {
}
unicode(9) "a=1&b=ZYX" unicode(9) "a=1&b=ZYX"

View file

@ -16,24 +16,6 @@ a=1&b=ZYX&c[][][][][][][][][][][][][][][][][][][][][][]=123&d=123&e[][]][]=3
var_dump($_POST, $php_errormsg); var_dump($_POST, $php_errormsg);
?> ?>
--EXPECT-- --EXPECT--
array(4) {
["a"]=>
string(1) "1"
["b"]=>
string(3) "ZYX"
["d"]=>
string(3) "123"
["e"]=>
array(1) {
[0]=>
array(1) {
[0]=>
string(1) "3"
}
}
}
string(106) "Input variable nesting level exceeded 10. To increase the limit change max_input_nesting_level in php.ini."
--UEXPECT--
array(4) { array(4) {
[u"a"]=> [u"a"]=>
unicode(1) "1" unicode(1) "1"

View file

@ -13,10 +13,4 @@ array(0) {
} }
array(0) { array(0) {
} }
string(3) "GPC"
--UEXPECT--
array(0) {
}
array(0) {
}
unicode(3) "GPC" unicode(3) "GPC"

View file

@ -22,26 +22,6 @@ var_dump($a);
?> ?>
--EXPECT-- --EXPECT--
Method test called: Method test called:
array(4) {
[0]=>
int(1)
[1]=>
string(1) "2"
[2]=>
float(3.4)
[3]=>
bool(true)
}
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
--UEXPECT--
Method test called:
array(4) { array(4) {
[0]=> [0]=>
int(1) int(1)

View file

@ -21,16 +21,7 @@ Force pass-by-reference to __call
var_dump($a, $b); var_dump($a, $b);
?> ?>
--EXPECTF-- --EXPECT--
array(1) {
[0]=>
string(8) "original"
}
array(1) {
[0]=>
&string(7) "changed"
}
--UEXPECTF--
array(1) { array(1) {
[0]=> [0]=>
unicode(8) "original" unicode(8) "original"
@ -38,4 +29,4 @@ array(1) {
array(1) { array(1) {
[0]=> [0]=>
&unicode(7) "changed" &unicode(7) "changed"
} }

View file

@ -26,7 +26,7 @@ class B extends A {
$b = new B(); $b = new B();
$b->test(); $b->test();
?> ?>
--EXPECTF-- --EXPECT--
In B::__call(test1, array(1,a)) In B::__call(test1, array(1,a))
object(B)#1 (0) { object(B)#1 (0) {
} }
@ -38,4 +38,4 @@ object(B)#1 (0) {
} }
In B::__call(test4, array(1,a)) In B::__call(test4, array(1,a))
object(B)#1 (0) { object(B)#1 (0) {
} }

View file

@ -21,7 +21,7 @@ class B extends A {
$b = new B(); $b = new B();
$b->test(); $b->test();
?> ?>
--EXPECTF-- --EXPECT--
In A::__call(test1, array(1,a)) In A::__call(test1, array(1,a))
object(B)#1 (0) { object(B)#1 (0) {
} }
@ -33,4 +33,4 @@ object(B)#1 (0) {
} }
In A::__call(test4, array(1,a)) In A::__call(test4, array(1,a))
object(B)#1 (0) { object(B)#1 (0) {
} }

View file

@ -23,7 +23,7 @@ class setter {
function __set($nm, $val) { function __set($nm, $val) {
echo "Setting [$nm] to $val\n"; echo "Setting [$nm] to $val\n";
if (isset($this->x[$nm])) { if (isset($this->x[$nm])) {
$this->x[$nm] = $val; $this->x[$nm] = $val;
echo "OK!\n"; echo "OK!\n";
@ -57,30 +57,6 @@ Getting [z]
Nothing! Nothing!
Setting [z] to 1 Setting [z] to 1
Not OK! Not OK!
object(setter)#%d (2) {
["n"]=>
int(1)
["x"]=>
array(3) {
["a"]=>
int(101)
["b"]=>
int(2)
["c"]=>
int(3)
}
}
--UEXPECTF--
Setting [a] to 100
OK!
Getting [a]
Returning: 100
Setting [a] to 101
OK!
Getting [z]
Nothing!
Setting [z] to 1
Not OK!
object(setter)#%d (2) { object(setter)#%d (2) {
[u"n"]=> [u"n"]=>
int(1) int(1)

View file

@ -34,10 +34,6 @@ var_dump($foo->bar->baz);
?> ?>
===DONE=== ===DONE===
--EXPECT-- --EXPECT--
string(5) "Check"
string(5) "Check"
===DONE===
--UEXPECT--
unicode(5) "Check" unicode(5) "Check"
unicode(5) "Check" unicode(5) "Check"
===DONE=== ===DONE===

View file

@ -55,21 +55,6 @@ var_dump($foo->bar->baz);
AutoGen::__get AutoGen::__get
Test::__set Test::__set
AutoGen::__get AutoGen::__get
object(Test)#%d (1) {
["x":protected]=>
array(1) {
["baz"]=>
string(5) "Check"
}
}
AutoGen::__get
Test::__get
string(5) "Check"
===DONE===
--UEXPECTF--
AutoGen::__get
Test::__set
AutoGen::__get
object(Test)#%d (1) { object(Test)#%d (1) {
[u"x":protected]=> [u"x":protected]=>
array(1) { array(1) {

View file

@ -84,119 +84,6 @@ var_dump($obj->a);
?> ?>
===DONE=== ===DONE===
--EXPECTF-- --EXPECTF--
array(4) {
[0]=>
string(3) "1st"
[1]=>
int(1)
[2]=>
string(3) "3rd"
["4th"]=>
int(4)
}
===EMPTY===
object::offsetExists(0)
object::offsetGet(0)
bool(false)
object::offsetExists(1)
object::offsetGet(1)
bool(false)
object::offsetExists(2)
object::offsetGet(2)
bool(false)
object::offsetExists(4th)
object::offsetGet(4th)
bool(false)
object::offsetExists(5th)
bool(true)
object::offsetExists(6)
bool(true)
===isset===
object::offsetExists(0)
bool(true)
object::offsetExists(1)
bool(true)
object::offsetExists(2)
bool(true)
object::offsetExists(4th)
bool(true)
object::offsetExists(5th)
bool(false)
object::offsetExists(6)
bool(false)
===offsetGet===
object::offsetGet(0)
string(3) "1st"
object::offsetGet(1)
int(1)
object::offsetGet(2)
string(3) "3rd"
object::offsetGet(4th)
int(4)
object::offsetGet(5th)
Notice: Undefined index: 5th in %sarray_access_001.php on line %d
NULL
object::offsetGet(6)
Notice: Undefined offset: 6 in %sarray_access_001.php on line %d
NULL
===offsetSet===
WRITE 1
object::offsetSet(1,Changed 1)
object::offsetGet(1)
string(9) "Changed 1"
WRITE 2
object::offsetSet(4th,Changed 4th)
object::offsetGet(4th)
string(11) "Changed 4th"
WRITE 3
object::offsetSet(5th,Added 5th)
object::offsetGet(5th)
string(9) "Added 5th"
WRITE 4
object::offsetSet(6,Added 6)
object::offsetGet(6)
string(7) "Added 6"
object::offsetGet(0)
string(3) "1st"
object::offsetGet(2)
string(3) "3rd"
object::offsetSet(6,changed 6)
object::offsetGet(6)
string(9) "changed 6"
string(9) "changed 6"
===unset===
array(6) {
[0]=>
string(3) "1st"
[1]=>
string(9) "Changed 1"
[2]=>
string(3) "3rd"
["4th"]=>
string(11) "Changed 4th"
["5th"]=>
string(9) "Added 5th"
[6]=>
string(9) "changed 6"
}
object::offsetUnset(2)
object::offsetUnset(4th)
object::offsetUnset(7)
object::offsetUnset(8th)
array(4) {
[0]=>
string(3) "1st"
[1]=>
string(9) "Changed 1"
["5th"]=>
string(9) "Added 5th"
[6]=>
string(9) "changed 6"
}
===DONE===
--UEXPECTF--
array(4) { array(4) {
[0]=> [0]=>
unicode(3) "1st" unicode(3) "1st"

View file

@ -84,119 +84,6 @@ var_dump($obj->a);
?> ?>
===DONE=== ===DONE===
--EXPECTF-- --EXPECTF--
array(4) {
[0]=>
string(3) "1st"
[1]=>
int(1)
[2]=>
string(3) "3rd"
["4th"]=>
int(4)
}
===EMPTY===
object::offsetExists(0)
object::offsetGet(0)
bool(false)
object::offsetExists(1)
object::offsetGet(1)
bool(false)
object::offsetExists(2)
object::offsetGet(2)
bool(false)
object::offsetExists(4th)
object::offsetGet(4th)
bool(false)
object::offsetExists(5th)
bool(true)
object::offsetExists(6)
bool(true)
===isset===
object::offsetExists(0)
bool(true)
object::offsetExists(1)
bool(true)
object::offsetExists(2)
bool(true)
object::offsetExists(4th)
bool(true)
object::offsetExists(5th)
bool(false)
object::offsetExists(6)
bool(false)
===offsetGet===
object::offsetGet(0)
string(3) "1st"
object::offsetGet(1)
int(1)
object::offsetGet(2)
string(3) "3rd"
object::offsetGet(4th)
int(4)
object::offsetGet(5th)
Notice: Undefined index: 5th in %sarray_access_002.php on line %d
NULL
object::offsetGet(6)
Notice: Undefined offset: 6 in %sarray_access_002.php on line %d
NULL
===offsetSet===
WRITE 1
object::offsetSet(1,Changed 1)
object::offsetGet(1)
string(9) "Changed 1"
WRITE 2
object::offsetSet(4th,Changed 4th)
object::offsetGet(4th)
string(11) "Changed 4th"
WRITE 3
object::offsetSet(5th,Added 5th)
object::offsetGet(5th)
string(9) "Added 5th"
WRITE 4
object::offsetSet(6,Added 6)
object::offsetGet(6)
string(7) "Added 6"
object::offsetGet(0)
string(3) "1st"
object::offsetGet(2)
string(3) "3rd"
object::offsetSet(6,changed 6)
object::offsetGet(6)
string(9) "changed 6"
string(9) "changed 6"
===unset===
array(6) {
[0]=>
string(3) "1st"
[1]=>
string(9) "Changed 1"
[2]=>
string(3) "3rd"
["4th"]=>
string(11) "Changed 4th"
["5th"]=>
string(9) "Added 5th"
[6]=>
string(9) "changed 6"
}
object::offsetUnset(2)
object::offsetUnset(4th)
object::offsetUnset(7)
object::offsetUnset(8th)
array(4) {
[0]=>
string(3) "1st"
[1]=>
string(9) "Changed 1"
["5th"]=>
string(9) "Added 5th"
[6]=>
string(9) "changed 6"
}
===DONE===
--UEXPECTF--
array(4) { array(4) {
[0]=> [0]=>
unicode(3) "1st" unicode(3) "1st"

View file

@ -48,17 +48,6 @@ var_dump($obj[2]);
===DONE=== ===DONE===
--EXPECTF-- --EXPECTF--
object::offsetGet(1) object::offsetGet(1)
string(6) "fooBar"
object::offsetGet(2)
int(1)
object::offsetGet(2)
Notice: Indirect modification of overloaded element of object has no effect in %sarray_access_003.php on line 39
object::offsetGet(2)
int(1)
===DONE===
--UEXPECTF--
object::offsetGet(1)
unicode(6) "fooBar" unicode(6) "fooBar"
object::offsetGet(2) object::offsetGet(2)
int(1) int(1)

View file

@ -46,17 +46,6 @@ var_dump($obj[2]);
===DONE=== ===DONE===
--EXPECTF-- --EXPECTF--
object::offsetGet(1) object::offsetGet(1)
string(6) "fooBar"
object::offsetGet(2)
int(1)
object::offsetGet(2)
Notice: Indirect modification of overloaded element of object has no effect in %sarray_access_004.php on line 39
object::offsetGet(2)
int(1)
===DONE===
--UEXPECTF--
object::offsetGet(1)
unicode(6) "fooBar" unicode(6) "fooBar"
object::offsetGet(2) object::offsetGet(2)
int(1) int(1)

View file

@ -54,28 +54,6 @@ var_dump($people[0]['name']);
?> ?>
===DONE=== ===DONE===
--EXPECTF-- --EXPECTF--
string(3) "Joe"
string(6) "JoeFoo"
string(9) "JoeFooBar"
---ArrayOverloading---
array(1) {
["name"]=>
string(3) "Joe"
}
string(3) "Joe"
string(6) "JoeFoo"
array(1) {
["name"]=>
string(6) "JoeFoo"
}
Notice: Indirect modification of overloaded element of Peoples has no effect in %sarray_access_005.php on line 46
string(6) "JoeFoo"
Notice: Indirect modification of overloaded element of Peoples has no effect in %sarray_access_005.php on line 48
string(6) "JoeFoo"
===DONE===
--UEXPECTF--
unicode(3) "Joe" unicode(3) "Joe"
unicode(6) "JoeFoo" unicode(6) "JoeFoo"
unicode(9) "JoeFooBar" unicode(9) "JoeFooBar"

View file

@ -50,22 +50,6 @@ var_dump($people[0]['name']);
?> ?>
===DONE=== ===DONE===
--EXPECTF-- --EXPECTF--
string(3) "Foo"
string(6) "FooBar"
string(9) "FooBarBaz"
===ArrayOverloading===
string(3) "Foo"
Notice: Indirect modification of overloaded element of Peoples has no effect in %sarray_access_008.php on line 40
string(3) "Foo"
Notice: Indirect modification of overloaded element of Peoples has no effect in %sarray_access_008.php on line 42
string(3) "Foo"
Notice: Indirect modification of overloaded element of Peoples has no effect in %sarray_access_008.php on line 44
string(3) "Foo"
===DONE===
--UEXPECTF--
unicode(3) "Foo" unicode(3) "Foo"
unicode(6) "FooBar" unicode(6) "FooBar"
unicode(9) "FooBarBaz" unicode(9) "FooBarBaz"

View file

@ -124,71 +124,6 @@ var_dump($people[0]['name']);
?> ?>
===DONE=== ===DONE===
--EXPECTF-- --EXPECTF--
string(3) "Foo"
string(6) "FooBar"
string(9) "FooBarBaz"
===ArrayOverloading===
ArrayProxy::__construct(0)
object(ArrayProxy)#%d (2) {
["object":"ArrayProxy":private]=>
object(Peoples)#%d (1) {
["person"]=>
array(1) {
[0]=>
array(1) {
["name"]=>
string(3) "Foo"
}
}
}
["element":"ArrayProxy":private]=>
int(0)
}
ArrayProxy::__construct(0)
ArrayProxy::offsetGet(0, name)
string(3) "Foo"
ArrayProxy::__construct(0)
ArrayProxy::offsetSet(0, name, FooBar)
ArrayProxy::__construct(0)
ArrayProxy::offsetGet(0, name)
string(6) "FooBar"
ArrayProxy::__construct(0)
ArrayProxy::offsetSet(0, name, FooBarBar)
ArrayProxy::__construct(0)
ArrayProxy::offsetGet(0, name)
string(9) "FooBarBar"
ArrayProxy::__construct(0)
ArrayProxy::offsetGet(0, name)
ArrayProxy::offsetSet(0, name, FooBarBarBaz)
ArrayProxy::__construct(0)
ArrayProxy::offsetGet(0, name)
string(12) "FooBarBarBaz"
ArrayProxy::__construct(0)
ArrayProxy::offsetUnset(0, name)
ArrayProxy::__construct(0)
object(ArrayProxy)#%d (2) {
["object":"ArrayProxy":private]=>
object(Peoples)#%d (1) {
["person"]=>
array(1) {
[0]=>
array(0) {
}
}
}
["element":"ArrayProxy":private]=>
int(0)
}
ArrayProxy::__construct(0)
ArrayProxy::offsetGet(0, name)
NULL
ArrayProxy::__construct(0)
ArrayProxy::offsetSet(0, name, BlaBla)
ArrayProxy::__construct(0)
ArrayProxy::offsetGet(0, name)
string(6) "BlaBla"
===DONE===
--UEXPECTF--
unicode(3) "Foo" unicode(3) "Foo"
unicode(6) "FooBar" unicode(6) "FooBar"
unicode(9) "FooBarBaz" unicode(9) "FooBarBaz"

View file

@ -98,125 +98,6 @@ var_dump($people[0]['name']);
===DONE=== ===DONE===
<?php exit(0); ?> <?php exit(0); ?>
--EXPECTF-- --EXPECTF--
string(3) "Foo"
string(6) "FooBar"
string(9) "FooBarBaz"
===ArrayOverloading===
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
object(ArrayReferenceProxy)#%d (2) {
["object":"ArrayReferenceProxy":private]=>
object(Peoples)#%d (1) {
["person"]=>
array(1) {
[0]=>
&array(1) {
["name"]=>
string(3) "Foo"
}
}
}
["element":"ArrayReferenceProxy":private]=>
&array(1) {
["name"]=>
string(3) "Foo"
}
}
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetGet(Array, name)
string(3) "Foo"
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetSet(Array, name, FooBar)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetGet(Array, name)
string(6) "FooBar"
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetSet(Array, name, FooBarBar)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetGet(Array, name)
string(9) "FooBarBar"
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetGet(Array, name)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetSet(Array, name, FooBarBarBaz)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetGet(Array, name)
string(12) "FooBarBarBaz"
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetUnset(Array, name)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
object(ArrayReferenceProxy)#%d (2) {
["object":"ArrayReferenceProxy":private]=>
object(Peoples)#%d (1) {
["person"]=>
array(1) {
[0]=>
&array(0) {
}
}
}
["element":"ArrayReferenceProxy":private]=>
&array(0) {
}
}
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetGet(Array, name)
NULL
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetSet(Array, name, BlaBla)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::__construct(Array)
Notice: Array to string conversion in %s on line %d
ArrayReferenceProxy::offsetGet(Array, name)
string(6) "BlaBla"
===DONE===
--UEXPECTF--
unicode(3) "Foo" unicode(3) "Foo"
unicode(6) "FooBar" unicode(6) "FooBar"
unicode(9) "FooBarBaz" unicode(9) "FooBarBaz"

View file

@ -107,85 +107,6 @@ var_dump($people[0]['name']);
===DONE=== ===DONE===
<?php exit(0); ?> <?php exit(0); ?>
--EXPECTF-- --EXPECTF--
string(3) "Foo"
string(6) "FooBar"
string(9) "FooBarBaz"
===ArrayOverloading===
ArrayAccessReferenceProxy::__construct(0)
object(ArrayAccessReferenceProxy)#%d (3) {
["object":"ArrayAccessReferenceProxy":private]=>
object(Peoples)#%d (1) {
["person"]=>
&array(1) {
[0]=>
array(1) {
["name"]=>
string(3) "Foo"
}
}
}
["oarray":"ArrayAccessReferenceProxy":private]=>
&array(1) {
[0]=>
array(1) {
["name"]=>
string(3) "Foo"
}
}
["element":"ArrayAccessReferenceProxy":private]=>
int(0)
}
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetGet(0, name)
string(3) "Foo"
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetSet(0, name, FooBar)
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetGet(0, name)
string(6) "FooBar"
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetSet(0, name, FooBarBar)
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetGet(0, name)
string(9) "FooBarBar"
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetGet(0, name)
ArrayAccessReferenceProxy::offsetSet(0, name, FooBarBarBaz)
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetGet(0, name)
string(12) "FooBarBarBaz"
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetUnset(0, name)
ArrayAccessReferenceProxy::__construct(0)
object(ArrayAccessReferenceProxy)#%d (3) {
["object":"ArrayAccessReferenceProxy":private]=>
object(Peoples)#%d (1) {
["person"]=>
&array(1) {
[0]=>
array(0) {
}
}
}
["oarray":"ArrayAccessReferenceProxy":private]=>
&array(1) {
[0]=>
array(0) {
}
}
["element":"ArrayAccessReferenceProxy":private]=>
int(0)
}
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetGet(0, name)
NULL
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetSet(0, name, BlaBla)
ArrayAccessReferenceProxy::__construct(0)
ArrayAccessReferenceProxy::offsetGet(0, name)
string(6) "BlaBla"
===DONE===
--UEXPECTF--
unicode(3) "Foo" unicode(3) "Foo"
unicode(6) "FooBar" unicode(6) "FooBar"
unicode(9) "FooBarBaz" unicode(9) "FooBarBaz"

View file

@ -20,13 +20,6 @@ var_dump(get_class_methods('autoload_root'));
===DONE=== ===DONE===
--EXPECT-- --EXPECT--
__autoload(autoload_root) __autoload(autoload_root)
array(1) {
[0]=>
string(12) "testFunction"
}
===DONE===
--UEXPECT--
__autoload(autoload_root)
array(1) { array(1) {
[0]=> [0]=>
unicode(12) "testFunction" unicode(12) "testFunction"

View file

@ -11,5 +11,5 @@ Ensure instanceof does not trigger autoload.
$a = new stdClass; $a = new stdClass;
var_dump($a instanceof UndefC); var_dump($a instanceof UndefC);
?> ?>
--EXPECTF-- --EXPECT--
bool(false) bool(false)

View file

@ -22,5 +22,5 @@ Ensure catch blocks for unknown exception types do not trigger autoload.
echo "In Exception catch block. Autoload should not have been triggered.\n"; echo "In Exception catch block. Autoload should not have been triggered.\n";
} }
?> ?>
--EXPECTF-- --EXPECT--
In Exception catch block. Autoload should not have been triggered. In Exception catch block. Autoload should not have been triggered.

View file

@ -16,5 +16,3 @@ Ensure type hints for unknown types do not trigger autoload.
--EXPECTF-- --EXPECTF--
Catchable fatal error: Argument 1 passed to f() must be an instance of UndefClass, instance of stdClass given, called in %s Catchable fatal error: Argument 1 passed to f() must be an instance of UndefClass, instance of stdClass given, called in %s

View file

@ -13,11 +13,6 @@ Ensure implements does trigger autoload.
} }
?> ?>
--EXPECTF-- --EXPECTF--
In autoload: string(6) "UndefI"
Fatal error: Interface 'UndefI' not found in %s on line %d
--UEXPECTF--
In autoload: unicode(6) "UndefI" In autoload: unicode(6) "UndefI"
Fatal error: Interface 'UndefI' not found in %s on line %d Fatal error: Interface 'UndefI' not found in %s on line %d

View file

@ -13,11 +13,6 @@ Ensure extends does trigger autoload.
} }
?> ?>
--EXPECTF-- --EXPECTF--
In autoload: string(9) "UndefBase"
Fatal error: Class 'UndefBase' not found in %s on line %d
--UEXPECTF--
In autoload: unicode(9) "UndefBase" In autoload: unicode(9) "UndefBase"
Fatal error: Class 'UndefBase' not found in %s on line %d Fatal error: Class 'UndefBase' not found in %s on line %d

View file

@ -10,11 +10,6 @@ Ensure callback methods in unknown classes trigger autoload.
call_user_func("UndefC::test"); call_user_func("UndefC::test");
?> ?>
--EXPECTF-- --EXPECTF--
In autoload: string(6) "UndefC"
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'UndefC' not found in %s on line %d
--UEXPECTF--
In autoload: unicode(6) "UndefC" In autoload: unicode(6) "UndefC"
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'UndefC' not found in %s on line %d Warning: call_user_func() expects parameter 1 to be a valid callback, class 'UndefC' not found in %s on line %d

View file

@ -17,9 +17,6 @@ Ensure the ReflectionClass constructor triggers autoload.
echo $e->getMessage(); echo $e->getMessage();
} }
?> ?>
--EXPECTF-- --EXPECT--
In autoload: string(6) "UndefC"
Class UndefC does not exist
--UEXPECTF--
In autoload: unicode(6) "UndefC" In autoload: unicode(6) "UndefC"
Class UndefC does not exist Class UndefC does not exist

View file

@ -17,9 +17,6 @@ Ensure the ReflectionMethod constructor triggers autoload.
echo $e->getMessage(); echo $e->getMessage();
} }
?> ?>
--EXPECTF-- --EXPECT--
In autoload: string(6) "UndefC"
Class UndefC does not exist
--UEXPECTF--
In autoload: unicode(6) "UndefC" In autoload: unicode(6) "UndefC"
Class UndefC does not exist Class UndefC does not exist

View file

@ -17,9 +17,6 @@ Ensure the ReflectionProperty constructor triggers autoload.
echo $e->getMessage(); echo $e->getMessage();
} }
?> ?>
--EXPECTF-- --EXPECT--
In autoload: string(6) "UndefC"
Class UndefC does not exist
--UEXPECTF--
In autoload: unicode(6) "UndefC" In autoload: unicode(6) "UndefC"
Class UndefC does not exist Class UndefC does not exist

View file

@ -18,9 +18,6 @@ Ensure ReflectionClass::getProperty() triggers autoload
echo $e->getMessage(); echo $e->getMessage();
} }
?> ?>
--EXPECTF-- --EXPECT--
In autoload: string(6) "undefc"
Class undefc does not exist
--UEXPECTF--
In autoload: unicode(6) "undefc" In autoload: unicode(6) "undefc"
Class undefc does not exist Class undefc does not exist

View file

@ -18,9 +18,6 @@ Ensure ReflectionClass::implementsInterface triggers autoload.
echo $e->getMessage(); echo $e->getMessage();
} }
?> ?>
--EXPECTF-- --EXPECT--
In autoload: string(6) "UndefI"
Interface UndefI does not exist
--UEXPECTF--
In autoload: unicode(6) "UndefI" In autoload: unicode(6) "UndefI"
Interface UndefI does not exist Interface UndefI does not exist

View file

@ -19,7 +19,7 @@ Ensure __autoload() allows for recursive calls if the class name differs.
var_dump(class_exists('UndefinedClass0')); var_dump(class_exists('UndefinedClass0'));
?> ?>
--EXPECTF-- --EXPECT--
IN: __autoload(UndefinedClass0) IN: __autoload(UndefinedClass0)
IN: __autoload(UndefinedClass1) IN: __autoload(UndefinedClass1)
IN: __autoload(UndefinedClass2) IN: __autoload(UndefinedClass2)
@ -45,4 +45,3 @@ OUT: __autoload(UndefinedClass2)
OUT: __autoload(UndefinedClass1) OUT: __autoload(UndefinedClass1)
OUT: __autoload(UndefinedClass0) OUT: __autoload(UndefinedClass0)
bool(false) bool(false)

View file

@ -10,5 +10,5 @@ Ensure __autoload() recursion is guarded for multiple lookups of same class usin
class_exists("unDefinedClass"); class_exists("unDefinedClass");
?> ?>
--EXPECTF-- --EXPECT--
__autoload unDefinedClass __autoload unDefinedClass

View file

@ -11,13 +11,7 @@ Ensure __autoload() is triggered during unserialization.
?> ?>
--EXPECTF-- --EXPECTF--
in autoload: C in autoload: C
object(__PHP_Incomplete_Class)#%d (1) {
["__PHP_Incomplete_Class_Name"]=>
string(1) "C"
}
--UEXPECTF--
in autoload: C
object(__PHP_Incomplete_Class)#%d (1) { object(__PHP_Incomplete_Class)#%d (1) {
[u"__PHP_Incomplete_Class_Name"]=> [u"__PHP_Incomplete_Class_Name"]=>
unicode(1) "C" unicode(1) "C"
} }

View file

@ -19,7 +19,4 @@ var_dump(str_replace("\0", '\0', $data));
?> ?>
--EXPECTF-- --EXPECTF--
Notice: serialize(): "no_such" returned as member variable from __sleep() but does not exist in %s on line %d Notice: serialize(): "no_such" returned as member variable from __sleep() but does not exist in %s on line %d
string(130) "O:3:"foo":4:{S:12:"\0foo\0private";S:7:"private";S:12:"\0*\0protected";S:9:"protected";S:6:"public";S:6:"public";S:7:"no_such";N;}"
--UEXPECTF--
Notice: serialize(): "no_such" returned as member variable from __sleep() but does not exist in %s on line %d
unicode(130) "O:3:"foo":4:{U:12:"\0foo\0private";U:7:"private";U:12:"\0*\0protected";U:9:"protected";U:6:"public";U:6:"public";U:7:"no_such";N;}" unicode(130) "O:3:"foo":4:{U:12:"\0foo\0private";U:7:"private";U:12:"\0*\0protected";U:9:"protected";U:6:"public";U:6:"public";U:7:"no_such";N;}"

View file

@ -16,4 +16,4 @@ $test = new testClass;
?> ?>
--EXPECTF-- --EXPECTF--
Fatal error: Cannot redefine class constant testClass::TEST_CONST in %s on line 5 Fatal error: Cannot redefine class constant testClass::TEST_CONST in %s on line 5

View file

@ -9,6 +9,6 @@ echo get_class($obj)."\n";
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
stdClass stdClass
Done Done

View file

@ -23,26 +23,6 @@ echo "Done\n";
?> ?>
--EXPECT-- --EXPECT--
Object Object
object(test)#1 (3) {
["p1"]=>
int(1)
["p2"]=>
string(1) "A"
["p3"]=>
string(1) "B"
}
Clown
object(test)#2 (3) {
["p1"]=>
int(1)
["p2"]=>
string(1) "A"
["p3"]=>
string(1) "C"
}
Done
--UEXPECT--
Object
object(test)#1 (3) { object(test)#1 (3) {
[u"p1"]=> [u"p1"]=>
int(1) int(1)

View file

@ -25,26 +25,6 @@ echo "Done\n";
?> ?>
--EXPECT-- --EXPECT--
Object Object
object(test)#1 (3) {
["p1"]=>
int(1)
["p2"]=>
string(1) "A"
["p3"]=>
string(1) "B"
}
Clown
object(test)#2 (3) {
["p1"]=>
int(1)
["p2"]=>
string(1) "A"
["p3"]=>
string(1) "C"
}
Done
--UEXPECT--
Object
object(test)#1 (3) { object(test)#1 (3) {
[u"p1"]=> [u"p1"]=>
int(1) int(1)

View file

@ -39,49 +39,6 @@ echo "Done\n";
?> ?>
--EXPECT-- --EXPECT--
Original Original
object(test)#1 (2) {
["b"]=>
array(2) {
[0]=>
int(3)
[1]=>
int(4)
}
["a"]=>
array(2) {
[0]=>
int(1)
[1]=>
int(2)
}
}
Clone
object(test)#2 (2) {
["b"]=>
array(2) {
[0]=>
int(3)
[1]=>
int(4)
}
["a"]=>
array(2) {
[0]=>
int(1)
[1]=>
int(2)
}
}
Modify
object(test)#2 (2) {
["b"]=>
int(6)
["a"]=>
int(5)
}
Done
--UEXPECT--
Original
object(test)#1 (2) { object(test)#1 (2) {
[u"b"]=> [u"b"]=>
array(2) { array(2) {

View file

@ -63,36 +63,6 @@ Notice: Undefined variable: undef in %s on line 5
Attempt to access various kinds of class constants: Attempt to access various kinds of class constants:
Notice: Use of undefined constant UNDEFINED - assumed 'UNDEFINED' in %s on line %d
string(9) "UNDEFINED"
int(1)
float(1.5)
int(1)
float(1.5)
int(-1)
float(-1.5)
int(15)
string(%d) "%s"
string(1) "C"
string(1) "C"
string(0) ""
int(1234)
int(456)
NULL
string(6) "hello1"
string(6) "hello2"
string(6) "hello2"
string(6) "hello2"
Expecting fatal error:
Fatal error: Undefined class constant 'c19' in %s on line 53
--UEXPECTF--
Notice: Undefined variable: undef in %s on line 5
Attempt to access various kinds of class constants:
Notice: Use of undefined constant UNDEFINED - assumed 'UNDEFINED' in %s on line %d Notice: Use of undefined constant UNDEFINED - assumed 'UNDEFINED' in %s on line %d
unicode(9) "UNDEFINED" unicode(9) "UNDEFINED"
int(1) int(1)
@ -116,4 +86,4 @@ unicode(6) "hello2"
Expecting fatal error: Expecting fatal error:
Fatal error: Undefined class constant 'c19' in %s on line 53 Fatal error: Undefined class constant 'c19' in %s on line 53

View file

@ -18,19 +18,6 @@ Basic class support - defining and reading a class constant.
var_dump($myInstance) var_dump($myInstance)
?> ?>
--EXPECTF-- --EXPECTF--
Read class constant.
string(5) "hello"
Fail to read class constant from instance.
Notice: Undefined property: aclass::$myConst in %s on line 12
NULL
Class constant not visible in object var_dump.
object(aclass)#%d (0) {
}
--UEXPECTF--
Read class constant. Read class constant.
unicode(5) "hello" unicode(5) "hello"
@ -41,4 +28,4 @@ NULL
Class constant not visible in object var_dump. Class constant not visible in object var_dump.
object(aclass)#%d (0) { object(aclass)#%d (0) {
} }

View file

@ -21,13 +21,8 @@ Ensure class properties and constants can be defined in terms of constants that
var_dump(B::ca); var_dump(B::ca);
var_dump(B::cc); var_dump(B::cc);
?> ?>
--EXPECTF-- --EXPECT--
string(12) "hello from A"
string(12) "hello from C"
string(12) "hello from A"
string(12) "hello from C"
--UEXPECTF--
unicode(12) "hello from A" unicode(12) "hello from A"
unicode(12) "hello from C" unicode(12) "hello from C"
unicode(12) "hello from A" unicode(12) "hello from A"
unicode(12) "hello from C" unicode(12) "hello from C"

View file

@ -43,61 +43,6 @@ Test properties with array default values using class constants as keys and valu
?> ?>
--EXPECTF-- --EXPECTF--
Static properties:
array(1) {
["key"]=>
string(5) "value"
}
array(1) {
["key"]=>
string(5) "value"
}
array(1) {
["key"]=>
string(5) "value"
}
array(1) {
["key"]=>
string(5) "value"
}
array(1) {
["key"]=>
string(5) "value"
}
Instance properties:
object(X)#%d (1) {
["a_x"]=>
array(1) {
["key"]=>
string(5) "value"
}
}
object(B)#%d (1) {
["a_b"]=>
array(1) {
["key"]=>
string(5) "value"
}
}
object(C)#%d (3) {
["a_c_parent"]=>
array(1) {
["key"]=>
string(5) "value"
}
["a_c_self"]=>
array(1) {
["key"]=>
string(5) "value"
}
["a_b"]=>
array(1) {
["key"]=>
string(5) "value"
}
}
--UEXPECTF--
Static properties: Static properties:
array(1) { array(1) {
[u"key"]=> [u"key"]=>
@ -151,4 +96,4 @@ object(C)#%d (3) {
[u"key"]=> [u"key"]=>
unicode(5) "value" unicode(5) "value"
} }
} }

View file

@ -10,9 +10,6 @@ Test constants with default values based on other constants.
} }
var_dump(C::CONST_1, C::CONST_2); var_dump(C::CONST_1, C::CONST_2);
?> ?>
--EXPECTF-- --EXPECT--
string(5) "hello"
string(5) "hello"
--UEXPECTF--
unicode(5) "hello" unicode(5) "hello"
unicode(5) "hello" unicode(5) "hello"

View file

@ -19,29 +19,7 @@ Ensure class constants are not evaluated when a class is looked up to resolve in
var_dump(C::X, C::$a, D::X, D::$a, E::X, E::$a); var_dump(C::X, C::$a, D::X, D::$a, E::X, E::$a);
?> ?>
--EXPECTF-- --EXPECT--
string(5) "hello"
array(2) {
["nasty"]=>
string(4) "test"
["hello"]=>
string(5) "nasty"
}
string(5) "hello"
array(2) {
["nasty"]=>
string(4) "test"
["hello"]=>
string(5) "nasty"
}
string(5) "hello"
array(2) {
["nasty"]=>
string(4) "test"
["hello"]=>
string(5) "nasty"
}
--UEXPECTF--
unicode(5) "hello" unicode(5) "hello"
array(2) { array(2) {
[u"nasty"]=> [u"nasty"]=>
@ -62,4 +40,4 @@ array(2) {
unicode(4) "test" unicode(4) "test"
[u"hello"]=> [u"hello"]=>
unicode(5) "nasty" unicode(5) "nasty"
} }

View file

@ -31,7 +31,7 @@ $t = new late();
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
early::early early::early
early::early early::early
early::__destruct early::__destruct

View file

@ -54,7 +54,7 @@ unset($t);
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
Testing class base Testing class base
base::__construct base::__construct
base Object base Object

View file

@ -17,6 +17,6 @@ class derived extends base {
$obj = new derived(); $obj = new derived();
$obj->base(); $obj->base();
?> ?>
--EXPECTF-- --EXPECT--
base::base base::base
derived::base derived::base

View file

@ -51,7 +51,7 @@ catch(FatalException $e)
?> ?>
===DONE=== ===DONE===
--EXPECTF-- --EXPECT--
FailClass::__destruct FailClass::__destruct
Caught: FailClass Caught: FailClass
FatalException::__construct FatalException::__construct

View file

@ -26,4 +26,4 @@ echo 'Done';
--EXPECT-- --EXPECT--
base::__construct base::__construct
base::__destruct base::__destruct
Done Done

View file

@ -23,6 +23,6 @@ unset($obj); // Derived::__destruct is being called not Base::__destruct
?> ?>
===DONE=== ===DONE===
--EXPECTF-- --EXPECT--
Derived::__destruct Derived::__destruct
===DONE=== ===DONE===

View file

@ -17,4 +17,3 @@ echo "Done\n";
?> ?>
--EXPECTF-- --EXPECTF--
Fatal error: Call to private test::__destruct() from context '' in %sfactory_and_singleton_006.php on line %d Fatal error: Call to private test::__destruct() from context '' in %sfactory_and_singleton_006.php on line %d

View file

@ -25,7 +25,7 @@ $t2->show();
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
Call to function first::show() Call to function first::show()
Call to function second::show() Call to function second::show()
Done Done

View file

@ -58,19 +58,6 @@ $cm= new Child_mx2();
?> ?>
--EXPECT-- --EXPECT--
### PHP 4 style ### PHP 4 style
string(17) "Child constructor"
string(16) "Base constructor"
### PHP 5 style
string(17) "Child constructor"
string(16) "Base constructor"
### Mixed style 1
string(17) "Child constructor"
string(16) "Base constructor"
### Mixed style 2
string(17) "Child constructor"
string(16) "Base constructor"
--UEXPECT--
### PHP 4 style
unicode(17) "Child constructor" unicode(17) "Child constructor"
unicode(16) "Base constructor" unicode(16) "Base constructor"
### PHP 5 style ### PHP 5 style

View file

@ -40,7 +40,7 @@ Check for inherited old-style constructor.
echo "Is C::C() callable?\n"; echo "Is C::C() callable?\n";
var_dump(is_callable(array($c, "C"))); var_dump(is_callable(array($c, "C")));
?> ?>
--EXPECTF-- --EXPECT--
About to construct new B: About to construct new B:
In A::A In A::A
Is B::B() callable? Is B::B() callable?

View file

@ -14,4 +14,4 @@ echo "Done\n";
?> ?>
--EXPECTF-- --EXPECTF--
Fatal error: Cannot inherit previously-inherited constant FOO from interface I1 in %s on line 6 Fatal error: Cannot inherit previously-inherited constant FOO from interface I1 in %s on line 6

View file

@ -14,4 +14,4 @@ echo "Done\n";
?> ?>
--EXPECTF-- --EXPECTF--
Fatal error: Cannot inherit previously-inherited constant FOO from interface I in %s on line 6 Fatal error: Cannot inherit previously-inherited constant FOO from interface I in %s on line 6

View file

@ -14,5 +14,5 @@ class C implements IA, IB {
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
Done Done

View file

@ -155,7 +155,7 @@ echo $t->test('if_e');
?> ?>
===DONE=== ===DONE===
--EXPECTF-- --EXPECT--
class_a class_a
is_a(class_a, if_a) yes is_a(class_a, if_a) yes
is_a(class_a, if_b) no is_a(class_a, if_b) no

View file

@ -61,7 +61,7 @@ $t = new derived_d();
$t->test(); $t->test();
?> ?>
--EXPECTF-- --EXPECT--
is_a(base, base) = yes is_a(base, base) = yes
is_a(base, derived_a) = no is_a(base, derived_a) = no
is_a(base, derived_b) = no is_a(base, derived_b) = no

View file

@ -24,4 +24,3 @@ $foo->bar();
?> ?>
--EXPECT-- --EXPECT--
foo foo

View file

@ -21,4 +21,4 @@ $foo->bar();
?> ?>
--EXPECT-- --EXPECT--
int(2) int(2)

View file

@ -23,4 +23,3 @@ echo $foo->getMessage() . "\n";
?> ?>
--EXPECT-- --EXPECT--
foo foo

View file

@ -53,7 +53,7 @@ foreach($obj as $v => $w) {
print "Done\n"; print "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
1st try 1st try
2nd try 2nd try
object:max=>3 object:max=>3

View file

@ -84,4 +84,4 @@ foreach ($array as $property => $value) {
0: foo 0: foo
1: bar 1: bar
2: baz 2: baz
===DONE=== ===DONE===

View file

@ -30,7 +30,7 @@ In $a->$b[Y](), $b[Y] represents a method name on $a. But in $a->X[Y](), $a->X[Y
$c->functions[0](5, 6); $c->functions[0](5, 6);
$c->functions[1][2][3][4](7, 8); $c->functions[1][2][3][4](7, 8);
?> ?>
--EXPECTF-- --EXPECT--
Called C::foo(1, 2) Called C::foo(1, 2)
Called C::foo(3, 4) Called C::foo(3, 4)
Called global foo(5, 6) Called global foo(5, 6)

View file

@ -32,24 +32,6 @@ error_reporting=E_ALL | E_DEPRECATED
Deprecated: Assigning the return value of new by reference is deprecated in %s on line 23 Deprecated: Assigning the return value of new by reference is deprecated in %s on line 23
Compile-time strict error message should precede this. Compile-time strict error message should precede this.
$f initially points to the first object: $f initially points to the first object:
object(Inc)#%d (1) {
["id"]=>
int(1)
}
Assigning new object directly to $k affects $f:
object(Inc)#%d (1) {
["id"]=>
int(2)
}
Assigning new object by ref to $k removes it from $f's reference set, so $f is unchanged:
object(Inc)#%d (1) {
["id"]=>
int(2)
}
--UEXPECTF--
Deprecated: Assigning the return value of new by reference is deprecated in %s on line 23
Compile-time strict error message should precede this.
$f initially points to the first object:
object(Inc)#%d (1) { object(Inc)#%d (1) {
[u"id"]=> [u"id"]=>
int(1) int(1)

View file

@ -32,4 +32,4 @@ echo "Done\n"; // shouldn't be displayed
--EXPECTF-- --EXPECTF--
Call show() Call show()
Fatal error: Call to private method pass::show() from context 'fail' in %s on line %d Fatal error: Call to private method pass::show() from context 'fail' in %s on line %d

View file

@ -34,7 +34,7 @@ class fail extends third {
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
Call show() Call show()
Call show() Call show()
Call show() Call show()

View file

@ -35,7 +35,7 @@ $t3->do_show();
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
Call show() Call show()
Call show() Call show()
Done Done

View file

@ -24,7 +24,7 @@ Foo::priv();
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
Bar::priv() Bar::priv()
Foo::priv() Foo::priv()
Done Done

View file

@ -25,7 +25,7 @@ $obj->priv();
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
Bar::priv() Bar::priv()
Foo::priv() Foo::priv()
Done Done

View file

@ -53,7 +53,7 @@ unset($t);
echo "Done\n"; echo "Done\n";
?> ?>
--EXPECTF-- --EXPECT--
derived::__construct(begin) derived::__construct(begin)
base::__construct(begin) base::__construct(begin)
base::test base::test

View file

@ -27,7 +27,7 @@ Redeclare inherited private static property as private.
$b->showA(); $b->showA();
$b->showB(); $b->showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p (static) A::p (static)
A::p (static) A::p (static)
B::p B::p

View file

@ -26,7 +26,7 @@ Redeclare inherited private static property as private static.
B::showA(); B::showA();
B::showB(); B::showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p (static) A::p (static)
A::p (static) A::p (static)
B::p (static) B::p (static)

View file

@ -27,7 +27,7 @@ Redeclare inherited private static property as protected.
$b->showA(); $b->showA();
$b->showB(); $b->showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p (static) A::p (static)
A::p (static) A::p (static)
B::p B::p

View file

@ -26,7 +26,7 @@ Redeclare inherited private static property as protected static.
B::showA(); B::showA();
B::showB(); B::showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p (static) A::p (static)
A::p (static) A::p (static)
B::p (static) B::p (static)

View file

@ -27,7 +27,7 @@ Redeclare inherited private static property as public.
$b->showA(); $b->showA();
$b->showB(); $b->showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p (static) A::p (static)
A::p (static) A::p (static)
B::p B::p

View file

@ -26,7 +26,7 @@ Redeclare inherited private static property as public static.
B::showA(); B::showA();
B::showB(); B::showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p (static) A::p (static)
A::p (static) A::p (static)
B::p (static) B::p (static)

View file

@ -28,7 +28,7 @@ Redeclare inherited private property as private.
$b->showA(); $b->showA();
$b->showB(); $b->showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p A::p
A::p A::p
B::p B::p

View file

@ -28,7 +28,7 @@ Redeclare inherited private property as private static.
$b->showA(); $b->showA();
B::showB(); B::showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p A::p
A::p A::p
B::p (static) B::p (static)

View file

@ -28,7 +28,7 @@ Redeclare inherited private property as protected.
$b->showA(); $b->showA();
$b->showB(); $b->showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p A::p
A::p A::p
B::p B::p

View file

@ -28,7 +28,7 @@ Redeclare inherited private property as protected static.
$b->showA(); $b->showA();
B::showB(); B::showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p A::p
A::p A::p
B::p (static) B::p (static)

View file

@ -28,7 +28,7 @@ Redeclare inherited private property as public.
$b->showA(); $b->showA();
$b->showB(); $b->showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p A::p
A::p A::p
B::p B::p

View file

@ -28,7 +28,7 @@ Redeclare inherited private property as public static.
$b->showA(); $b->showA();
B::showB(); B::showB();
?> ?>
--EXPECTF-- --EXPECT--
A::p A::p
A::p A::p
B::p (static) B::p (static)

View file

@ -30,4 +30,3 @@ Redeclare inherited protected static property as private.
--EXPECTF-- --EXPECTF--
Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 18 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 18

View file

@ -29,4 +29,3 @@ Redeclare inherited protected static property as private static.
--EXPECTF-- --EXPECTF--
Fatal error: Access level to B::$p must be protected (as in class A) or weaker in %s on line 18 Fatal error: Access level to B::$p must be protected (as in class A) or weaker in %s on line 18

View file

@ -30,4 +30,3 @@ Redeclare inherited protected static property as protected.
--EXPECTF-- --EXPECTF--
Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 18 Fatal error: Cannot redeclare static A::$p as non static B::$p in %s on line 18

Some files were not shown because too many files have changed in this diff Show more