diff --git a/src/Peachpie.Runtime/Reflection/PhpStackTrace.cs b/src/Peachpie.Runtime/Reflection/PhpStackTrace.cs index 2f27873c6c..e51850f4ed 100644 --- a/src/Peachpie.Runtime/Reflection/PhpStackTrace.cs +++ b/src/Peachpie.Runtime/Reflection/PhpStackTrace.cs @@ -341,7 +341,8 @@ public string TypeName if (tinfo.IsPublic && tinfo.IsAbstract) // => public static { - if (tinfo.Assembly.IsDefined(typeof(PhpExtensionAttribute))) + var extensionAttrs = Attribute.GetCustomAttributes(tinfo.Assembly, typeof(PhpExtensionAttribute)); + if (extensionAttrs != null && extensionAttrs.Length != 0) { // library function return null;