For what was attempting to be accomplished, that code cannot be used since it's PHP 5.3+ only!
The team took the decision that since SMF 2.0 advertises itself as compatible with versions prior to PHP 5.3, and there are still users on versions of PHP < 5.3, that it is not proper to bump the minimum requirements on a minor version.
There is already a version of things being tested that has all the major issues replaced with other functions. Said patch also reinforces the memory limit of 128M by explicitly asking for it, as a lot of shared hosts seem to set lower limits.
As for memory use, instances of closures are instances of the Closure class. Memory use of a class instance vs a normal function are fairly comparable.
0 commentaires:
Enregistrer un commentaire