facebook/hhvm — pull request #1822 by jmarrama (2014-02-15 01:55:07+00:00)
Title: Change hash_hmac to accept all types for the second argument

and automatically cast it to a string before hashing, as Zend does

I verified that zend exhibits the exact same behavior.