Don't be tricked into thinking this function will rotate the image resource handle in-place. While the documentation currently doesn't specify and return values, I've found the following return values to be true:
"Returns an image resource identifier on success, FALSE on errors. "
Simply make sure you're doing something like...
<?php
$rotated_img = imagerotate($src_img, 45, $color)
?>
-Mike