diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2016-11-30 02:56:47 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2016-11-30 02:56:47 +0100 |
commit | b73a3afff333143b2908b280e6a4e26d61cb3138 (patch) | |
tree | 517467b801d7e15711bc80aebb9dd4d4f72fccbf /sapi/phpdbg/phpdbg_prompt.c | |
parent | 9a9ad56af0f80c69d363e8cfabe412da798c497d (diff) | |
download | php-git-b73a3afff333143b2908b280e6a4e26d61cb3138.tar.gz |
Fixed bug #73615 (phpdbg without option never load .phpdbginit at startup)
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_prompt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index c126ce2029..4ee27d1beb 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -349,7 +349,9 @@ void phpdbg_try_file_init(char *init_file, size_t init_file_len, zend_bool free_ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default) /* {{{ */ { - if (!init_file && use_default) { + if (init_file) { + phpdbg_try_file_init(init_file, init_file_len, 1); + } else if (use_default) { char *scan_dir = getenv("PHP_INI_SCAN_DIR"); char *sys_ini; int i; @@ -382,8 +384,6 @@ void phpdbg_init(char *init_file, size_t init_file_len, zend_bool use_default) / } phpdbg_try_file_init(PHPDBG_STRL(PHPDBG_INIT_FILENAME), 0); - } else { - phpdbg_try_file_init(init_file, init_file_len, 1); } } /* }}} */ |