Function function _make_curl_handle($query, $timeout=null) calls function
flush();
This function modifies headers.
And then it is not possible to modify headers (redirect pages etc) in main php code that uses Yubico library.
After validzteing the password I get PHP Warning: Cannot modify header information - headers already sent in /home/benjaminas/new.velsiga.lt/htdocs/login.php on line .
I have traced the problem and that was fush() function.
After commenting this function everything works fine. Authentications works fine and I'm able to modify headers in my main program.
Why does this function needs to flush all the buffer before calling curl?
Function function _make_curl_handle($query, $timeout=null) calls function flush(); This function modifies headers. And then it is not possible to modify headers (redirect pages etc) in main php code that uses Yubico library. After validzteing the password I get PHP Warning: Cannot modify header information - headers already sent in /home/benjaminas/new.velsiga.lt/htdocs/login.php on line . I have traced the problem and that was fush() function. After commenting this function everything works fine. Authentications works fine and I'm able to modify headers in my main program.
Why does this function needs to flush all the buffer before calling curl?