There's a patch to support SSL connections here:
https://bugs.php.net/bug.php?id=67623
It's relies on some API changes to libgearman, however. That issue is currently being tracked here:
gearman/gearmand#63
Assuming we can get that resolved, what do you think about the above patch to the PHP library? It looks fairly straightforward, but I'm not clear on the PHP 7 changes and such.