]> granicus.if.org Git - php/commitdiff
Tweak last commit, should always return NULL when an entry doesn't exist.
authorScott MacVicar <scottmac@php.net>
Mon, 7 Jul 2008 21:50:56 +0000 (21:50 +0000)
committerScott MacVicar <scottmac@php.net>
Mon, 7 Jul 2008 21:50:56 +0000 (21:50 +0000)
Zend/zend_ini.c

index 0e82a20b7154fd9219fefaa3cd35ff42def589d3..5979e67fb1445e933bdabadf98c734285d58b648 100644 (file)
@@ -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 "";
 }
 /* }}} */