mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-31 21:21:55 +00:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
22e2fdbca6
@ -42,6 +42,10 @@ abstract class XML
|
|||||||
*/
|
*/
|
||||||
public static function load($key, $password = '')
|
public static function load($key, $password = '')
|
||||||
{
|
{
|
||||||
|
if (!extension_loaded('dom')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!Strings::is_stringable($key)) {
|
if (!Strings::is_stringable($key)) {
|
||||||
throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key));
|
throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user