php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&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?qS XzG'ay
files >> /php-7.1.11/ext/tidy/tests/ |
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-- 012y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`