Php warnings

Pzz

Verified User
Joined
May 20, 2013
Messages
138
Location
The Hague area, The Netherlands
Hi,

I took the time to take a look at the php 7.2 log and found some warnings.

Some seems to be deprecated. I never turned them on on purpose so shouldn't they be turned off automaticly? Can I (should I) do something about it? Searching on the web didin't give me much information. And I always ingnored warnings but maybe it's time to finally fix it. Some of them seems more disturbing then others.

PHP should benefit from fixing it I guess...?

I'v clustered in 5 sections:

1
Code:
checking for libcurl.pc... not found
configure: WARNING: Could not find libcurl.pc. Try without /usr/local/lib or set PKG_CONFIG_PATH
configure: WARNING: Fallback: search for curl headers and curl-config

2
Code:
checking for the location of zlib... /usr
configure: WARNING: ========================================================
configure: WARNING: Use of bundled libzip is deprecated and will be removed.
configure: WARNING: Some features such as encryption and bzip2 are not available.
configure: WARNING: Use system library and --with-libzip is recommended.
configure: WARNING: ========================================================

3
Code:
/usr/local/directadmin/custombuild/php-7.2.10/ext/gd/libgd/gd_jpeg.c:743:29: warning: assignment from incompatible pointer type [enabled by default]
  src->pub.fill_input_buffer = fill_input_buffer;
                             ^
/usr/local/directadmin/custombuild/php-7.2.10/ext/gd/libgd/gd_jpeg.c: In function 'php_gd_jpeg_gdIOCtx_dest':
/usr/local/directadmin/custombuild/php-7.2.10/ext/gd/libgd/gd_jpeg.c:863:32: warning: assignment from incompatible pointer type [enabled by default]
  dest->pub.empty_output_buffer = empty_output_buffer;

4
Code:
/usr/local/directadmin/custombuild/php-7.2.10/ext/intl/idn/idn.c:227:4: warning: 'uidna_IDNToASCII_58' is deprecated (declared at /usr/local/icu/include/unicode/uidna.h:675) [-Wdeprecated-declarations]
    converted_ret_len = uidna_IDNToASCII(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status);
    ^
/usr/local/directadmin/custombuild/php-7.2.10/ext/intl/idn/idn.c:229:4: warning: 'uidna_IDNToUnicode_58' is deprecated (declared at /usr/local/icu/include/unicode/uidna.h:722) [-Wdeprecated-declarations]
    converted_ret_len = uidna_IDNToUnicode(ustring, ustring_len, converted, MAXPATHLEN, (int32_t)option, &parse_error, &status);
    ^

5
Code:
/bin/ld: warning: libpcre.so.1, needed by /usr/lib64/libselinux.so.1, may conflict with libpcre.so.0


What does these warnings mean? Can I fix it? Or ignore it?


Thanks!
 
#1 and #2 have been solved (they're just warnings). #3 and #4 come from PHP itself. #5 is likely new_pcre option-related. I'd suggest setting new_pcre=yes in the options.conf.
 
@smtalk, Maybe at some point another option should be available for PCRE 10.x version? Like "new_pcre10=yes" or "the_very_newest_pcre=yes" :) However I don't yet see a need for PCRE 10.x on my servers, so if there is no demand, it might be better to wait. For version information see http://pcre.org
 
PCRE2 is a part of CB 2.0. However, there aren't any other components than PHP 7.3 supporting it, so, it gets auto-installed only on PHP 7.3 installation time.
 
#1 and #2 have been solved (they're just warnings). #3 and #4 come from PHP itself. #5 is likely new_pcre option-related. I'd suggest setting new_pcre=yes in the options.conf.

I noticed that not long ago suddenly custombuild downloaded libzip-1.5.1.tar.gz when I did ./build update - so today I decided to test it. On a CentOS 7 server that is running PHP 7.2.x I did ./build libzip, but it resultet in errors and also that custombuild without asking me first, installed "cmake" by using yum. Can you please share information about this? Should we avoid running ./build libzip? Maybe it is not ready in custombuild yet? Here is complete output from my attempt:

Code:
[root@server custombuild]# ./build libzip
Cannot find cmake, installing it...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                                                                                                  |  31 kB  00:00:00
 * base: mirror.fra10.de.leaseweb.net
 * epel: mirror.speedpartner.de
 * extras: mirror.imt-systems.com
 * updates: mirror.alpha-labs.net
base                                                                                                                                                                                                                  | 3.6 kB  00:00:00
epel                                                                                                                                                                                                                  | 3.2 kB  00:00:00
extras                                                                                                                                                                                                                | 3.4 kB  00:00:00
updates                                                                                                                                                                                                               | 3.4 kB  00:00:00
(1/6): base/7/x86_64/group_gz                                                                                                                                                                                         | 166 kB  00:00:00
(2/6): epel/x86_64/updateinfo                                                                                                                                                                                         | 934 kB  00:00:00
(3/6): extras/7/x86_64/primary_db                                                                                                                                                                                     | 153 kB  00:00:00
(4/6): base/7/x86_64/primary_db                                                                                                                                                                                       | 6.0 MB  00:00:00
(5/6): epel/x86_64/primary                                                                                                                                                                                            | 3.6 MB  00:00:00
(6/6): updates/7/x86_64/primary_db                                                                                                                                                                                    | 1.3 MB  00:00:00
epel                                                                                                                                                                                                                             12724/12724
Resolving Dependencies
--> Running transaction check
---> Package cmake.x86_64 0:2.8.12.2-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                                Arch                                                    Version                                                          Repository                                             Size
=============================================================================================================================================================================================================================================
Installing:
 cmake                                                  x86_64                                                  2.8.12.2-2.el7                                                   base                                                  7.1 M

Transaction Summary
=============================================================================================================================================================================================================================================
Install  1 Package

Total download size: 7.1 M
Installed size: 27 M
Downloading packages:
cmake-2.8.12.2-2.el7.x86_64.rpm                                                                                                                                                                                       | 7.1 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : cmake-2.8.12.2-2.el7.x86_64                                                                                                                                                                                               1/1
  Verifying  : cmake-2.8.12.2-2.el7.x86_64                                                                                                                                                                                               1/1

Installed:
  cmake.x86_64 0:2.8.12.2-2.el7

Complete!
Found /usr/local/directadmin/custombuild/libzip-1.5.1.tar.gz
Extracting ...
Done.
Configuring libzip-1.5.1...
CMake Error at CMakeLists.txt:4 (CMAKE_MINIMUM_REQUIRED):
  CMake 3.0.2 or higher is required.  You are running version 2.8.12.2


-- Configuring incomplete, errors occurred!
Done. Making libzip-1.5.1...
Trying to make libzip...
make: *** No targets specified and no makefile found.  Stop.

*** The make has failed, would you like to try to make again? (y,n):
 
It shouldn't auto-install libzip with newest version of CB, unless you execute "./build libzip" manually. It requires C++14 though, and it's not supported by CentOS7 yet. PHP 7.3 made built-in libzip deprecated, and they might drop it completely in 7.4 (the time CB would need to build it automatically before compiling PHP).
 
Back
Top