From 2c7bd66168c5f78a275fe798e889655d347494b3 Mon Sep 17 00:00:00 2001 From: paulc Date: Thu, 30 Jul 2015 12:48:32 +0000 Subject: [PATCH] Do not flush the output when connecting over a PHP socket, it is useless and causes "Headers already sent" when used from a Web server. git-svn-id: http://yate.null.ro/svn/yate/trunk@6011 acf43c95-373e-0410-b603-e72c3f656dc1 --- share/scripts/libyate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/scripts/libyate.php b/share/scripts/libyate.php index edf15221..e7d164a8 100644 --- a/share/scripts/libyate.php +++ b/share/scripts/libyate.php @@ -475,8 +475,8 @@ class Yate $yate_stdout = fopen("php://stdout","w"); $yate_stderr = fopen("php://stderr","w"); $role = ""; + flush(); } - flush(); set_error_handler("_yate_error_handler"); ob_implicit_flush(1); if ($async && function_exists("stream_set_blocking") && $yate_stdin)