diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/backend.php | 5 | ||||
-rw-r--r-- | bin/svdrp.php | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/bin/backend.php b/bin/backend.php index 4de6601..b69fb0d 100644 --- a/bin/backend.php +++ b/bin/backend.php @@ -9,8 +9,9 @@ if (function_exists('dl')) dl(zlib.so); } - -ob_start("ob_gzhandler"); +if(!ob_start("ob_gzhandler")) + ob_start(); +ob_start("ob_gzhandler"); header('Content-Type: application/json; charset: utf-8'); header('Content-Encoding: gzip'); diff --git a/bin/svdrp.php b/bin/svdrp.php index da83b49..386ecf9 100644 --- a/bin/svdrp.php +++ b/bin/svdrp.php @@ -29,7 +29,7 @@ class SVDRP if($this->handle) Disconnect(); $errno = 0; $errstr = ""; - $this->handle = fsockopen($this->cfgServer, $this->cfgPort, &$errno, &$errstr, $this->cfgTimeOut); + $this->handle = fsockopen($this->cfgServer, $this->cfgPort, $errno, $errstr, $this->cfgTimeOut); if(!$this->handle) { |