[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-bugs
Subject: [DOC-BUGS] Doc #81675 [Com]: Undocumented change in get_class_vars behaviour with static properties
From: "pedder55655 at gmx dot net" <php-bugs () lists ! php ! net>
Date: 2022-09-22 10:07:38
Message-ID: E1obJ7K-0003ht-3a () bugs ! php ! net
[Download RAW message or body]
Edit report at https://bugs.php.net/bug.php?id=81675&edit=1
ID: 81675
Comment by: pedder55655 at gmx dot net
Reported by: diede at yoast dot com
Summary: Undocumented change in get_class_vars behaviour with
static properties in 8.1
Status: Verified
Type: Documentation Problem
Package: Scripting Engine problem
PHP Version: 8.1.0
Block user comment: N
Private report: N
New Comment:
I can can confirm this.
I use a static object for localisation and modify the static variables upon load-up \
with those from the user's preference. After upgrade to php 8.1, they all see the \
default language as my property assignments have no effect anymore.
Previous Comments:
------------------------------------------------------------------------
[2022-03-03 12:47:07] hfsd65y at protonmail dot com
Thanks
https://altosaxo.net/products/the-revivalists-t-shirt-men
https://altosaxo.net/products/papooz-t-shirt-men
https://altosaxo.net/products/los-lobos-t-shirt-men
https://altosaxo.net/products/black-star-riders-t-shirt-men
https://altosaxo.net/products/collective-soul-t-shirt-men
------------------------------------------------------------------------
[2022-03-03 12:46:24] hsf45y at protonmail dot com
Thanks
https://altosaxo.net/products/screaming-trees-t-shirt-men
https://altosaxo.net/products/frenzal-rhomb-t-shirt-men
https://altosaxo.net/products/despised-icon-t-shirt-men
https://altosaxo.net/products/buffalo-daughter-t-shirt-men
https://altosaxo.net/products/the-warlocks-t-shirt-men
------------------------------------------------------------------------
[2022-03-03 12:45:33] ghsdf6sdf at protonmail dot com
Thanks
https://altosaxo.net/products/pistol-annies-t-shirt-men
https://altosaxo.net/products/makthaverskan-t-shirt-men
https://altosaxo.net/products/cloud-nothings-t-shirt-men
https://altosaxo.net/products/courteeners-t-shirt-men
https://altosaxo.net/products/peach-tree-rascals-t-shirt-men
------------------------------------------------------------------------
[2021-11-30 14:11:42] nikic@php.net
As the behavior was there for quite a long time, adding a note for buggy behavior \
with PHP < 8.1 without opcache seems reasonable.
------------------------------------------------------------------------
[2021-11-30 13:40:12] bugs dot php dot net_nospam at adviesenzo dot nl
> I'm not sure whether this should be documented,
given that OPcache is likely always enabled in production
environments at least.
Well, considering it took us a not insignificant amount of time to pin down what was \
causing the difference in behaviour and that the change removes a difference between \
typical production vs develop environments which people may have run into and got \
stuck on trying to figure out before, I think documenting this would be useful, if \
for no other reason than to save other people running into the same/similar situation \
debug time.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=81675
--
Edit this bug report at https://bugs.php.net/bug.php?id=81675&edit=1
--
PHP Documentation Bugs Mailing List (https://www.php.net/)
To unsubscribe, visit: https://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic