mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
fcd18757b2
Fix early inheritance Co-authored-by: Joe Watkins <krakjoe@php.net>
17 lines
197 B
PHP
17 lines
197 B
PHP
--TEST--
|
|
Internal class variance
|
|
--EXTENSIONS--
|
|
zend_test
|
|
--FILE--
|
|
<?php
|
|
$test = new _ZendTestChildClass;
|
|
|
|
try {
|
|
$test->returnsThrowable();
|
|
} catch (\Error) {
|
|
echo "OK";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
OK
|