mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
CrashDump: phpversion() could return false for a loaded extension
if the extension wrote NULL into the zend_module_entry->version field, phpversion() will return false.
This commit is contained in:
parent
5b868e6d5e
commit
77a74d84e2
@ -164,8 +164,7 @@ class CrashDump{
|
||||
$extensions = [];
|
||||
foreach(get_loaded_extensions() as $ext){
|
||||
$version = phpversion($ext);
|
||||
if($version === false) throw new AssumptionFailedError();
|
||||
$extensions[$ext] = $version;
|
||||
$extensions[$ext] = $version !== false ? $version : "**UNKNOWN**";
|
||||
}
|
||||
$this->data->extensions = $extensions;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user