From: Scott MacVicar Date: Mon, 7 Jul 2008 21:50:56 +0000 (+0000) Subject: Tweak last commit, should always return NULL when an entry doesn't exist. X-Git-Tag: php-5.3.0alpha1~452 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bab7c18ac205863af3df740144be23c18cf7a72;p=php Tweak last commit, should always return NULL when an entry doesn't exist. --- diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index 0e82a20b71..5979e67fb1 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -382,12 +382,12 @@ ZEND_API char *zend_ini_string_ex(char *name, uint name_length, int orig, zend_b } else { return ini_entry->value; } - } else if (exists) { - *exists = 0; + } else { + if (exists) { + *exists = 0; + } return NULL; } - - return ""; } /* }}} */