adding rlp goodies with php 3.4 fix.