Atul Pratap Singh a écrit :
Hi,
To fix bug#4013 [0], I had to unlock the session by session_write_close() before making a time-taking call via file_get_contents() or curl_exec(). See [1]
Then the session needed to be captured again so I used session_start().
Now to suppress "headers already sent" warnings, that is causing test failures, what should I use?
- output buffering?
OR 2. procedure as explained on [2] OR 3. Use '@' OR some other way?
I don't seem to have any preference among above options, I'll appreciate any help and explanation.
[0] https://sourceforge.net/p/phpmyadmin/bugs/4013/ [1] https://github.com/zixtor/phpmyadmin/commit/2f978adba9ca345064f38844dabb484d... [2] http://stackoverflow.com/questions/12315225/reopening-a-session-in-php/12315...
Thanks & Regards
Atul, If it works, I would go with '@' plus a comment explaining the reason for the '@'.