Req #76238 [NEW]: Warning when compiling with latest OpenSSL and XML libraries

From: Date: Wed, 18 Apr 2018 17:05:14 +0000
Subject: Req #76238 [NEW]: Warning when compiling with latest OpenSSL and XML libraries
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214800@lists.php.net to get a copy of this message
From: dev dot dertin at gmail dot com Operating system: Debian 9 PHP version: 7.2.4 Package: Compile Warning Bug Type: Feature/Change Request Bug description:Warning when compiling with latest OpenSSL and XML libraries Description: ------------ PHP 7.2.4 - OpenSSL 1.1.0h - LibXML2 2.9.8 - Libxslt 1.1.33-rc1 I wonder if you can avoid these warning by creating a patch. Those related to OpenSSL don't worry me so much, but the XML library I don't know which impact it has, and if this can cause a problem. Test script: --------------- https://travis-ci.org/dertin/lemp-stack-debian Actual result: -------------- /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c: In function 'php_openssl_select_crypto_method': /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:963:3: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] return is_client ? TLSv1_client_method() : TLSv1_server_method(); ^~~~~~ In file included from /usr/local/include/openssl/ct.h:13:0, from /usr/local/include/openssl/ssl.h:61, from /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:34: /usr/local/include/openssl/ssl.h:1629:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:963:3: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations] return is_client ? TLSv1_client_method() : TLSv1_server_method(); ^~~~~~ In file included from /usr/local/include/openssl/ct.h:13:0, from /usr/local/include/openssl/ssl.h:61, from /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:34: /usr/local/include/openssl/ssl.h:1628:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /* TLSv1.0 */ 36m^ /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:966:3: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations] return is_client ? TLSv1_1_client_method() : TLSv1_1_server_method(); ^~~~~~ In file included from /usr/local/include/openssl/ct.h:13:0, from /usr/local/include/openssl/ssl.h:61, from /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:34: /usr/local/include/openssl/ssl.h:1635:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void)) /* TLSv1.1 */ ^ /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:966:3: warning: 'TLSv1_1_server_method' is deprecated [-Wdeprecated-declarations] return is_client ? TLSv1_1_client_method() : TLSv1_1_server_method(); ^~~~~~ In file included from /usr/local/include/openssl/ct.h:13:0, from /usr/local/include/openssl/ssl.h:61, from /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:34: /usr/local/include/openssl/ssl.h:1634:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void)) /* TLSv1.1 */ ^ /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:974:3: Kwarning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations] return is_client ? TLSv1_2_client_method() : TLSv1_2_server_method(); ^~~~~~ In file included from /usr/local/include/openssl/ct.h:13:0, from /usr/local/include/openssl/ssl.h:61, from /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:34: /usr/local/include/openssl/ssl.h:1641:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /* TLSv1.2 */ ^ /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:974:3: warning: 'TLSv1_2_server_method' is deprecated [-Wdeprecated-declarations] return is_client ? TLSv1_2_client_method() : TLSv1_2_server_method(); ^~~~~~ In file included from /usr/local/include/openssl/ct.h:13:0, from /usr/local/include/openssl/ssl.h:61, from /var/tmp/php_build/php_src/ext/openssl/xp_ssl.c:34: /usr/local/include/openssl/ssl.h:1640:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void)) /* TLSv1.2 */ ^ /var/tmp/php_build/php_src/ext/dom/dom_iterators.c: In function 'php_dom_libxml_hash_iter': /var/tmp/php_build/php_src/ext/dom/dom_iterators.c:94:19: warning: passing argument 2 of 'xmlHashScan' from incompatible pointer type [-Wincompatible-pointer-types] xmlHashScan(ht, itemHashScanner, iter); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/libxml2/libxml/parser.h:18:0, from /var/tmp/php_build/php_src/ext/dom/php_dom.h:33, from /var/tmp/php_build/php_src/ext/dom/dom_iterators.c:28: /usr/local/include/libxml2/libxml/hash.h:212:4: note: expected 'xmlHashScanner {aka void (*)(void *, void *, const unsigned char *)}' but argument is of type 'void (*)(void *, void *, xmlChar *) {aka void (*)(void *, void *, unsigned char *)}' xmlHashScan (xmlHashTablePtr table, ^~~~~~~~~~~ /var/tmp/php_build/php_src/ext/dom/dom_iterators.c: In function 'php_dom_libxml_notation_iter': /var/tmp/php_build/php_src/ext/dom/dom_iterators.c:115:19: warning: passing argument 2 of 'xmlHashScan' from incompatible pointer type [-Wincompatible-pointer-types] xmlHashScan(ht, itemHashScanner, iter); ^~~~~~~~~~~~~~~ In file included from /usr/local/include/libxml2/libxml/parser.h:18:0, from /var/tmp/php_build/php_src/ext/dom/php_dom.h:33, from /var/tmp/php_build/php_src/ext/dom/dom_iterators.c:28: /usr/local/include/libxml2/libxml/hash.h:212:4: note: expected 'xmlHashScanner {aka void (*)(void *, void *, const unsigned char *)}' but argument is of type 'void (*)(void *, void *, xmlChar *) {aka void (*)(void *, void *, unsigned char *)}' xmlHashScan (xmlHashTablePtr table, ^~~~~~~~~~~ /var/tmp/php_build/php_src/ext/intl/idn/idn.c: In function 'php_intl_idn_to': /var/tmp/php_build/php_src/ext/intl/idn/idn.c:227:4: warning: 'uidna_IDNToASCII_57' is deprecated [-Wdeprecated-declarations] converted_ret_len = uidna_IDNToASCII(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status); ^~~~~~~~~~~~~~~~~ In file included from /usr/include/unicode/platform.h:23:0, from /usr/include/unicode/ptypes.h:50, from /usr/include/unicode/umachine.h:44, from /usr/include/unicode/utypes.h:36, from /usr/include/unicode/uidna.h:20, from /var/tmp/php_build/php_src/ext/intl/idn/idn.c:28: /usr/include/unicode/uidna.h:673:1: note: declared here uidna_IDNToASCII( const UChar* src, int32_t srcLength, ^ /var/tmp/php_build/php_src/ext/intl/idn/idn.c:229:4: warning: 'uidna_IDNToUnicode_57' is deprecated [-Wdeprecated-declarations] converted_ret_len = uidna_IDNToUnicode(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status); ^~~~~~~~~~~~~~~~~ In file included from /usr/include/unicode/platform.h:23:0, from /usr/include/unicode/umachine.h:44, from /usr/include/unicode/utypes.h:36, from /usr/include/unicode/uidna.h:20, from /var/tmp/php_build/php_src/ext/intl/idn/idn.c:28: /usr/include/unicode/uidna.h:720:1: note: declared here uidna_IDNToUnicode( const UChar* src, int32_t srcLength, ^ /var/tmp/php_build/php_src/ext/session/mod_files.c: In function 'ps_files_cleanup_dir': /var/tmp/php_build/php_src/ext/session/mod_files.c:315:2: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] while (php_readdir_r(dir, (struct dirent *) dentry, &entry) == 0 && entry) { ^~~~~ In file included from /var/tmp/php_build/php_src/Zend/zend_virtual_cwd.h:78:0, from /var/tmp/php_build/php_src/main/php.h:470, from /var/tmp/php_build/php_src/ext/session/mod_files.c:55: /usr/include/dirent.h:183:12: note: declared here extern int readdir_r (DIR *__restrict __dirp, ^~~~~~~~~ /var/tmp/php_build/php_src/main/streams/plain_wrapper.c: In function 'php_plain_files_dirstream_read': /var/tmp/php_build/php_src/main/streams/plain_wrapper.c:908:2: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] if (php_readdir_r(dir, (struct dirent *)entry, &result) == 0 && result) { ^~ In file included from /var/tmp/php_build/php_src/Zend/zend_virtual_cwd.h:78:0, from /var/tmp/php_build/php_src/main/php.h:470, from /var/tmp/php_build/php_src/main/streams/plain_wrapper.c:21: /usr/include/dirent.h:183:12: note: declared here extern int readdir_r (DIR *__restrict __dirp, ^~~~~~~~~ -- Edit bug report at https://bugs.php.net/bug.php?id=76238&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76238&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76238&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76238&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76238&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76238&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76238&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76238&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76238&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76238&r=support Expected behavior: https://bugs.php.net/fix.php?id=76238&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76238&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76238&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76238&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76238&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76238&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76238&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76238&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76238&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76238&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76238&r=mysqlcfg

« previous php.bugs (#214800) next »