[Phpmyadmin-devel] Help! How to suppress warnings?

Marc Delisle marc at infomarc.info
Tue Jan 21 16:51:11 CET 2014


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?
> 
> 1. 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/2f978adba9ca345064f38844dabb484d33a933c3
> [2]
> http://stackoverflow.com/questions/12315225/reopening-a-session-in-php/12315542#12315542
> 
> 
> Thanks & Regards

Atul,
If it works, I would go with '@' plus a comment explaining the reason 
for the '@'.

-- 
Marc Delisle
http://infomarc.info | http://phpmyadmin.net




More information about the Developers mailing list