[Freeswitch-svn] [commit] r7969 - freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_sock
Author: intralanman Date: Thu Mar 27 09:48:17 2008 New Revision: 7969 Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_sock/fs_sock.php Log: allow a null sock in send_command Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_sock/fs_sock.php ============================================================================== --- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_sock/fs_sock.php (original) +++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_sock/fs_sock.php Thu Mar 27 09:48:17 2008 @@ -255,7 +255,7 @@ * @param string $cmd command string to send to socket excluding any \r or \n * @return boolean */ - public function send_command($cmd, $sock) { + public function send_command($cmd, $sock=null) { $sock = is_null($sock) ? $this -> sock : $sock; $this -> debug('command is ' . $cmd); $cmd_split = split(' ', $cmd);
participants (1)
-
Freeswitch SVN