Opened 16 years ago
Closed 16 years ago
#14187 closed defect (bug) (fixed)
strrpos supports only a single character for the needle in PHP4
| Reported by: | mailnew2ster | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | HTTP API | Version: | |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
Description
class-http.php, line 1411:
http://core.trac.wordpress.org/browser/trunk/wp-includes/class-http.php#L1411
strrpos is used, while it does not work as expected on PHP4. Can be replaced by strpos, as the position is not needed in that case.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
From what i can see, Changing from looking for the last occurrence, to the first occurrence as in the patch wouldnt cause an issue..