<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git, branch php-8.0.0RC2</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>Update versions for PHP 8.0.0RC2</title>
<updated>2020-10-13T21:53:32+00:00</updated>
<author>
<name>Sara Golemon</name>
<email>pollita@php.net</email>
</author>
<published>2020-10-13T21:53:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=52123e79e7eda9a5faf4cb029d256ad2105af3cf'/>
<id>52123e79e7eda9a5faf4cb029d256ad2105af3cf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update NEWS for PHP 8.0.0RC2</title>
<updated>2020-10-13T21:53:31+00:00</updated>
<author>
<name>Sara Golemon</name>
<email>pollita@php.net</email>
</author>
<published>2020-10-13T21:53:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=431421d1cef480a1055e3a3b191639ee1535feb5'/>
<id>431421d1cef480a1055e3a3b191639ee1535feb5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Normalize mb_ereg() return value</title>
<updated>2020-10-13T18:40:55+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-10-13T14:17:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=5582490bf2caa9a416d56378b29c2a2f5e595d60'/>
<id>5582490bf2caa9a416d56378b29c2a2f5e595d60</id>
<content type='text'>
mb_ereg()/mb_eregi() currently have an inconsistent return value
based on whether the $matches parameter is passed or not:

&gt; Returns the byte length of the matched string if a match for
&gt; pattern was found in string, or FALSE if no matches were found
&gt; or an error occurred.
&gt;
&gt; If the optional parameter regs was not passed or the length of
&gt; the matched string is 0, this function returns 1.

Coupling this behavior to the $matches parameter doesn't make sense
-- we know the match length either way, there is no technical
reason to distinguish them. However, returning the match length
is not particularly useful either, especially due to the need to
convert 0-length into 1-length to satisfy "truthy" checks. We
could always return 1, which would kind of match the behavior of
preg_match() -- however, preg_match() actually returns the number
of matches, which is 0 or 1 for preg_match(), while false signals
an error. However, mb_ereg() returns false both for no match and
for an error. This would result in an odd 1|false return value.

The patch canonicalizes mb_ereg() to always return a boolean,
where true indicates a match and false indicates no match or error.
This also matches the behavior of the mb_ereg_match() and
mb_ereg_search() functions.

This fixes the default value integrity violation in PHP 8.

Closes GH-6331.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mb_ereg()/mb_eregi() currently have an inconsistent return value
based on whether the $matches parameter is passed or not:

&gt; Returns the byte length of the matched string if a match for
&gt; pattern was found in string, or FALSE if no matches were found
&gt; or an error occurred.
&gt;
&gt; If the optional parameter regs was not passed or the length of
&gt; the matched string is 0, this function returns 1.

Coupling this behavior to the $matches parameter doesn't make sense
-- we know the match length either way, there is no technical
reason to distinguish them. However, returning the match length
is not particularly useful either, especially due to the need to
convert 0-length into 1-length to satisfy "truthy" checks. We
could always return 1, which would kind of match the behavior of
preg_match() -- however, preg_match() actually returns the number
of matches, which is 0 or 1 for preg_match(), while false signals
an error. However, mb_ereg() returns false both for no match and
for an error. This would result in an odd 1|false return value.

The patch canonicalizes mb_ereg() to always return a boolean,
where true indicates a match and false indicates no match or error.
This also matches the behavior of the mb_ereg_match() and
mb_ereg_search() functions.

This fixes the default value integrity violation in PHP 8.

Closes GH-6331.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'PHP-7.4' into PHP-8.0</title>
<updated>2020-10-13T17:41:27+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-10-13T17:40:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=5aec24c477e72e71a846361f93ef8861b7a262e5'/>
<id>5aec24c477e72e71a846361f93ef8861b7a262e5</id>
<content type='text'>
* PHP-7.4:
  Fix #64076: imap_sort() does not return FALSE on failure
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PHP-7.4:
  Fix #64076: imap_sort() does not return FALSE on failure
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'PHP-7.3' into PHP-7.4</title>
<updated>2020-10-13T17:38:31+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-10-13T17:38:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=d9058b61fb3e1ef0697433324716a8843e92c115'/>
<id>d9058b61fb3e1ef0697433324716a8843e92c115</id>
<content type='text'>
* PHP-7.3:
  Fix #64076: imap_sort() does not return FALSE on failure
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* PHP-7.3:
  Fix #64076: imap_sort() does not return FALSE on failure
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #64076: imap_sort() does not return FALSE on failure</title>
<updated>2020-10-13T17:37:05+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2020-10-13T14:20:55+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=db8bf0a9e07f906ad5d771142e5873688aff8033'/>
<id>db8bf0a9e07f906ad5d771142e5873688aff8033</id>
<content type='text'>
If unsupported `$search_criteria` are passed to `imap_sort()`, the
function returns an empty array, but there is also an error on the
libc-client error stack ("Unknown search criterion: UNSUPPORTED
(errflg=2)").  If, on the other hand, unsupported `$criteria` or
unsupported `$flags` are passed, the function returns `false`.  We
solve this inconsistency by returning `false` for unsupported
`$search_criteria` as well.

Closes GH-6332.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If unsupported `$search_criteria` are passed to `imap_sort()`, the
function returns an empty array, but there is also an error on the
libc-client error stack ("Unknown search criterion: UNSUPPORTED
(errflg=2)").  If, on the other hand, unsupported `$criteria` or
unsupported `$flags` are passed, the function returns `false`.  We
solve this inconsistency by returning `false` for unsupported
`$search_criteria` as well.

Closes GH-6332.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix incorrect zpp parameter count in mb_substr() / mb_strcut()</title>
<updated>2020-10-13T15:46:56+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-10-13T15:44:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=9b4094c3d74cb7e71dd2dc6ae6673a17575b2a13'/>
<id>9b4094c3d74cb7e71dd2dc6ae6673a17575b2a13</id>
<content type='text'>
These functions only accept 4 params.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These functions only accept 4 params.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix default value for some pgsql functions</title>
<updated>2020-10-13T15:29:05+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-10-13T15:28:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=a7e84e2e0220f1df029f12e0199752bf3073fa38'/>
<id>a7e84e2e0220f1df029f12e0199752bf3073fa38</id>
<content type='text'>
These set the PGSQL_DML_EXEC flag by default.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These set the PGSQL_DML_EXEC flag by default.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix null handling in mysqli_begin_transaction()</title>
<updated>2020-10-13T15:12:50+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-10-13T15:10:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=d66e9299158c98e797901dd24073e91fa8063d4b'/>
<id>d66e9299158c98e797901dd24073e91fa8063d4b</id>
<content type='text'>
We don't want an explicit null name hit the !name_len check.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We don't want an explicit null name hit the !name_len check.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix argument nullability in mbstring</title>
<updated>2020-10-13T14:03:04+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-10-13T14:02:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=124bce3c7ab553b249b4503e9950bddf9ac54813'/>
<id>124bce3c7ab553b249b4503e9950bddf9ac54813</id>
<content type='text'>
These arguments were declared nullable in stubs (and should be
nullable), but didn't accept null in zpp.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These arguments were declared nullable in stubs (and should be
nullable), but didn't accept null in zpp.
</pre>
</div>
</content>
</entry>
</feed>
