Bug #78437 [NEW]: warnings that should be fixed in 7.4-GIT
| From: | phpbugreports at gmail dot com | Date: | Wed, 21 Aug 2019 14:07:04 +0000 |
| Subject: | Bug #78437 [NEW]: warnings that should be fixed in 7.4-GIT | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-222348@lists.php.net to get a copy of this message | ||
From: phpbugreports at gmail dot com
Operating system:
PHP version: 7.4Git-2019-08-21 (Git)
Package: Compile Warning
Bug Type: Bug
Bug description:warnings that should be fixed in 7.4-GIT
Description:
------------
In file included from php-7.4.0/Zend/zend_types.h:25,
from php-7.4.0/Zend/zend.h:27,
from php-7.4.0/main/php.h:33,
from
php-7.4.0/ext/intl/collator/collator_is_numeric.h:21,
from
php-7.4.0/ext/intl/collator/collator_is_numeric.c:18:
php-7.4.0/ext/intl/collator/collator_is_numeric.c: In function
'collator_u_strtod':
php-7.4.0/Zend/zend_portability.h:369:10: warning: 'use_heap' may be
used uninitialized in this function [-Wmaybe-uninitialized]
do { if (UNEXPECTED(use_heap)) efree(p); } while (0)
^
php-7.4.0/ext/intl/collator/collator_is_numeric.c:74:15: note:
'use_heap' was declared here
ALLOCA_FLAG(use_heap);
^~~~~~~~
php-7.4.0/Zend/zend_portability.h:361:12: note: in definition of macro
'ALLOCA_FLAG'
zend_bool name;
^~~~
In file included from php-7.4.0/Zend/zend.h:30,
from php-7.4.0/main/php.h:33,
from php-7.4.0/ext/phar/phar_internal.h:25,
from php-7.4.0/ext/phar/phar.c:21:
php-7.4.0/ext/phar/phar.c: In function 'phar_flush':
php-7.4.0/Zend/zend_alloc.h:195:48: warning: 'suser_stub' may be used
uninitialized in this function [-Wmaybe-uninitialized]
#define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr))
^~~~
php-7.4.0/ext/phar/phar.c:2560:16: note: 'suser_stub' was declared here
zend_string *suser_stub;
^~~~~~~~~~
php-7.4.0/ext/sockets/sockets.c: In function 'zm_startup_sockets':
php-7.4.0/ext/sockets/sockets.c:853:13: warning: AI_IDN_ALLOW_UNASSIGNED
is deprecated
REGISTER_LONG_CONSTANT("AI_IDN_ALLOW_UNASSIGNED",
AI_IDN_ALLOW_UNASSIGNED, CONST_CS | CONST_PERSISTENT);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
php-7.4.0/ext/sockets/sockets.c:854:13: warning:
AI_IDN_USE_STD3_ASCII_RULES is deprecated
REGISTER_LONG_CONSTANT("AI_IDN_USE_STD3_ASCII_RULES",
AI_IDN_USE_STD3_ASCII_RULES, CONST_CS | CONST_PERSISTENT);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
php-7.4.0/sapi/cli/php_cli.c: In function 'sapi_cli_select':
php-7.4.0/sapi/cli/php_cli.c:251:25: warning: passing argument 2 to
restrict-qualified parameter aliases with argument 4 [-Wrestrict]
ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv);
^~~~ ~~~~
php-7.4.0/sapi/cli/php_cli.c:85:46: note: in definition of macro
'php_select'
# define php_select(m, r, w, e, t) select(m, r, w, e, t)
^
Zend/zend_ini_scanner.l: In function 'ini_lex':
Zend/zend_ini_scanner.c:520:18: warning: 'yych' may be used
uninitialized in this function [-Wmaybe-uninitialized]
goto *yytarget[yych];
~~~~~~~~^~~~~~
Zend/zend_ini_scanner.c:388:10: note: 'yych' was declared here
YYCTYPE yych;
^~~~
Zend/zend_language_scanner.l: In function 'lex_scan':
Zend/zend_language_scanner.c:1860:18: warning: 'yych' may be used
uninitialized in this function [-Wmaybe-uninitialized]
goto *yytarget[yych];
~~~~~~~~^~~~~~
Zend/zend_language_scanner.c:1254:10: note: 'yych' was declared here
YYCTYPE yych;
^~~~
--
Edit bug report at https://bugs.php.net/bug.php?id=78437&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78437&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78437&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78437&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78437&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78437&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78437&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78437&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78437&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78437&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78437&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78437&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78437&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78437&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78437&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78437&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78437&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78437&r=mysqlcfg