facebook / facebook/hhvm

\PlainSprintf doesn't check types

Open
#7,616 1 comment 0 reactions 0 assignees View on GitHub
hack
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

Lots of 'mixed' here:

https://github.com/facebook/hhvm/blob/3a8b37a4c7b7cbc652998a721a688ca85abfa1a3/hphp/hack/hhi/printf.hhi

### HHVM Version

3.17

### Standalone code, or other way to reproduce the problem

`sprintf('%d', 'foo')`

### Expected resul

Typechecker error

### Actual result

Runtime error

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.