Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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. This patch replaces all the occurrences of is_null in the base system. More patches would follow soon.
Comment | File | Size | Author |
---|---|---|---|
#10 | base-isset_is_faster_than_is_null-issue921606-10.patch | 9.93 KB | munzirtaha |
#8 | isset.patch | 9.42 KB | bleen |
#6 | base-isset_is_faster_than_is_null-issue921606-6.patch | 9.42 KB | munzirtaha |
base-isset_is_faster_than_is_null.patch | 2.59 KB | munzirtaha | |
Comments
Comment #1
munzirtaha CreditAttribution: munzirtaha commentedAdded Tags to my related patches.
Comment #2
munzirtaha CreditAttribution: munzirtaha commentedComment #3
sunDuplicate of #921582: is_null should be replaced by !isset because it's faster
Comment #4
munzirtaha CreditAttribution: 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.
Comment #5
sunNo need to split into different patches. Please merge that other patch into this one. Thanks!
Comment #6
munzirtaha CreditAttribution: munzirtaha commentedI merged the two patches somehow. Hope, it 's in good shape now.
Comment #8
bleen CreditAttribution: bleen commentedyou had a !$isset stuck in there
this patch is a straight find/replace on the patch in #6
Comment #9
munzirtaha CreditAttribution: munzirtaha commentedThanks bleen18, yes I made a typo ;)
Comment #10
munzirtaha CreditAttribution: munzirtaha commentedRerolling the patch after fixing another small typo.
Comment #11
ddorian CreditAttribution: ddorian commentedthis was commited yesterday http://drupal.org/node/921582#new
is this duplicate?
Comment #12
munzirtaha CreditAttribution: munzirtaha commented@ddorian: No, it was not a duplicate and it's not committed yet. That one was a patch to the database component only where this one would patch all the other remaining places.
Comment #13
bleen CreditAttribution: bleen commentedmaybe this will make things a bit clearer ;)
Comment #14
sunBetter title. No time to review right now, but I think that everyone is able to review this patch.
Comment #15
bleen CreditAttribution: bleen commentedI've looked over this patch a couple times ... RTBC
Comment #16
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.