php-src/ext
Anatol Belski d11734b4b0 reworked the patch, less new stuff but worky
TLS is already used in TSRM, the way exporting the tsrm cache through
a thread local variable is not portable. Additionally, the current
patch suffers from bugs which are hard to find, but prevent it to
be worky with apache. What is done here is mainly uses the idea
from the RFC patch, but

- __thread variable is removed
- offset math and declarations are removed
- extra macros and definitions are removed

What is done merely is

- use an inline function to access the tsrm cache. The function uses
  the portable tsrm_tls_get macro which is cheap
- all the TSRM_* macros are set to placebo. Thus this opens the way
  remove them later

Except that, the logic is old. TSRMLS_FETCH will have to be done once
per thread, then tsrm_get_ls_cache() can be used. Things seeming to be
worky are cli, cli server and apache. I also tried to enable bz2
shared and it has worked out of the box. The change is yet minimal
diffing to the current master bus is a worky start, IMHO. Though will
have to recheck the other previously done SAPIs - embed and cgi.

The offsets can be added to the tsrm_resource_type struct, then
it'll not be needed to declare them in the userspace. Even the
"done" member type can be changed to int16 or smaller, then adding
the offset as int16 will not change the struct size. As well on the
todo might be removing the hashed storage, thread_id != thread_id and
linked list logic in favour of the explicit TLS operations.
2014-09-25 18:48:27 +02:00
..
bcmath s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
bz2 Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
calendar s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
com_dotnet s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
ctype Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
curl Add smart_str_append for appending zend_strings 2014-09-21 20:58:31 +02:00
date reworked the patch, less new stuff but worky 2014-09-25 18:48:27 +02:00
dba Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
dom Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
enchant s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
ereg s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
exif Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
fileinfo Merge branch 'PHP-5.6' 2014-09-20 16:42:31 -07:00
filter Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
ftp s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
gd Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
gettext Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
gmp Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
hash s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
iconv Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
imap Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
interbase Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
intl Add smart_str_append for appending zend_strings 2014-09-21 20:58:31 +02:00
json Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
ldap Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
libxml Rename smart_str_append to smart_str_append_smart_str 2014-09-21 20:49:39 +02:00
mbstring Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
mcrypt Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
mssql Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
mysql Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
mysqli Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
mysqlnd Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
oci8 Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
odbc s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
opcache reworked the patch, less new stuff but worky 2014-09-25 18:48:27 +02:00
openssl Merge branch 'PHP-5.6' 2014-09-24 13:42:32 +02:00
pcntl s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
pcre Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
pdo reworked the patch, less new stuff but worky 2014-09-25 18:48:27 +02:00
pdo_dblib s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
pdo_firebird s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
pdo_mysql s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
pdo_oci s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
pdo_odbc s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
pdo_pgsql s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
pdo_sqlite s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
pgsql Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
phar Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
posix Reverts some unwanted changes 2014-09-20 18:24:38 +02:00
pspell Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
readline Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
recode s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
reflection swap some standard module properties _ex for std mod properties 2014-09-23 12:44:46 +01:00
session Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
shmop Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
simplexml Reverts some unwanted changes 2014-09-20 18:24:38 +02:00
skeleton Replaces php5 with php7, without whitespace changes. 2014-09-20 10:01:44 +02:00
snmp Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
soap Rename smart_str_append to smart_str_append_smart_str 2014-09-21 20:49:39 +02:00
sockets Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
spl reworked the patch, less new stuff but worky 2014-09-25 18:48:27 +02:00
sqlite3 s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
standard reworked the patch, less new stuff but worky 2014-09-25 18:48:27 +02:00
sybase_ct Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
sysvmsg Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
sysvsem s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
sysvshm Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
tidy Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
tokenizer Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
wddx Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
xml Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
xmlreader Reverts some unwanted changes 2014-09-20 18:24:38 +02:00
xmlrpc Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
xmlwriter Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
xsl Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
zip s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
zlib Merge branch 'master' into issue-67910 2014-09-20 10:09:21 +02:00
ext_skel Merge branch 'PHP-5.5' into PHP-5.6 2014-05-01 11:23:14 -07:00
ext_skel_win32.php