Changes between Initial Version and Version 1 of Ticket #46635, comment 6
- Timestamp:
- 04/03/2019 05:51:52 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #46635, comment 6
initial v1 1 Yes, signatures are "fragile". Using the declaring file as identifier `some-file.php/function()`, likewould be more stable: the fact that a closure is moved from a file to another can not be assumed to be more frequent than a function that changes name.1 Yes, signatures are "fragile". Using the declaring file as identifier `some-file.php/function()`, would be more stable: the fact that a closure is moved from a file to another can not be assumed to be more frequent than a function that changes name. 2 2 3 3 However, that would require Reflections which means that to store the serialization upfront would be a potentially big waste of resources having to serialize ''any'' closure, even if chances are high none will be removed. On the other hand, not storing upfront means that removing will be quite expensive having to loop the potential dozen of callbacks added to a given hook, and using Reflection anytime a closure is encountered.