Security Learning Mode

You derive encryption keys from user's passwords using PBKDF2 algorithm. You implement PBKDF2 algorithm in userland PHP code because your PHP version lacks the support for hash_pbkdf2() function. Are there any (security-wise) disadvantages of having to implement the PBKDF2 algorithm in userland PHP code instead of being able to use the native PHP function hash_pbkdf2()?