note 125185 rejected from language.oop5.overloading by cmb

From: Date: Sat, 11 Jul 2020 21:22:41 +0000
Subject: note 125185 rejected from language.oop5.overloading by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214861@lists.php.net to get a copy of this message
Note Submitter: smcbride at msn dot com ---- __call seems to be a good way to add a profiler to functions of a class without having to code for every function. It would be nice to have a corresponding __return similar to __construct and __destruct so that I could close the profiling stats. With a __call, __return, and __FUNCTION__, you could easily keep timed statistics and counts to help send back application telemetry from the deployments for tuning.

« previous php.notes (#214861) next »