Zero-extend bools when passed to a wider type through Jmp

Reviewed By: @edwinsmith

Differential Revision: D1750827
Update libmagic

Summary: Update libmagic to pull in fixes for various CVEs

CVE-2014-0207
CVE-2014-0237

Reviewed By: @JoelMarcey, @paulbiss

Differential Revision: D1713417
Limit glob flags to only ones supported by php

Summary: PHP only lists support for a few glob flags. There was a segfault in
glob caused by passing invalid flags. To prevent that only allow php glob flags
to be used when calling glob.

CVE-2011-1657

Reviewed By: @paulbiss

Differential Revision: D1696172