mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 18:25:13 +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) {
|
switch (true) {
|
||||||
case $mode & self::SOURCE_CALLBACK;
|
case $mode & self::SOURCE_CALLBACK;
|
||||||
if (!is_callable($data)) {
|
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;
|
$callback = $data;
|
||||||
// do nothing
|
// do nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user