<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/opcache/shared_alloc_win32.c, branch php-7.3.20</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/'/>
<entry>
<title>Fix #79040: Warning Opcode handlers are unusable due to ASLR</title>
<updated>2019-12-30T14:12:58+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2019-12-30T11:20:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=0cecf83b264cbbb5683ab8a843cc4a4d9c294644'/>
<id>0cecf83b264cbbb5683ab8a843cc4a4d9c294644</id>
<content type='text'>
We must not use the same shared memory OPcache instance for different
SAPIs, since their memory layout is different.  To avoid this, we add
the SAPI name (truncated to at most 20 characters) to the names of the
memory base file, the mutex and the file mapping.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We must not use the same shared memory OPcache instance for different
SAPIs, since their memory layout is different.  To avoid this, we add
the SAPI name (truncated to at most 20 characters) to the names of the
memory base file, the mutex and the file mapping.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix ASLR related invalid opline handler issues</title>
<updated>2019-11-15T08:46:58+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2019-11-12T15:12:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=39d04f15f83360777e9b1c6afd00a49f995fdcf5'/>
<id>39d04f15f83360777e9b1c6afd00a49f995fdcf5</id>
<content type='text'>
Opcache stores `opline-&gt;handler`s in shared memory.  These pointers are
invalid, if the main PHP DLL is loaded at another base address due to
ASLR.  We therefore store the address of `execute_ex` in the mmap base
file, and check on startup whether it matches its current address.  If
not, we fall back on the file cache if enabled, and bail out otherwise.

This still does not address cases where the opline handler is located
inside of another DLL (e.g. for some profilers, debuggers), but there
seems to be no general solution for now.

(cherry picked from commit 8ba10b8fbc020dc225d3b19d8f088f1351a3e304)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Opcache stores `opline-&gt;handler`s in shared memory.  These pointers are
invalid, if the main PHP DLL is loaded at another base address due to
ASLR.  We therefore store the address of `execute_ex` in the mmap base
file, and check on startup whether it matches its current address.  If
not, we fall back on the file cache if enabled, and bail out otherwise.

This still does not address cases where the opline handler is located
inside of another DLL (e.g. for some profilers, debuggers), but there
seems to be no general solution for now.

(cherry picked from commit 8ba10b8fbc020dc225d3b19d8f088f1351a3e304)
</pre>
</div>
</content>
</entry>
<entry>
<title>Future-proof email addresses</title>
<updated>2018-11-01T16:35:32+00:00</updated>
<author>
<name>Zeev Suraski</name>
<email>zeev@php.net</email>
</author>
<published>2018-11-01T16:35:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=9afce019e0e4229c78654349d73ad3a69fce1497'/>
<id>9afce019e0e4229c78654349d73ad3a69fce1497</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed bug #76832 ZendOPcache.MemoryBase periodically deleted by the OS</title>
<updated>2018-09-03T13:09:23+00:00</updated>
<author>
<name>Anatol Belski</name>
<email>ab@php.net</email>
</author>
<published>2018-09-03T13:09:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=f26172f9343cf49d62bbefff355bb76d6adf7ebe'/>
<id>f26172f9343cf49d62bbefff355bb76d6adf7ebe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use string literal as format</title>
<updated>2018-03-12T14:17:08+00:00</updated>
<author>
<name>Anatol Belski</name>
<email>ab@php.net</email>
</author>
<published>2018-03-12T14:17:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=eaa5b1f9115685980e726f32086b06fa42a72ea1'/>
<id>eaa5b1f9115685980e726f32086b06fa42a72ea1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed "opcache.file_cache_fallback" mode.</title>
<updated>2018-03-05T13:01:43+00:00</updated>
<author>
<name>Dmitry Stogov</name>
<email>dmitry@zend.com</email>
</author>
<published>2018-03-05T13:01:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=350082ed7146fd889d04c8864d8d649bea73dd01'/>
<id>350082ed7146fd889d04c8864d8d649bea73dd01</id>
<content type='text'>
It's not safe to change value of ZCG(accel_directives).file_cache_only, becuse it might be altered by INI subsystem.
Use global variable instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's not safe to change value of ZCG(accel_directives).file_cache_only, becuse it might be altered by INI subsystem.
Use global variable instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>year++</title>
<updated>2018-01-02T04:53:31+00:00</updated>
<author>
<name>Xinchen Hui</name>
<email>laruence@gmail.com</email>
</author>
<published>2018-01-02T04:53:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=ccd4716ec77c60391d63a1a6af72f96a09b1c617'/>
<id>ccd4716ec77c60391d63a1a6af72f96a09b1c617</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'PHP-7.0' into PHP-7.1</title>
<updated>2017-06-20T13:45:05+00:00</updated>
<author>
<name>Anatol Belski</name>
<email>ab@php.net</email>
</author>
<published>2017-06-20T13:45:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=67f063e3ac82bd0efeefac7bb8f6ec3acae31ebf'/>
<id>67f063e3ac82bd0efeefac7bb8f6ec3acae31ebf</id>
<content type='text'>
* PHP-7.0:
  Split requested size as expected by CreateFileMapping.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PHP-7.0:
  Split requested size as expected by CreateFileMapping.
</pre>
</div>
</content>
</entry>
<entry>
<title>Split requested size as expected by CreateFileMapping.</title>
<updated>2017-06-20T13:40:25+00:00</updated>
<author>
<name>Anatol Belski</name>
<email>ab@php.net</email>
</author>
<published>2017-06-20T13:38:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=6a854e274088341103835f99a4c437596cbf66c0'/>
<id>6a854e274088341103835f99a4c437596cbf66c0</id>
<content type='text'>
Thus fixing ext\opcache\tests\log_verbosity_bug.phpt fails on 64-bit.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thus fixing ext\opcache\tests\log_verbosity_bug.phpt fails on 64-bit.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'PHP-7.0' into PHP-7.1</title>
<updated>2017-04-15T17:35:13+00:00</updated>
<author>
<name>Anatol Belski</name>
<email>ab@php.net</email>
</author>
<published>2017-04-15T17:35:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=039ef0143bd730824ecf31290457c09826d3043f'/>
<id>039ef0143bd730824ecf31290457c09826d3043f</id>
<content type='text'>
* PHP-7.0:
  improve/fix error handling
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PHP-7.0:
  improve/fix error handling
</pre>
</div>
</content>
</entry>
</feed>
