diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-06-28 10:24:15 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-06-28 10:24:15 +0200 |
commit | 0504f045914a7bdef6905f54167fb9722a5de7e2 (patch) | |
tree | 4c38c847aecf7a6deb0122f3d15b3ec4045bfd97 | |
parent | 696b9e25c8b233d1ab8208f33e5da608464bdda8 (diff) | |
parent | bc0db8ce453aab34941cfe510833d218e50fcae4 (diff) | |
download | php-git-0504f045914a7bdef6905f54167fb9722a5de7e2.tar.gz |
Merge branch 'PHP-7.4'
* PHP-7.4:
Use the portable zend_strndup() instead of strndup()
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 4a8ab1c5a4..eca24b4a4d 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -311,7 +311,7 @@ static PHP_FUNCTION(phpdbg_exec) result = 0; } - PHPDBG_G(exec) = strndup(ZSTR_VAL(exec), ZSTR_LEN(exec)); + PHPDBG_G(exec) = zend_strndup(ZSTR_VAL(exec), ZSTR_LEN(exec)); PHPDBG_G(exec_len) = ZSTR_LEN(exec); if (result) { |