#18927 closed enhancement (wontfix)
is_email() check for string first
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Formatting | Version: | 3.3 |
| Severity: | minor | Keywords: | has-patch close |
| Cc: | kpayne@… |
Description
Currently, if you pass anything else than a string to is_email() it will generate a fatal error because strlen() expects a string. The proposed patch checks for is_string() first.
Attachments (1)
Change History (5)
- Keywords close added
Why? is_email() should only get a string. Passing it something that isn't scalar is a developer error. I'd rather the developer see a fatal error than a suppressed false.
- Resolution set to wontfix
- Status changed from new to closed
Replying to nacin:
Why? is_email() should only get a string. Passing it something that isn't scalar is a developer error. I'd rather the developer see a fatal error than a suppressed false.
fair.
Note: See
TracTickets for help on using
tickets.

Related #17433.