diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-27 12:41:41 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-27 14:20:30 +0200 |
commit | 2149ed7072052fcab3baed72e82e26225845589b (patch) | |
tree | 854b37364b617bb0c2e846eb739f66dcde9fd128 /sapi/phpdbg/phpdbg.c | |
parent | 78375aa52f1f2ae79e2d014f24e15b48ef72bea7 (diff) | |
download | php-git-2149ed7072052fcab3baed72e82e26225845589b.tar.gz |
Don't use zmm for PHPDBG_G(exec)
Uses system allocator when backing up settings ... let's avoid
unnecessary confusion.
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 6a684718b4..d334870f7e 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -249,7 +249,7 @@ static PHP_MSHUTDOWN_FUNCTION(phpdbg) /* {{{ */ } if (PHPDBG_G(exec)) { - efree(PHPDBG_G(exec)); + free(PHPDBG_G(exec)); PHPDBG_G(exec) = NULL; } @@ -325,11 +325,11 @@ static PHP_FUNCTION(phpdbg_exec) if (sb.st_mode & (S_IFREG|S_IFLNK)) { if (PHPDBG_G(exec)) { ZVAL_STRINGL(return_value, PHPDBG_G(exec), PHPDBG_G(exec_len)); - efree(PHPDBG_G(exec)); + free(PHPDBG_G(exec)); result = 0; } - PHPDBG_G(exec) = estrndup(ZSTR_VAL(exec), ZSTR_LEN(exec)); + PHPDBG_G(exec) = strndup(ZSTR_VAL(exec), ZSTR_LEN(exec)); PHPDBG_G(exec_len) = ZSTR_LEN(exec); if (result) { |