Skip to content

Commit a37c926

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents f319419 + bd2a00a commit a37c926

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Zend/tests/bug77652.inc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
return [
3+
'I' => function() {
4+
return new class implements I {};
5+
},
6+
];

Zend/tests/bug77652.phpt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
Bug #77652: Anonymous classes can lose their interface information
3+
--FILE--
4+
<?php
5+
6+
interface I {}
7+
require __DIR__ . '/bug77652.inc';
8+
$data = require __DIR__ . '/bug77652.inc';
9+
print_r(class_implements($data['I']()));
10+
11+
?>
12+
--EXPECT--
13+
Array
14+
(
15+
[I] => I
16+
)

0 commit comments

Comments
 (0)