mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-04 20:47:54 +00:00
replace throw with user_error()
This commit is contained in:
parent
b5e80bc176
commit
26086789ef
@ -1808,7 +1808,7 @@ class SFTP extends SSH2
|
||||
switch (true) {
|
||||
case $mode & self::SOURCE_CALLBACK;
|
||||
if (!is_callable($data)) {
|
||||
throw new Exception('if you specify SOURCE_CALLBACK then $data should be callable');
|
||||
user_error("\$data should be is_callable() if you specify SOURCE_CALLBACK flag");
|
||||
}
|
||||
$callback = $data;
|
||||
// do nothing
|
||||
|
Loading…
Reference in New Issue
Block a user