Bug #77170 [NEW]: Thread safety is always enabled

From: Date: Sat, 17 Nov 2018 22:45:31 +0000
Subject: Bug #77170 [NEW]: Thread safety is always enabled
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218002@lists.php.net to get a copy of this message
From:             mimipim at abv dot bg
Operating system: Ubuntu 16.04
PHP version:      7.1.24
Package:          *Compile Issues
Bug Type:         Bug
Bug description:Thread safety is always enabled

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

-- 
Edit bug report at https://bugs.php.net/bug.php?id=77170&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=77170&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=77170&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=77170&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=77170&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=77170&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=77170&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=77170&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=77170&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=77170&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=77170&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=77170&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=77170&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=77170&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77170&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=77170&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=77170&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=77170&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77170&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=77170&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=77170&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#218002) next »