2026/06/22

From WoozleCodes
< 2026 | 06
Jump to navigation Jump to search
Monday, June 22, 2026 (#173)
Sunday Monday Tuesday

References

Main Work

...after much reorganizing...

It turns out there's no ssh2_sftp* command for listing a directory, and you have to do this weird-ass thing where PHP converts the resource into a string, when you insert it in a wrapper-based URL -- like this:

#
        $rConn = $this->RNative;
        $ups = "ssh2.sftp://$rConn$ps";
        return dir($ups);

The value of $ups, in this case, is ssh2.sftp://Resource id #251/home/woozle/test.

...and now this is where I get the crash-coredump. (I don't remember exactly where it popped up before; just that it was inside the SFTP stuff, not the more general SSH2 stuff.)

...and I kinda feel like it's no wonder that it crashes when it's such a klugey mess.

So I guess tomorrow I get back to trying to surgically extract just the parts of #phpseclib that I need, and put them in wrappers that can be drop-in replacements for IO\Aspect\Connx\Server\native\SSH2 and IO\Aspect\Connx\Server\native\SFTP.