#39920 closed defect (bug) (fixed)
Empty if-statement
| Reported by: | appchecker | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | Rewrite Rules | Version: | 1.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Hello!
In this code fragment:
<?php if ( $markerdata = explode( "\n", implode( '', file( $filename ) ) )); { $state = false; .... }
Body of if-statement actually is empty. Probably, semicolon is excess.
This possible defect found with ( AppChecker )
Attachments (3)
Change History (16)
#1
@
9 years ago
- Component General → Rewrite Rules
- Keywords needs-patch needs-unit-tests added
- Milestone Awaiting Review → 4.8
- Version trunk → 1.5
#2
@
9 years ago
- Keywords has-patch added; needs-patch needs-unit-tests removed
Hi @SergeyBiryukov,
I have added Empty if-statement
Thanks,
Version 0, edited 9 years ago by
(next)
#3
@
9 years ago
- Keywords needs-unit-tests added
Hi @Dency
Have you tested your patch in unit testing?
Thanks,
This ticket was mentioned in Slack in #core by dixita. View the logs.
9 years ago
This ticket was mentioned in Slack in #core by obenland. View the logs.
9 years ago
#7
@
9 years ago
Hi,
This could be solved with a patch I just submitted for #26829 (comes with unit tests too).
This ticket was mentioned in Slack in #core by melchoyce. View the logs.
9 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Is this what you are talking about?