<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/mbstring/mbstring.stub.php, branch master</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>Generate class entries from stubs for ldap, libxml, mbstring and mysqli</title>
<updated>2021-02-16T13:46:19+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2021-02-09T22:21:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=cad66533f0cb936154caca6e6857a3490887cc11'/>
<id>cad66533f0cb936154caca6e6857a3490887cc11</id>
<content type='text'>
Closes GH-6684
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-6684
</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>Update mbstring parameter names</title>
<updated>2020-09-28T07:51:58+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-09-24T14:14:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=cafceea7424edca6bfe969cba39068dbe6aa64ba'/>
<id>cafceea7424edca6bfe969cba39068dbe6aa64ba</id>
<content type='text'>
Closes GH-6207.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-6207.
</pre>
</div>
</content>
</entry>
<entry>
<title>Standardize mbstring and string on using 'string' as a parameter name.</title>
<updated>2020-09-21T10:06:50+00:00</updated>
<author>
<name>Larry Garfield</name>
<email>larry@garfieldtech.com</email>
</author>
<published>2020-09-20T00:04:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=94854e0dff581e3cdf3ab635e8cdb30f22020c3f'/>
<id>94854e0dff581e3cdf3ab635e8cdb30f22020c3f</id>
<content type='text'>
Closes GH-6171.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-6171.
</pre>
</div>
</content>
</entry>
<entry>
<title>Promote a few remaining errors in ext/standard</title>
<updated>2020-09-15T12:26:16+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2020-09-10T11:28:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=c37a1cd650a5399c4a89543759deedcc7280becd'/>
<id>c37a1cd650a5399c4a89543759deedcc7280becd</id>
<content type='text'>
Closes GH-6110
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-6110
</pre>
</div>
</content>
</entry>
<entry>
<title>Make mb_send_mail() consistent with mail()</title>
<updated>2020-09-14T09:52:33+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2020-09-14T09:52:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=1c81a3456372693dc4036fd7a3deb143cbb3aeef'/>
<id>1c81a3456372693dc4036fd7a3deb143cbb3aeef</id>
<content type='text'>
The $additional_headers parameter shouldn't accept null.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The $additional_headers parameter shouldn't accept null.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move custom type checks to ZPP</title>
<updated>2020-09-02T09:11:38+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2020-08-24T18:42:29+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=3e800e997bddc29cd28924c44846f7d2133a8933'/>
<id>3e800e997bddc29cd28924c44846f7d2133a8933</id>
<content type='text'>
Closes GH-6034
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-6034
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a few missing parameter types in stubs</title>
<updated>2020-07-30T12:26:45+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2020-07-28T21:00:44+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=0d330e1a022d536de8a679d11dc8ec6f9fd64be3'/>
<id>0d330e1a022d536de8a679d11dc8ec6f9fd64be3</id>
<content type='text'>
Related to GH-5627
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Related to GH-5627
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix UNKNOWN default values in ext/mbstring and ext/gd</title>
<updated>2020-07-28T15:06:25+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2020-05-18T18:32:21+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=ac0da090ae25b370721f2d0b26e5d60c61f1c93b'/>
<id>ac0da090ae25b370721f2d0b26e5d60c61f1c93b</id>
<content type='text'>
Closes GH-5598
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-5598
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix mb_ereg_search* arg and func info</title>
<updated>2020-07-21T08:40:08+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-07-21T08:39:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=33ddc3bb9673facf5531649bad1faf08b2f27009'/>
<id>33ddc3bb9673facf5531649bad1faf08b2f27009</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
