Avoid silent deprecation

Avoid silent deprecation by triggering E_USER_DEPRECATED notices.