| Summary: | [Win] PHP scripts fail if HTTP_ORIGIN is not set | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> |
| Component: | WebKit Misc. | Assignee: | Brent Fulgham <bfulgham> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | All | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=144157 | ||
|
Description
Brent Fulgham
2015-04-28 09:23:13 PDT
My initial understanding of this problem was wrong. Tests are failing because of a difference in Windows PHP versus its behavior on the Mac: (a) Mac treats a missing HTTP_ORIGIN 'key' in the HTTP header as a null value. (b) Win treats a missing HTTP_ORIGIN 'key' in the HTTP header as a failure and terminates the script. The fix is to check if the key is set before proceeding, which works properly on Windows and Mac. I will do a quick search of other PHP files to see if this is the cause of other Windows failures. It doesn't appear that there are any other PHP tests suffering from this problem. Committed r183483: <http://trac.webkit.org/changeset/183483> |