You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey
I am using this Library for Sftp and calling the function scanDirectory to get a list of files and directories and i found this bug when the directory doesn't contain subDirectories or it's empty
its giving this error: array_merge(): Argument #2 is not an array
because the function is recursive and can return false (not only array) and we use the function result as array in the line:
Can you please have a look at this issue, And let me know if it can be fixed.
Thanks
The text was updated successfully, but these errors were encountered:
AyhamAlzoubi
changed the title
Error while calling scanDirectory() with recurcive true
Error while calling scanDirectory() with recursive true
Jul 9, 2014
@AyhamAlzoubi Thanks for reporting. But i cant reproduce that error :(
If you could provide a folder structure that will trigger that bug, please show us.
By your error description such a change i made should fix that error.
Hey
I am using this Library for Sftp and calling the function scanDirectory to get a list of files and directories and i found this bug when the directory doesn't contain subDirectories or it's empty
while executing the function:
https://github.com/Herzult/php-ssh/blob/master/src/Ssh/Sftp.php#L267
its giving this error:
array_merge(): Argument #2 is not an array
because the function is recursive and can return
false
(not only array) and we use the function result as array in the line:Can you please have a look at this issue, And let me know if it can be fixed.
Thanks
The text was updated successfully, but these errors were encountered: