Options theme breaks on upgrade to php 5.4