note 114815 added to function.ssh2-shell

From: Date: Tue, 08 Apr 2014 20:37:57 +0000
Subject: note 114815 added to function.ssh2-shell
Groups: php.notes 
Request: Send a blank email to php-notes+get-199230@lists.php.net to get a copy of this message
Keep in mind that when using ssh2_shell, the remote system's EOL may not be the same as PHP's EOL, so it may not be safe to use PHP_EOL. The native EOL for Windows is \r\n, while Unix is typically merely \n, and classic Mac for some reason is \r. If you're running PHP on Windows (\r\n) and sshing into a Unix box (\n) you're going to end up sending extra lines. My experience so far is that it just acts as though you typed nothing, which may cause issues with password prompts. Oh, and \n\r? Don't do that. Nobody does that. ---- Server IP: 192.41.45.150 Probable Submitter: 96.233.109.34 ---- Manual Page -- http://php.net/manual/en/function.ssh2-shell.php Edit -- https://master.php.net/note/edit/114815 Del: integrated -- https://master.php.net/note/delete/114815/integrated Del: useless -- https://master.php.net/note/delete/114815/useless Del: bad code -- https://master.php.net/note/delete/114815/bad+code Del: spam -- https://master.php.net/note/delete/114815/spam Del: non-english -- https://master.php.net/note/delete/114815/non-english Del: in docs -- https://master.php.net/note/delete/114815/in+docs Del: other reasons-- https://master.php.net/note/delete/114815 Reject -- https://master.php.net/note/reject/114815 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199230) next »