#39920 closed defect (bug) (fixed)
Empty if-statement
Reported by: | appchecker | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 1.5 |
Component: | Rewrite Rules | Keywords: | has-patch |
Focuses: | Cc: |
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
@
8 years ago
- Component changed from General to Rewrite Rules
- Keywords needs-patch needs-unit-tests added
- Milestone changed from Awaiting Review to 4.8
- Version changed from trunk to 1.5
#2
@
8 years ago
- Keywords has-patch added; needs-patch needs-unit-tests removed
Hi @SergeyBiryukov,
I have added Empty if-statement before foreach otherwise it generates error and adds explode line before the empty statement.
Thanks,
#3
@
8 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.
8 years ago
This ticket was mentioned in Slack in #core by obenland. View the logs.
8 years ago
#7
@
8 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.
7 years ago
Note: See
TracTickets for help on using
tickets.
Is this what you are talking about?