<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/sapi/embed/php_embed.h, branch microseconds</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/'/>
<entry>
<title>Move semicolon into TSRMLS_CACHE_EXTERN/DEFINE</title>
<updated>2016-03-03T15:50:01+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikic@php.net</email>
</author>
<published>2016-03-03T15:46:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=1ac152938cfe40e98b7b3c8cf403abb113266cfa'/>
<id>1ac152938cfe40e98b7b3c8cf403abb113266cfa</id>
<content type='text'>
Also re bug #71575.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also re bug #71575.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'PHP-5.6' into PHP-7.0</title>
<updated>2016-01-01T17:48:25+00:00</updated>
<author>
<name>Lior Kaplan</name>
<email>kaplanlior@gmail.com</email>
</author>
<published>2016-01-01T17:47:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=ed35de784f4ea53927e906ba4af335778de4d16a'/>
<id>ed35de784f4ea53927e906ba4af335778de4d16a</id>
<content type='text'>
* PHP-5.6:
  Happy new year (Update copyright to 2016)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PHP-5.6:
  Happy new year (Update copyright to 2016)
</pre>
</div>
</content>
</entry>
<entry>
<title>Happy new year (Update copyright to 2016)</title>
<updated>2016-01-01T17:21:47+00:00</updated>
<author>
<name>Lior Kaplan</name>
<email>kaplanlior@gmail.com</email>
</author>
<published>2016-01-01T17:19:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=49493a2dcfb2cd1758b69b13d9006ead3be0e066'/>
<id>49493a2dcfb2cd1758b69b13d9006ead3be0e066</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>made ZEND_TSRMLS_CACHE_* macros look like function calls</title>
<updated>2015-02-16T16:19:32+00:00</updated>
<author>
<name>Anatol Belski</name>
<email>ab@php.net</email>
</author>
<published>2015-02-16T16:19:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=af3ca74501c5d0be273e47c618d37b8ddcbb5c7f'/>
<id>af3ca74501c5d0be273e47c618d37b8ddcbb5c7f</id>
<content type='text'>
which also comply with the current semantics for such macros
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
which also comply with the current semantics for such macros
</pre>
</div>
</content>
</entry>
<entry>
<title>bump year</title>
<updated>2015-01-15T15:27:30+00:00</updated>
<author>
<name>Xinchen Hui</name>
<email>laruence@php.net</email>
</author>
<published>2015-01-15T15:27:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=fc33f52d8c25997dd0711de3e07d0dc260a18c11'/>
<id>fc33f52d8c25997dd0711de3e07d0dc260a18c11</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bump year</title>
<updated>2015-01-15T15:26:37+00:00</updated>
<author>
<name>Xinchen Hui</name>
<email>laruence@php.net</email>
</author>
<published>2015-01-15T15:26:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=0579e8278dad43c7ebc070468b56caddf1c660b8'/>
<id>0579e8278dad43c7ebc070468b56caddf1c660b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>trailing whitespace removal</title>
<updated>2015-01-10T23:07:38+00:00</updated>
<author>
<name>Stanislav Malyshev</name>
<email>stas@php.net</email>
</author>
<published>2015-01-03T09:22:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=b7a7b1a624c97945c0aaa49d46ae996fc0bdb6bc'/>
<id>b7a7b1a624c97945c0aaa49d46ae996fc0bdb6bc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>get rid of TSRMLS_* in the embed SAPI</title>
<updated>2014-12-17T09:52:28+00:00</updated>
<author>
<name>Anatol Belski</name>
<email>ab@php.net</email>
</author>
<published>2014-12-17T09:52:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=af21b3b6dcef4ce0c04f3e8126574f5660fd0a83'/>
<id>af21b3b6dcef4ce0c04f3e8126574f5660fd0a83</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>first shot remove TSRMLS_* things</title>
<updated>2014-12-13T22:06:14+00:00</updated>
<author>
<name>Anatol Belski</name>
<email>ab@php.net</email>
</author>
<published>2014-12-13T22:06:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=bdeb220f48825642f84cdbf3ff23a30613c92e86'/>
<id>bdeb220f48825642f84cdbf3ff23a30613c92e86</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>reworked the patch, less new stuff but worky</title>
<updated>2014-09-25T16:48:27+00:00</updated>
<author>
<name>Anatol Belski</name>
<email>ab@php.net</email>
</author>
<published>2014-09-25T16:48:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=d11734b4b00f57de80d931ad1c522e00082443af'/>
<id>d11734b4b00f57de80d931ad1c522e00082443af</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
</feed>
