mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
We were already handling NULL as a case, but seem to have forgotten to pass the ZEND_FETCH_CLASS_EXCEPTION flag. Also make "is not a trait" error recoverable, there's no reason why it can't be. Fixes GH-17959 Closes GH-17960
16 lines
208 B
PHP
16 lines
208 B
PHP
--TEST--
|
|
Trying to use an undefined trait
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
use abc;
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Trait "abc" not found in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|