Revert "Update lib.php"

This reverts commit 5e38ac353b33692b003055015bc750827bbbb4bb.