fix php erb processing bug

bug 1069508 - https://bugzilla.redhat.com/show_bug.cgi?id=1069508
Merge pull request #4818 from VojtechVitek/bug_1069508

Merged by openshift-bot