From 1c7990c47abaff52e15ba2c1c203acc4bc615070 Mon Sep 17 00:00:00 2001 From: Brian Sweeney Date: Wed, 7 Oct 2015 20:46:25 -0400 Subject: [PATCH] Remove pre-processing of PHP code Restore the changes made in 23a69399 that were lost in 83da38a7. --- src/Dompdf.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Dompdf.php b/src/Dompdf.php index 70257b16c..8938258f3 100644 --- a/src/Dompdf.php +++ b/src/Dompdf.php @@ -430,13 +430,6 @@ public function loadHtml($str, $encoding = null) $str = substr($str, 3); } - // Parse embedded php, first-pass - if ($this->options->isPhpEnabled()) { - ob_start(); - eval("?" . ">$str"); - $str = ob_get_clean(); - } - // if the document contains non utf-8 with a utf-8 meta tag chars and was // detected as utf-8 by mbstring, problems could happen. // http://devzone.zend.com/article/8855