-
Notifications
You must be signed in to change notification settings - Fork 327
Closed
Labels
[Feature] PHP.wasm[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
In my plugin, I'm using UPLOAD_ERR_OK !== $_FILES['form-field-name']['error']
to check for issues with file uploads (from an <input type="file" name="form-field-name" />
in this example).
The UPLOAD_ERR_OK
constant in PHP normally is an int
, see https://3v4l.org/WjW2j .
However, in WordPress Playground, $_FILES['form-field-name']['error']
returns a string
.
Maybe something in
// Set $_FILES['key']['error'] |
Metadata
Metadata
Assignees
Labels
[Feature] PHP.wasm[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended