[Freeswitch-svn] [commit] r7969 - freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_sock

Freeswitch SVN intralanman at freeswitch.org
Thu Mar 27 09:48:18 EDT 2008


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);



More information about the Freeswitch-svn mailing list