Bug #79435 [NEW]: property assignment via call_user_func is inconsistent

From: Date: Mon, 30 Mar 2020 15:55:56 +0000
Subject: Bug #79435 [NEW]: property assignment via call_user_func is inconsistent
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226344@lists.php.net to get a copy of this message
From: ikarol at gomel dot iba dot by Operating system: Windows PHP version: 7.2.29 Package: Scripting Engine problem Bug Type: Bug Bug description:property assignment via call_user_func is inconsistent 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 bug report at https://bugs.php.net/bug.php?id=79435&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79435&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79435&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79435&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79435&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79435&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79435&r=support Expected behavior: https://bugs.php.net/fix.php?id=79435&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79435&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79435&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79435&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79435&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79435&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79435&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79435&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79435&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79435&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79435&r=mysqlcfg

« previous php.bugs (#226344) next »