I have been using the version of PHP7 that is available for Fedora 23 in the remi repositories and it has worked fine. I recently found I need to compile PHP7 from source to get Pthreads working, which also requires compiling PHP with the option: --enable-maintainer-zts. I have found though, that no matter what options I use to compile PHP, they are not being used when PHP is run by the OS. if I use php -i in the terminal, I see that thread safety is off and the other options I have set are not listed. I did uninstall the remi version of PHP, but that made no difference - however, this led to a strange situation, in that PHP was still operating via PHP-FPM after I had removed the remi version of PHP from my machine. This appears to me to mean that I'm running the version of PHP7 that I have built from source, but that my directives have been ignored. if that is not the case, then I have no other idea how this is possible, except that possibly PHP was not actually removed from my machine when I ran DNF REMOVE PHP (and simultaneously the version I installed from source was just ignored or incorrectly installed).
I have used a few different build commands, with the last one being:
./configure --prefix=/usr/local/php --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysqli --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --with-fpm-user=nginx --with-fpm-group=nginx --with-libdir=/usr/lib64/php-zts --enable-ftp --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm --enable-maintainer-zts --enable-debug
When I examine the timestamps on various files for PHP, most have so far not matched the date/time that I built PHP from source.
Does anyone have an intuition as to what I'm missing here?