From: Fabien Potencier Date: Fri, 12 Apr 2013 09:46:40 +0000 (+0200) Subject: merged branch drewjw81/extension_global_fix (PR #1053) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=8bbbecd08e00615ad90b46ef7486abdfab911da9;p=web%2Fkonrad%2Ftwig.git merged branch drewjw81/extension_global_fix (PR #1053) This PR was squashed before being merged into the master branch (closes #1053). Discussion ---------- Prevent extensions from clobbering all globals. It's possible for a poorly written extension to destroy all global variables by returning nothing. This prevents that and throws an E_WARNING to notify the developer. Commits ------- 7c8acf7 Prevent extensions from clobbering all globals. --- 8bbbecd08e00615ad90b46ef7486abdfab911da9