Joomla editor (I use JCE as many do) has the option to choose Editor, Code or Preview mode. When editing PHP code in Code mode and then saving it, Sourcerer seems to change <?php to <!--?php and thus breaking the code. It works OK when you select Editor mode before saving, but that’s off course no stable solution but just a workaround.