Skip to content

Instantly share code, notes, and snippets.

@JoelMarcey
Created June 29, 2014 05:36
Show Gist options
  • Save JoelMarcey/7848cc2bb0669ae26ac4 to your computer and use it in GitHub Desktop.
Save JoelMarcey/7848cc2bb0669ae26ac4 to your computer and use it in GitHub Desktop.
HNI type checker
hhvm tools/check_native_signatures.php runtime/ext/xmlwriter/ext_xmlwriter.cpp runtime/ext/xmlwriter/ext_xmlwriter.php
Mismatched argument type for function 'xmlwriter::startdocument' at index '0'. PHP: ?string C++:
const String&
Mismatched argument type for function 'xmlwriter::startdocument' at index '1'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::startdocument' at index '2'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::startdtd' at index '1'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::startdtd' at index '2'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::writedtd' at index '1'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::writedtd' at index '2'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::writedtd' at index '3'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::writedtdentity' at index '2'. PHP: ?bool C++: bool
Mismatched argument type for function 'xmlwriter::writedtdentity' at index '3'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::writedtdentity' at index '4'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::writedtdentity' at index '5'. PHP: ?string C++: const String&
Mismatched argument type for function 'xmlwriter::flush' at index '0'. PHP: ?bool C++:
bool
Mismatched argument type for function 'xmlwriter::outputmemory' at index '0'. PHP: ?bool C++:
bool
See https://github.com/facebook/hhvm/wiki/Extension-API for what types map to what
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment