Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
24 Sep 2010 at 11:44 UTC
Updated:
25 Sep 2010 at 21:59 UTC
is_null is mentioned in various files and modules. !isset is well known to be faster than is_null and should be usedd with variables. The patch is a no-brainer so I don't think there is a need to submit it for each comonent separately. Here is an atomic patch.
| Comment | File | Size | Author |
|---|---|---|---|
| base_atomic-isset_is_faster_than_is_null.patch | 6.83 KB | munzirtaha |
Comments
Comment #1
munzirtaha commentedComment #2
sunDuplicate of #921582: is_null should be replaced by !isset because it's faster
Comment #3
munzirtaha commented@sun: please don't close it as a duplicate. Though the title is the same, the patch is different. It's patching different set of files. I split the patches so it won't be huge and obseleted quickly by other patches before being committed. I also thought each componenet should have its own patch e.g this patch is fixing the base system not the modules.
Comment #4
munzirtaha commentedComment #5
webchickFrom a review/commit POV, it's a lot easier if these are all in one issue. Rather than having to review/commit several different patches, we only work on one, and it goes in much faster/easier.
But at the very least, differentiating these by title would help a lot of people avoid mistakenly marking things as duplicates that aren't.
Comment #6
munzirtaha commentedI now merged this patch with #921606: Various code uses is_null() instead of !isset() #2
Closing.