替换了PHP新版本不支持的函数

This commit is contained in:
wlx 2010-11-06 14:36:44 +00:00
parent 81e73b269d
commit c4c8d81cab
1 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ function _putfonts()
$this->_out('endobj'); $this->_out('endobj');
} }
$mqr=get_magic_quotes_runtime(); $mqr=get_magic_quotes_runtime();
set_magic_quotes_runtime(0); ini_set('magic_quotes_runtime', 0);
foreach($this->FontFiles as $file=>$info) foreach($this->FontFiles as $file=>$info)
{ {
//Font file embedding //Font file embedding
@ -342,7 +342,7 @@ function _putfonts()
fclose($f); fclose($f);
$this->_out('endobj'); $this->_out('endobj');
} }
set_magic_quotes_runtime($mqr); ini_set('magic_quotes_runtime', $mqr);
foreach($this->fonts as $k=>$font) foreach($this->fonts as $k=>$font)
{ {
//Font objects //Font objects