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 database system.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | database-isset_is_faster_than_is_null-issue921582-2.patch | 3.16 KB | munzirtaha |
| database-isset_is_faster_than_is_null.patch | 2.86 KB | munzirtaha |
Comments
Comment #1
munzirtaha commentedOops! I missed one 'is_null' in the database layer.
Comment #2
Crell commentedThe PHP.net documentation says this works, plus isset() is ever so slightly more robust against undefined values. Thanks!
Comment #3
dries commentedCommitted to CVS HEAD. Thanks.
Comment #4
munzirtaha commented