Bug #79435 [Opn->Nab]: property assignment via call_user_func is inconsistent
| From: | requinix@php.net | Date: | Mon, 30 Mar 2020 18:23:28 +0000 |
| Subject: | Bug #79435 [Opn->Nab]: property assignment via call_user_func is inconsistent | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-226347@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79435&edit=1
ID: 79435
Updated by: requinix@php.net
Reported by: ikarol at gomel dot iba dot by
Summary: property assignment via call_user_func is
inconsistent
-Status: Open
+Status: Not a bug
Type: Bug
Package: Scripting Engine problem
Operating System: Windows
PHP Version: 7.2.29
Block user comment: N
Private report: N
New Comment:
$testMap is initialized using the setC/setD methods on $this, which is $a1 at that time.
Previous Comments:
------------------------------------------------------------------------
[2020-03-30 15:55:55] ikarol at gomel dot iba dot by
Description:
------------
Hi,
so if property assignment is done through call_user_func, it will only work for the first call, but
will fail for all next(see var_dump output in the example).
Also, if I would assign through dynamic method name call ($this->{$methodName}($prop)), it will
work fine.
Test script:
---------------
https://3v4l.org/ta03s
Expected result:
----------------
All instances of A class should have defined(not-null)C properties
Actual result:
--------------
Only the first instance of A class has it defined, while other do not.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79435&edit=1