PHP CAS library import

List of changes:
1/ backported fix for: http://www.ja-sig.org/issues/browse/PHPCAS-52 (MDL-21802) 


skodak
