diff options
| author | Nikita Popov <nikic@php.net> | 2015-07-16 22:48:56 +0200 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2015-07-16 22:48:56 +0200 |
| commit | c568ffe5171d942161fc8dda066bce844bdef676 (patch) | |
| tree | e47ea2799bc939ed637fda4558c813dccfdc9249 /Zend/zend_compile.c | |
| parent | 208257eec56533bf470044eb0595202bd1541462 (diff) | |
| download | php-git-c568ffe5171d942161fc8dda066bce844bdef676.tar.gz | |
Ignore getcwd return in zend_compile
To do this move the php_ignore_value macro to ZEND_IGNORE_VALUE.
Diffstat (limited to 'Zend/zend_compile.c')
| -rw-r--r-- | Zend/zend_compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 4cf2a57f75..f63c9f3700 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -5667,9 +5667,9 @@ static zend_bool zend_try_ct_eval_magic_const(zval *zv, zend_ast *ast) /* {{{ */ if (strcmp(ZSTR_VAL(dirname), ".") == 0) { dirname = zend_string_extend(dirname, MAXPATHLEN, 0); #if HAVE_GETCWD - VCWD_GETCWD(ZSTR_VAL(dirname), MAXPATHLEN); + ZEND_IGNORE_VALUE(VCWD_GETCWD(ZSTR_VAL(dirname), MAXPATHLEN)); #elif HAVE_GETWD - VCWD_GETWD(ZSTR_VAL(dirname)); + ZEND_IGNORE_VALUE(VCWD_GETWD(ZSTR_VAL(dirname))); #endif } |
