"Anonymous functions are currently implemented using the Closure class. This is an implementation detail and should not be relied upon."

From: Date: Mon, 05 Sep 2011 19:59:47 +0000
Subject: "Anonymous functions are currently implemented using the Closure class. This is an implementation detail and should not be relied upon."
Groups: php.internals 
Request: Send a blank email to internals+get-55235@lists.php.net to get a copy of this message
Despite several mentions in the manual, lots of php 5.3 code uses this with instanceof or in function signature (eg: Doctrine 2). If you don't want to support this in the future, could this be cleaned-up in 5.4? ( the longer you wait, the more you break ) Possibly by creating a interface called Closure, and change the name of the actual class + implement the Closure interface.. Best Regards / Med vennlig hilsen André R.

« previous php.internals (#55235) next »