[PHP-DEV] [RFC] &$result_code parameter in shell_exec

2021-11-26 Thread Luca Petrucci via internals
Hi internals,

I have opened a RFC about the addition of an optional &$result_code
parameter to the shell_exec() function.

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

Thanks,
Luca

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php



Re: [PHP-DEV] Re: [VOTE] Deprecate dynamic properties

2021-11-26 Thread Brady Wetherington via internals
>
> …It's been merged to master, so you could stand up a build now and point
>> to the many deprecation warnings you're expecting.  I'm not saying send PRs
>> to fix them all, just show real impact rather than theoretical guessing. …
>
>
That’s a totally fair ask, and I’ll try and get that done and report back.
I think I’m probably going to run into some Laravel problems here, as they
only _just_ came up with a version that will run under php 8.1. I’ll get as
far as I can and let you know - even if I determine that my suspicions were
completely incorrect :)

>


Re: [PHP-DEV] Re: [VOTE] Deprecate dynamic properties

2021-11-26 Thread Sara Golemon
On Fri, Nov 26, 2021 at 12:16 AM Brady Wetherington via internals <
internals@lists.php.net> wrote:

> > > That's 1.5 million hours, which is 171 developer-years.
> >
> > If we're going to imagine numbers; there are 6 million PHP developers
> > in the world*. If on average they each lose just 1 hour per year by
> > making typos and accidentally creating a properties dynamically,
> > that's 6 million hours, or 684.93 years!
> >
> > So the value delivered by this change would be 4 times the cost just
> > in the first year. And then every year after that it's pure benefit.
>
>
The point of this counter-argument which may have gotten lost in the snark
is that nobody has done the legwork to know definitively what the impact of
this will be.  You're both making up numbers, and this is part of the
reason the deprecation warnings exist, so that concerned product developers
with a stake in making sure these sorts of things go smoothly have time to
test such changes out on your own codebases.  It's been merged to master,
so you could stand up a build now and point to the many deprecation
warnings you're expecting.  I'm not saying send PRs to fix them all, just
show real impact rather than theoretical guessing.  If it's as bad as you
fear, maybe we run another RFC to remove the change before it ever sees the
light of day and you become a super hero. Call you Uber Brady.  Or maybe
not a single deprecation warning shows up. Or just a couple that are easily
fixed.  Let's make PHP better, together.

-Sara


Re: [PHP-DEV] [VOTE] Deprecate dynamic properties

2021-11-26 Thread Larry Garfield
On Fri, Nov 26, 2021, at 3:56 AM, Peter Bowyer wrote:

> ---
> I get the impression a lot of comments on this mailing list are from people
> who know other languages, would like to work with another language, and
> since they (have to?) use PHP would like PHP to be another language.
>
> I find that fascinating. And I'd be well up for having a round-table
> discussion and recording a podcast on it.
> ---

People have been making that complaint about other people since at least 2005 
or so.  "You're turning PHP into Java, stop it."  "You're turning PHP into 
Ruby, stop it."  "Just go use Rust instead if you want that feature and leave 
us alone."

PHP evolves by stealing ideas from every language it can, without shame, and is 
a far, far better language today because of it.  Please, stop with the "you 
just want to be like language X" complaint.  It's over-used, inaccurate, and 
just plain ignorant as an argument.

There are ample reasons to argue against any particular feature, but "it makes 
PHP too much like language X" is a particularly bad one that everyone needs to 
stop using, forever.

--Larry Garfield

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php



Re: [PHP-DEV] PHP 8.1.0 Released!

2021-11-26 Thread James Titcumb
On Fri, 26 Nov 2021 at 10:10, Thomas Nunninger 
wrote:

> let's celebrate! Congrats and thanks to all who have been involved in
> creating this great new release!
>

I concur, thank you to everyone who has helped make this release!

Thanks
James


Re: [PHP-DEV] PHP 8.1.0 Released!

2021-11-26 Thread Thomas Nunninger

Hey,

let's celebrate! Congrats and thanks to all who have been involved in 
creating this great new release!


Best regards
Thomas

Am 25.11.21 um 19:20 schrieb Patrick ALLAERT:

The PHP development team announces the immediate availability of PHP 8.1.0.
This release marks the latest major release of the PHP language.

PHP 8.1 comes with numerous improvements and new features such as:
- Enumerations
- Readonly properties
- Fibers
- Pure Intersection Types
- never return type
- First-class Callable Syntax
- "final" modifier for class constants
- New fsync and fdatasync functions
- New array_is_list function
- Explicit Octal numeral notation
- And much much more...

For source downloads of PHP 8.1.0 please visit our downloads page
(https://www.php.net/downloads.php), Windows source and binaries can be
found on https://windows.php.net/download/.
The list of changes is recorded in the ChangeLog
(https://www.php.net/ChangeLog-8.php#8.1.0).
The migration guide (http://php.net/manual/en/migration81.php) is available
in the PHP Manual.
Please consult it for the detailed list of new features and backward
incompatible changes.

Many thanks to all the contributors and supporters!

Release Manifest here and below:
https://gist.github.com/patrickallaert/0be0058dafafc7a669af7f6d5f39bc81

Patrick Allaert, Ben Ramsey & Joe Watkins

php-8.1.0.tar.bz2
SHA256 hash:
0725ed2baea125496a898455d501a77460218b2a0cfad773fa9322f491b82b61
PGP signature:
-BEGIN PGP SIGNATURE-

iQIzBAABCAAdFiEE8faSI4+8FmblpczUGZ+d/vb/uv0FAmGdObkACgkQGZ+d/vb/
uv2zAhAAh8XwQSAMOM86xbcTScnAyhHSSTtujaCH/vUMOEsdE1a/fc0a0lAwW4T1
/IFF/0+GLpOBq827KtG8DrklNBnnc3wOwGWrBu55timNWuT5vuwFuOqExf2Nrlw3
Pxz1rQ1CbCkEsBr8gF74/Tw5MS8fay+Oq0FXqHPLfL/8/oBBmpPsddR/0ycFB7PP
K1OVnpRwfq3UanVOUxOQxfsR86sGsldNn6y8iv2N2D/Mq8Qxjeu1ZAy34gwytUW3
g0XxcXAYA23KwWuDM9S4zdSTjh5cGCzbt3ueRXC59ar3wNkL8dAQlytlyWT1U8B+
OCCp/Nc94ebNXZFe0TfltMgpepjOYkJw33MzJC3K3EgAeUI4zzgB38CS8ekYExDq
VtTW9edUCt1SBXbsoX910QyU5O4HWA84qc80Jk2Qoiong7IRnotHDsf8pAzDeg3L
MSCxU8syPieMRiS1eYaFXV+DRY8ByiGuOLtMeh00OSMkXGK6QP7x31XKs+SbVli9
Pen4KR4X3mNQ3akAM5qSMiHkzitZXhjtcu9guuwgzinBhJENIEQlKbvmDVAUjWlF
uPdHPby9Ip33sL8ZCRs3YQUofz3DaGbxZqDu801yUzYjWG/f2IXauU7QUkMiZ1yY
rbRoO/YMLy8rz80rOK8tAS3GiyxVn5hR2Fcgsks9za0ZXx8oQA4=
=7J12
-END PGP SIGNATURE-

php-8.1.0.tar.gz
SHA256 hash:
848705043ea4a6e022246ae12a1bff6afcf5c73ea98c6ac4d2108d6028c5c125
PGP signature:
-BEGIN PGP SIGNATURE-

iQIzBAABCAAdFiEE8faSI4+8FmblpczUGZ+d/vb/uv0FAmGdObkACgkQGZ+d/vb/
uv39wg//Yfy45SiTS/72gTQhZhX0ssSeMHuYh5Uv2GLtb5HrzpYmaJYfUKs5SS3r
Ztik7sV8HclvRfy1wZGv4TkFPrptxjXXSpvrXaLKRb4qqN4XUtD1MpuX11BUrX9S
J2izARb/OK9+NNn1zuQ0gPC3gjdE4RvUP9DOv3DcDktg91itaUWeM4/B4o1RCQlk
H2UPmVE4ZX5QZrAY1TDjuxDpT5N32piLHPR6/oO/iTb5Y9vBLDH0qYVG1wlrwtH4
B2JDLnvN1B1Ta4t4wbR3EgpKkMP4VTAbcnTbM7fm0kHB8at6RZCFbroLoz8BpLGi
oHGPFIDrbswn26Vtgb7hH7SpaD3ZbXi3sc0x0kSbyPScS2LOpSoCH4xbTR090VAK
1hbsZBMszTu3sI089EHzWaQ6FuPQONXONEKzSOG7WWk7Y1alfhjUMuRNTQHIxj0R
xjIzHK8N71RWK3qJkPloQKZwCC83saNAWknj+w0oO5JNvt6NHobPJzBogfmZqFov
VYqQFrvG/Vy0ff3tGrpvQkSyUvNtsvL50lY8CCj37OJ0H0XiVHbZxblvBU6hFGgN
bU6+wN7fmm++iS9Jk39qsIGzsFB1MWKqwcUdrkvUo04U5HfFtpoko6hqGldYKpxh
QUktAat9U2n/DtHAcscUzs8odrN9hRnvi2ENIURrsM3EWYYJZYU=
=kUBK
-END PGP SIGNATURE-

php-8.1.0.tar.xz
SHA256 hash:
a1317eff0723a2b3d3122bbfe107a1158570ea2822dc35a5fb360086db0f6bbc
PGP signature:
-BEGIN PGP SIGNATURE-

iQIzBAABCAAdFiEE8faSI4+8FmblpczUGZ+d/vb/uv0FAmGdOboACgkQGZ+d/vb/
uv29OQ/+MTwutRkruh5cqqrfCsAHUq8zaIsb5e2aQnaOhVZ93S/tfEKxQjVaGLyQ
6D0eZtToCr/yGE3LCl5514OpgF2yf6Nvpx1xtHlVcsYY94ULChBTDGyng7wlxRx3
aAZRBNqUHtVCN/ZluzCndcbc32j05ukIjFLYM3OuEY9pK7DbrW+EAt4LA67uffSL
0pdrFTVNVFvUsoykN40rixCR4vDyAGocHOq90MjYj/VBy/1I9wN87pV55qt3E9xw
XnYX6M3ZZHeaqmiDv7EcN7vf47qtbmQM5XEn5iUnFDY6HCyLkvjgkTNJhY9FrXxp
4ciRWzTbzHQ+8TF8SG3CVdFnTe1rTAtHvorq4A6VV7FB7zeAvkTJNLaIfs6/YULp
hMLk6A/N/gGpM7qgJwgB2Cg2DGOYyHK0dxJ1l5CaRIFOT2xBSUI5O3YdC40o7UyD
Zh3iN7X8aLCcfqCdGgBlVaIjLCMvhqtlJU3JKMlp3A3cgXlyRcr72eT3lBH3J/QE
UZECfudsHFzNdE6FZu0sVTm+oDd7CHPJboS06CuwcuElxHZHhS9e6kfmNvNTBw6g
8vHDS5tq8kqiox8R1sSGN9gCSH1EkI2Em+G0JFouTap2/UNl8/jCcvdKL+kdjydH
TQs21fi59WE7BXJjymbnUozLRx3owLmDxo3U9IInUKwRLUnYmZU=
=jy/h
-END PGP SIGNATURE-


>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php



[PHP-DEV] Re: CI issues

2021-11-26 Thread Christoph M. Becker
On 26.11.2021 at 10:36, Nikita Popov wrote:

> On Wed, Nov 24, 2021 at 1:41 PM Nikita Popov  wrote:
>
>> We're currently having some issues with CI, with both Travis and Azure not
>> working, basically for the same reason (credits/parallelism for open-source
>> projects got used up or expired). I've opened support requests on both
>> platforms, but until then expect everything to fail (Cirrus and AppVeyor
>> still work though).
>>
>
> Both Travis and Azure Pipelines are working again.

Thank you very much!

--
Christoph M. Becker

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php



Re: [PHP-DEV] [VOTE] Deprecate dynamic properties

2021-11-26 Thread Peter Bowyer
On Thu, 25 Nov 2021 at 20:58, Dan Ackroyd  wrote:

> For the people who are currently voting 'no', I'd ask are you really
> sure that the amount of work adding "#[AllowDynamicProperties]" to the
> classes you want to keep having dynamic properties is really that much
> time compared to the time that would be saved by having PHP itself
> give an error when a user accidentally creates a dynamic property?
>

No, I don't. I see the vote as a "boiling frog" moment and a protest vote
in reaction to other changes which have had a bigger impact on
backwards-compatibility.

---
I get the impression a lot of comments on this mailing list are from people
who know other languages, would like to work with another language, and
since they (have to?) use PHP would like PHP to be another language.

I find that fascinating. And I'd be well up for having a round-table
discussion and recording a podcast on it.
---

PHP fills a big niche. it's not the niche that most people on this list
seem to want it to fill, but it does. And the results people accomplish
with PHP - not in spite of PHP, but because of PHP - are impressive.

There are unresolved discussions that have been going on since at least
2019 [1] about direction and what PHP should become. With the formation of
the PHP Foundation I hope these can be revisited.

Peter

References:
1. https://externals.io/message/106453


[PHP-DEV] Re: CI issues

2021-11-26 Thread Nikita Popov
On Wed, Nov 24, 2021 at 1:41 PM Nikita Popov  wrote:

> Hi internals,
>
> We're currently having some issues with CI, with both Travis and Azure not
> working, basically for the same reason (credits/parallelism for open-source
> projects got used up or expired). I've opened support requests on both
> platforms, but until then expect everything to fail (Cirrus and AppVeyor
> still work though).
>

Both Travis and Azure Pipelines are working again.

Regards,
Nikita


[PHP-DEV] Re: [VOTE] Deprecate dynamic properties

2021-11-26 Thread Nikita Popov
On Fri, Nov 12, 2021 at 2:07 PM Nikita Popov  wrote:

> Hi internals,
>
> I've opened the vote on
> https://wiki.php.net/rfc/deprecate_dynamic_properties. Voting will close
> 2021-11-26.
>

The RFC has been accepted with 52 votes in favor and 25 against.

Regards,
Nikita