<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/NEWS, branch php-7.3.22</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>Prepare 7.3.22 tag</title>
<updated>2020-09-01T08:33:15+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-09-01T08:33:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=c15e2532a2468e1e48429d203ed002ec029c61b0'/>
<id>c15e2532a2468e1e48429d203ed002ec029c61b0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Prepare for 7.3.22RC1</title>
<updated>2020-08-18T07:19:25+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-08-18T07:16:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=3edc6eea84956efccd76913d3ff7e73b03d831ac'/>
<id>3edc6eea84956efccd76913d3ff7e73b03d831ac</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails</title>
<updated>2020-08-11T15:12:48+00:00</updated>
<author>
<name>Ahmed Abdou</name>
<email>email@ahmed.ro</email>
</author>
<published>2019-02-17T21:59:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=2fe2e5b48f8cf9a45ac2530dd0e2dca8f4287e01'/>
<id>2fe2e5b48f8cf9a45ac2530dd0e2dca8f4287e01</id>
<content type='text'>
PDO driver constructors are throwing PdoException without setting
errorInfo, so create a new reusable function that throws exceptions
for PDO and will also set the errorInfo. Use this function in
pdo_mysql, pdo_sqlite, and pdo_pgsql.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PDO driver constructors are throwing PdoException without setting
errorInfo, so create a new reusable function that throws exceptions
for PDO and will also set the errorInfo. Use this function in
pdo_mysql, pdo_sqlite, and pdo_pgsql.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug #75785 by attempt switching endianness on Maker's Note</title>
<updated>2020-08-11T14:26:34+00:00</updated>
<author>
<name>Nawarian</name>
<email>nickolas@phpsp.org.br</email>
</author>
<published>2020-07-12T19:53:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=2fa4ca95db262267aa6bd46c5e2f74aa42542fc3'/>
<id>2fa4ca95db262267aa6bd46c5e2f74aa42542fc3</id>
<content type='text'>
Different manufacturer models may come with a
different endianness (motorola/intel) format. In
order to avoid a big refactor and a gigantic lookup
table, this commit simply attempts to switch the
endianness and proceed when values are acceptable.

Closes GH-5849.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Different manufacturer models may come with a
different endianness (motorola/intel) format. In
order to avoid a big refactor and a gigantic lookup
table, this commit simply attempts to switch the
endianness and proceed when values are acceptable.

Closes GH-5849.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #48585: com_load_typelib holds reference, fails on second call</title>
<updated>2020-08-11T09:26:50+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-08-04T16:25:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=dc108feab8d88f62d7fcba3d2c9a058432463118'/>
<id>dc108feab8d88f62d7fcba3d2c9a058432463118</id>
<content type='text'>
Whether the type library is cached is actually irrelevant here; what
matters is that the symbols are imported, and since these are not
cached, we have to import them for every request.  And we cannot cache
the symbols, because the import depends on the current codepage, but
the codepage is a `PHP_INI_ALL` setting.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Whether the type library is cached is actually irrelevant here; what
matters is that the symbols are imported, and since these are not
cached, we have to import them for every request.  And we cannot cache
the symbols, because the import depends on the current codepage, but
the codepage is a `PHP_INI_ALL` setting.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed bug #79951</title>
<updated>2020-08-11T08:33:59+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-08-11T08:33:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=9d9dffe60aee0fb469ee0d414eca2a5033a7eafc'/>
<id>9d9dffe60aee0fb469ee0d414eca2a5033a7eafc</id>
<content type='text'>
One branch did not release tmp_replace_entry_str.

Also reduce the scope of some variables.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
One branch did not release tmp_replace_entry_str.

Also reduce the scope of some variables.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug #79944</title>
<updated>2020-08-10T18:42:50+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-08-10T14:53:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=a06eed0c0ec03bdbb0f97aede393b5c687041d88'/>
<id>a06eed0c0ec03bdbb0f97aede393b5c687041d88</id>
<content type='text'>
Only return true from dns_get_mx if we actually found any MX record.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only return true from dns_get_mx if we actually found any MX record.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #79922: Crash after multiple calls to xml_parser_free()</title>
<updated>2020-08-10T10:23:44+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-08-10T08:40:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=0af3f493121f8eb5f71051303c5ee1a42a81fc6f'/>
<id>0af3f493121f8eb5f71051303c5ee1a42a81fc6f</id>
<content type='text'>
We must not call `zend_list_delete()` in resource closer functions
exposed to userland, because decreasing the refcount there leads to
use-after-free scenarios.  In this case, commit 4a42fbb worked for
typical use-cases where `xml_parser_free()` has been called exactly
once for the resource, because there is an internal zval (`-&gt;index`)
referencing the same resource which already increased the refcount by
one.  However, when `xml_parser_free()` is called multiple times on the
same XML parser resource, the resource would be freed prematurely.

Instead we forcefully close the resource in `xml_parser_free()`.  We
also could decrease the refcount of the resource there, but that would
require to call `xml_parser_free()` which is somewhat uncommon, and
would be particularly bad wrt. PHP 8 where that function is a NOP, and
as such doesn't have to be called.  So we do no longer increase the
refcount of the resource when copying it to the internal zval, and let
the usualy refcounting semantics take care of the resource destruction.

[1] &lt;http://git.php.net/?p=php-src.git;a=commit;h=4a42fbbbc73aad7427aef5c89974d1833636e082&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We must not call `zend_list_delete()` in resource closer functions
exposed to userland, because decreasing the refcount there leads to
use-after-free scenarios.  In this case, commit 4a42fbb worked for
typical use-cases where `xml_parser_free()` has been called exactly
once for the resource, because there is an internal zval (`-&gt;index`)
referencing the same resource which already increased the refcount by
one.  However, when `xml_parser_free()` is called multiple times on the
same XML parser resource, the resource would be freed prematurely.

Instead we forcefully close the resource in `xml_parser_free()`.  We
also could decrease the refcount of the resource there, but that would
require to call `xml_parser_free()` which is somewhat uncommon, and
would be particularly bad wrt. PHP 8 where that function is a NOP, and
as such doesn't have to be called.  So we do no longer increase the
refcount of the resource when copying it to the internal zval, and let
the usualy refcounting semantics take care of the resource destruction.

[1] &lt;http://git.php.net/?p=php-src.git;a=commit;h=4a42fbbbc73aad7427aef5c89974d1833636e082&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug #70574: Move files to proper locale dir</title>
<updated>2020-08-07T12:37:27+00:00</updated>
<author>
<name>Florian Engelhardt</name>
<email>florian.engelhardt@oxid-esales.com</email>
</author>
<published>2020-08-05T11:33:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=5be670265b261f2c0162ba89827f5652ba584b05'/>
<id>5be670265b261f2c0162ba89827f5652ba584b05</id>
<content type='text'>
Closes GH-5940.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-5940.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #79934: CRLF-only line in heredoc causes parsing error</title>
<updated>2020-08-06T10:02:54+00:00</updated>
<author>
<name>Pieter van den Ham</name>
<email>p.e.vandenham@gmail.com</email>
</author>
<published>2020-08-05T18:21:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=06ade15528fa64acd9dea92b072a985793d1dcc1'/>
<id>06ade15528fa64acd9dea92b072a985793d1dcc1</id>
<content type='text'>
Fixes the function `next_newline()` in zend_language_scanner.l. The
function now correctly returns a newline_len of 2 for "\r\n".

Closes GH-5944.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes the function `next_newline()` in zend_language_scanner.l. The
function now correctly returns a newline_len of 2 for "\r\n".

Closes GH-5944.
</pre>
</div>
</content>
</entry>
</feed>
