php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77170 Thread safety is always enabled
Submitted: 2018-11-17 22:45 UTC Modified: -
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mimipim at abv dot bg Assigned:
Status: Open Package: *Compile Issues
PHP Version: 7.1.24 OS: Ubuntu 16.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
43 - 7 = ?
Subscribe to this entry?

 
 [2018-11-17 22:45 UTC] mimipim at abv dot bg
Description:
------------
It seems in a any specific environment PHP can not be compiled with thread safety disabled.

Test script:
---------------
./configure --prefix=/opt/php71 --disable-maintainer-zts --disable-posix --enable-soap --enable-mbstring --enable-mbregex --with-jpeg-dir="/opt/jibjpeg-turbo/1.5.2" --with-gd --enable-zip --enable-bcmath --enable-pcntl --enable-ftp --enable-exif --enable-calendar --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-static --enable-wddx --enable-shmop --with-curl --with-mcrypt --with-iconv --with-pspell --with-zlib --with-freetype-dir=/usr --enable-gd-native-ttf --enable-gd-jis-conv --with-openssl --with-pdo-mysql --with-gettext=/usr --with-bz2=/usr --with-recode=/usr --with-apxs2=/etc/apache2/bin/apxs --with-fpm-user=www-data --with-fpm-group=www-data --enable-fpm
make
sudo make install


/opt/php71/bin/php -i | grep Thread
Thread Safety => enabled

./configure --help | grep thread
--enable-maintainer-zts Enable thread safety - for code maintainers only!!
--with-tsrm-pthreads Use POSIX threads (default)

./configure --help | grep posix
--disable-posix Disable POSIX-like functions

I tried the with the addition of --disable-maintainer-zts --disable-posix, it still builds with Thread Safety => enabled

Expected result:
----------------
Thread safety => disabled

Actual result:
--------------
Thread safety => enabled

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-19 13:29 UTC] mimipim at abv dot bg
I found it is because of the with-apxs2 configuration. I suggest a bold warning to be generated at the end of configuration if not an error during such conditions where one option enables the thread safety and other disables it and vice verse.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Nov 16 21:01:32 2019 UTC