Package: php7.0
Version: 7.0.33-0+deb9u3
Severity: wishlist
Dear PHP maintainers,
There is a demand to run both PHP 7.0 and 7.3 on the same Debian server to
allow transition of applications. Most of the applications are PHP 7.1 ready
and sort of PHP 7.2 friendly, but 7.3 is really
a big jump.
Co-existence of these versions is almost possible, however I faced a problem
with php7.0-curl which depends on libcurl3 which on some reason cannot be
installed next to libcurl4 which is needed by
php7.3-curl (if you know the reason, please share).
So I have decided to recompile PHP for Debian Buster. In it almost worked
except the following:
* libicu57 instead of libicu63 should be installed. This is because ./configure
relies on /bin/icu-config which is not present in libicu-dev_63. Would be nice
if PHP 7.0 can be linked against libicu63.
* On some reason autodetection of completion_matches() presence in readline.h
does not work and HAVE_RL_COMPLETION_MATCHES stays undefined. This causes the
following error:
/home/packages/php/php7.0-7.0.33/ext/readline/readline.c:34:31: error:
conflicting types for ‘completion_matches’
#define rl_completion_matches completion_matches
^~~~~~~~~~~~~~~~~~
In file included from
/home/packages/php/php7.0-7.0.33/ext/readline/readline.c:38:
/usr/include/editline/readline.h:183:15: note: previous declaration of
‘completion_matches’ was here
char **completion_matches(/* const */ char *, rl_compentry_func_t *);
^~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1663: ext/readline/readline.lo] Error 1
make[2]: Leaving directory '/home/packages/php/php7.0-7.0.33/ext-build'
I don't know how to fix that correctly.
I wonder if somebody could port PHP 7.0 to Debian Buster. Many thanks!
--
With best regards,
Dmitry