fix php erb processing bug

bug 1069508 - https://bugzilla.redhat.com/show_bug.cgi?id=1069508
[test]