I am trying to get a file from a remote sftp server in a php script. I'm using the libssh2 library anI have been able to 1) open a connection to the ssh server and 2) authenticate properly. I'm hitting a wall on creating an sftp resource for use with the ssh2_sftp* functions and wrapper. The following line leaves $sftp as NULL:
$stfp = ssh2_sftp($ftp_conn);
Php error log shows no errors. Ssh server logs show successful login, authentication, and log the sftp subsytem being initialized. Any ideas on where to look next?