brick / varexporter

A powerful alternative to var_export(), which can export closures and objects without __set_state()

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Throw exception on unsafe closure export by default

BenMorel opened this issue · comments

Currently we export non-namespaced functions/constants as is. The exporter closure is not guaranteed to work everywhere. We should instead throw an exception in this case, and make the current behaviour optional by providing a flag, such as ALLOW_UNSAFE_CLOSURE_EXPORT.