From 5ce275656716cdb66cc2423ff78416cca438e588 Mon Sep 17 00:00:00 2001 From: Ryan Masten Date: Fri, 8 May 2009 17:37:27 +0000 Subject: [PATCH] Performance fix by Matthias Moser - extract replaced by foreach git-svn-id: http://dompdf.googlecode.com/svn/trunk/dompdf@113 8e70de24-3a84-11de-b438-597f59cd7555 --- include/frame.cls.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/frame.cls.php b/include/frame.cls.php index 724d00065..b7fc72832 100644 --- a/include/frame.cls.php +++ b/include/frame.cls.php @@ -370,8 +370,11 @@ function set_decorator(Frame_Decorator $decorator) { } function set_containing_block($x = null, $y = null, $w = null, $h = null) { - if ( is_array($x) ) - extract($x); + if ( is_array($x) ){ + foreach($x AS $key => $val){ + $$key = $val; + } + } if (is_numeric($x)) { $this->_containing_block[0] = $x;