'); if ($b === FALSE) { $i = 0; continue; } $aux3 = substr($aux2,$b + 1); $xmlString = $aux1 . $aux3; } $j = 1; while( $j == 1) { $x = stripos($xmlString,''); $e = substr($ax2,0,$d); if ($y === FALSE || $y === 0) { $j = 0; continue; } $ax3 = substr($ax2,$y + 1); $xmlString = $ax1 . $ax3; } $xml = new SimpleXMLElement($xmlString, LIBXML_NOCDATA); $scPDF = new schedulerPDF(); $scPDF->printScheduler($xml); function PDFErrorHandler ($errno, $errstr, $errfile, $errline) { global $xmlString; if ($errno < 1024) { error_log($xmlString, 3, 'error_report_'.date("Y_m_d__H_i_s").'.xml'); exit(1); } } ?>