]> granicus.if.org Git - php/commit
Use strlen for INI_* macros
authorMichael Voříšek <mvorisek@mvorisek.cz>
Wed, 12 Feb 2020 11:24:54 +0000 (12:24 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 17 Feb 2020 10:11:14 +0000 (11:11 +0100)
commitd2ba8485721144dbb235d183a82e34d8bb1720eb
treee19fae809cc75f8860bc4ae831f31e8186626557
parent53fc8ef41d89e99a8c8fc40a3b0deb501e915141
Use strlen for INI_* macros

strlen() is resolved at compile time by optimizing compilers.

Prevent mistakes and allow to use INI_* macros with char * variables
which can have sizeof() == 1.

Closes GH-5174.
Zend/zend_ini.h