Req #76072 [NEW]: support __getStatic, __setStatic, and all

From: Date: Fri, 09 Mar 2018 09:25:35 +0000
Subject: Req #76072 [NEW]: support __getStatic, __setStatic, and all
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214241@lists.php.net to get a copy of this message
From: mepehok at mailtrix dot net Operating system: PHP version: 7.2.3 Package: *General Issues Bug Type: Feature/Change Request Bug description:support __getStatic, __setStatic, and all Description: ------------ I know I "shouldn't be using magic methods", there's no need to repeat it every time this feature is requested, but the reality is that they are useful in certain circumstances, like testing. No one is asking to allow static class properties to be dynamically defined. From my understanding of php source code, this is already possible, but it is not enabled in user code. Can we please have this implemented without making it a big deal about code cleanness and kinda arguments that are not really helpful? Thanks. -- Edit bug report at https://bugs.php.net/bug.php?id=76072&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76072&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76072&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76072&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76072&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76072&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76072&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76072&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76072&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76072&r=support Expected behavior: https://bugs.php.net/fix.php?id=76072&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76072&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76072&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76072&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76072&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76072&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76072&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76072&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76072&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76072&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76072&r=mysqlcfg

« previous php.bugs (#214241) next »