<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/Zend/tests/nullsafe_operator, branch master</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/'/>
<entry>
<title>Deprecate passing null to non-nullable arg of internal function</title>
<updated>2021-02-11T20:46:13+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-11-30T15:45:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=b10416a652d26577a22fe0b183b2258b20c8bb86'/>
<id>b10416a652d26577a22fe0b183b2258b20c8bb86</id>
<content type='text'>
This deprecates passing null to non-nullable scale arguments of
internal functions, with the eventual goal of making the behavior
consistent with userland functions, where null is never accepted
for non-nullable arguments.

This change is expected to cause quite a lot of fallout. In most
cases, calling code should be adjusted to avoid passing null. In
some cases, PHP should be adjusted to make some function arguments
nullable. I have already fixed a number of functions before landing
this, but feel free to file a bug if you encounter a function that
doesn't accept null, but probably should. (The rule of thumb for
this to be applicable is that the function must have special behavior
for 0 or "", which is distinct from the natural behavior of the
parameter.)

RFC: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg

Closes GH-6475.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This deprecates passing null to non-nullable scale arguments of
internal functions, with the eventual goal of making the behavior
consistent with userland functions, where null is never accepted
for non-nullable arguments.

This change is expected to cause quite a lot of fallout. In most
cases, calling code should be adjusted to avoid passing null. In
some cases, PHP should be adjusted to make some function arguments
nullable. I have already fixed a number of functions before landing
this, but feel free to file a bug if you encounter a function that
doesn't accept null, but probably should. (The rule of thumb for
this to be applicable is that the function must have special behavior
for 0 or "", which is distinct from the natural behavior of the
parameter.)

RFC: https://wiki.php.net/rfc/deprecate_null_to_scalar_internal_arg

Closes GH-6475.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix undef var exception handling in JMP_NULL</title>
<updated>2020-09-15T13:44:01+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-09-15T13:43:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=3c53732332c4b9d3904eec0d1c42f0d4d4bf65c6'/>
<id>3c53732332c4b9d3904eec0d1c42f0d4d4bf65c6</id>
<content type='text'>
We need to initialize the result variable in the exceptional
case as well.

Fixes oss-fuzz #25526.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need to initialize the result variable in the exceptional
case as well.

Fixes oss-fuzz #25526.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve error messages mentioning parameters instead of arguments</title>
<updated>2020-09-09T08:47:43+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2020-08-16T19:49:20+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=9975986b7ef849c3a8e73a48748befbfdc50e416'/>
<id>9975986b7ef849c3a8e73a48748befbfdc50e416</id>
<content type='text'>
Closes GH-5999
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-5999
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests for nullsafe operator on delayed oplines</title>
<updated>2020-08-31T14:44:36+00:00</updated>
<author>
<name>Ilija Tovilo</name>
<email>ilija.tovilo@me.com</email>
</author>
<published>2020-08-15T15:43:34+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=70300f6c9dcabb16740dafd017db4798c2a579e8'/>
<id>70300f6c9dcabb16740dafd017db4798c2a579e8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename standard array function parameters to $array</title>
<updated>2020-08-11T23:11:59+00:00</updated>
<author>
<name>Tyson Andre</name>
<email>tysonandre775@hotmail.com</email>
</author>
<published>2020-08-10T23:48:41+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=1e9a5c67ef6d075df16d4183abf62e4c99b2f8c6'/>
<id>1e9a5c67ef6d075df16d4183abf62e4c99b2f8c6</id>
<content type='text'>
This is targeting 8.0.

`$arg` seems like a poor choice of a name,
especially if the function were to have arguments added.

In many cases, the php.net documentation already has $array for these functions.
E.g. https://www.php.net/manual/en/function.array-intersect.php

I'd assume that since named arguments was added to 8.0 near the feature freeze,
PHP's maintainers had planned to make the names consistent
and gradually use the same name for  docs and implementation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is targeting 8.0.

`$arg` seems like a poor choice of a name,
especially if the function were to have arguments added.

In many cases, the php.net documentation already has $array for these functions.
E.g. https://www.php.net/manual/en/function.array-intersect.php

I'd assume that since named arguments was added to 8.0 near the feature freeze,
PHP's maintainers had planned to make the names consistent
and gradually use the same name for  docs and implementation.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix ?-&gt; in encaps vars without braces</title>
<updated>2020-08-11T19:16:44+00:00</updated>
<author>
<name>Ilija Tovilo</name>
<email>ilija.tovilo@me.com</email>
</author>
<published>2020-08-09T17:24:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=10f660f0a51812ac62e8f03895944e895e553240'/>
<id>10f660f0a51812ac62e8f03895944e895e553240</id>
<content type='text'>
Closes GH-5966.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-5966.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix nullsafe operator on $this</title>
<updated>2020-08-11T13:22:14+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-08-11T13:22:14+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=227f1f148104f192cd86226e53e1e6c595d41cae'/>
<id>227f1f148104f192cd86226e53e1e6c595d41cae</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix nullsafe operator on reference</title>
<updated>2020-08-11T13:11:36+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-08-11T13:11:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=f491dabe403646a751dde52679bc817967477914'/>
<id>f491dabe403646a751dde52679bc817967477914</id>
<content type='text'>
Dereference the value before checking the type. As the happy path
necessarily has to check for references, I'm not bothering to
delay the comparison.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Dereference the value before checking the type. As the happy path
necessarily has to check for references, I'm not bothering to
delay the comparison.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add many missing closing PHP tags to tests</title>
<updated>2020-08-09T20:03:36+00:00</updated>
<author>
<name>Máté Kocsis</name>
<email>kocsismate@woohoolabs.com</email>
</author>
<published>2020-08-09T09:06:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=7aacc705d03887c64a90489e367f4c40b46aa3c2'/>
<id>7aacc705d03887c64a90489e367f4c40b46aa3c2</id>
<content type='text'>
Closes GH-5958
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes GH-5958
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix handling of nullsafe method in empty()</title>
<updated>2020-08-03T08:16:38+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikita.ppv@gmail.com</email>
</author>
<published>2020-08-03T08:16:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/php-git.git/commit/?id=a4c015b4b272b992379517e3b0e8d5c6c6fb213d'/>
<id>a4c015b4b272b992379517e3b0e8d5c6c6fb213d</id>
<content type='text'>
Fixes oss-fuzz #24627.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes oss-fuzz #24627.
</pre>
</div>
</content>
</entry>
</feed>
