|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-03-30 18:23 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2020-03-30 18:23 UTC] requinix@php.net
[2020-03-30 19:03 UTC] ikarol at gomel dot iba dot by
[2020-03-30 19:17 UTC] requinix@php.net
[2020-03-30 19:51 UTC] ikarol at gomel dot iba dot by
[2020-03-30 20:42 UTC] requinix@php.net
[2020-03-30 21:07 UTC] ikarol at gomel dot iba dot by
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 06:00:02 2025 UTC |
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.