Commits

Hans van der Weij committed f498f91

Fix issue 16 - Deprecated set_magic_quotes_runtime

  • Participants
  • Parent commits fd75013

Comments (0)

Files changed (4)

       }
       $type=strtolower($type);
       $mqr=get_magic_quotes_runtime();
-      set_magic_quotes_runtime(0);
+      ini_set('magic_quotes_runtime', 0);
       if($type=='jpg' || $type=='jpeg')
         $info=$this->_parsejpg($file);
       elseif($type=='png')
           $this->Error('Unsupported image type: '.$type);
         $info=$this->$mtd($file);
       }
-      set_magic_quotes_runtime($mqr);
+      ini_set('magic_quotes_runtime', $mqr);
       $info['i']=count($this->images)+1;
       $this->images[$file]=$info;
     }
       $this->_out('endobj');
     }
     $mqr=get_magic_quotes_runtime();
-    set_magic_quotes_runtime(0);
+    ini_set('magic_quotes_runtime', 0);
     foreach ($this->FontFiles as $file=>$info) {
       //Font file embedding
       $this->_newobj();
       $this->_putstream($font);
       $this->_out('endobj');
     }
-    set_magic_quotes_runtime($mqr);
+    ini_set('magic_quotes_runtime', $mqr);
     foreach($this->fonts as $name=>$font)
     {
       //Font objects

font/makefont/makefont-new.php

 function MakeFont($fontfile,$afmfile,$enc='cp1252',$patch=array(),$type='TrueType')
 {
 	//Generate a font definition file
-	set_magic_quotes_runtime(0);
+	ini_set('magic_quotes_runtime', 0);
 	ini_set('auto_detect_line_endings','1');
 	if($enc)
 	{

font/makefont/makefont.php

 function MakeFont($fontfile,$afmfile,$enc='cp1252',$patch=array(),$type='TrueType')
 {
 	//Generate a font definition file
-	set_magic_quotes_runtime(0);
+	ini_set('magic_quotes_runtime', 0);
 	ini_set('auto_detect_line_endings','1');
 	if($enc)
 	{

shared/common.php

    * Modified from ryan@wonko.com.
    ****************************************************************************
    */
-  set_magic_quotes_runtime(0);
+  ini_set('magic_quotes_runtime', 0);
 
   if (get_magic_quotes_gpc()) {
     function magicSlashes($element) {