the result is 0
this is not wrong, because 1+cos(x) >= 0
You will clearly see what the problem is: The symbolic solution of the integral contains a singularity at %pi.
I think Maxima should issue a warning or - better - provide a solution that does not contain this singularity.
Thanks a lot!