/PHP-7.4/ext/tidy/tests/ |
H A D | 023.phpt | 2 tidy and tidyNode OO 4 <?php if (!extension_loaded('tidy')) echo 'skip'; ?> 9 new tidy(); 10 var_dump(new tidy()); 14 $tidy = new tidy(); 15 $tidy->parseString('<html><?php echo "xpto;" ?></html>'); 17 var_dump(tidy_get_root($tidy)->child[0]->isHtml()); 18 var_dump(tidy_get_root($tidy)->child[0]->child[0]->isPHP()); 19 var_dump(tidy_get_root($tidy)->child[0]->child[0]->isAsp()); 23 var_dump(tidy_get_root($tidy)->child[0]->hasChildren()); [all …]
|
H A D | uninitialized.phpt | 2 Operations on uninitialized tidy object 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 8 $tidy = new tidy; 10 var_dump($tidy->getHtmlVer()); 15 var_dump($tidy->isXhtml()); 20 var_dump($tidy->isXml()); 27 tidy object is not initialized 28 tidy object is not initialized 29 tidy object is not initialized
|
H A D | 025.phpt | 4 <?php if (!extension_loaded('tidy')) die('skip'); ?> 8 $tidy=tidy_parse_string('<% %>', array('newline' => 'LF')); 9 var_dump($tidy->Root()->child[0]->isAsp()); 11 $tidy=tidy_parse_string('<# #>', array('newline' => 'LF')); 12 var_dump($tidy->Root()->child[0]->isJste()); 14 $tidy=tidy_parse_string('<html><body>text</body></html>'); 15 var_dump($tidy->Root()->child[0]->child[1]->child[0]->isText()); 17 $tidy=tidy_parse_string('<html><body><!-- comment --></body></html>', array('newline' => 'LF')); 18 $n = $tidy->Root()->child[0]->child[1]->child[0]; 24 var_dump($tidy->Root()->child[0]->child[0]->hasSiblings());
|
H A D | 020.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 8 $tidy = new tidy(); 14 $tidy->parseString($str, array('output-xhtml'=>1), 'latin1'); 15 $tidy->cleanRepair(); 16 $tidy->diagnose(); 17 var_dump(tidy_warning_count($tidy) > 0); 18 var_dump(strlen($tidy->errorBuffer) > 50); 20 echo $tidy;
|
H A D | tidy_error.phpt | 7 if (!extension_loaded("tidy")) print "skip tidy extension not loaded"; 21 $tidy = tidy_parse_string($html); 23 echo tidy_get_status($tidy); 27 $tidy = tidy_parse_string($html); 29 echo tidy_get_status($tidy); 33 $tidy = tidy_parse_string($html); 35 echo tidy_get_status($tidy);
|
H A D | bug77040.phpt | 5 if (!extension_loaded('tidy')) die('skip tidy extension not available'); 9 $tidy = new tidy; 10 $tidy->parseString("<p>text</p><p><![CDATA[cdata]]></p>"); 11 $p = $tidy->body()->child[0]; 17 $cdata = $tidy->body()->child[1]->child[0];
|
H A D | tidy_error1.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 14 $tidy = new tidy(); 15 var_dump($tidy->parseString($buffer, $config)); 18 Notice: tidy::parseString(): Unknown Tidy Configuration Option 'bogus' in %s on line %d
|
H A D | 013.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 $tidy = new tidy(__DIR__."/013.html", array("show-body-only"=>true)); 8 $tidy->cleanRepair(); 9 echo $tidy;
|
H A D | 030.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 16 $tidy = new tidy(); 17 $tidy->parseString($buffer, $config); 18 $c = $tidy->getConfig();
|
H A D | 034.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 15 $tidy = tidy_parse_string($buffer, $config); 16 $tidy->diagnose(); 17 var_dump(tidy_access_count($tidy));
|
H A D | 001.phpt | 2 Check for tidy presence 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 echo "tidy extension is available"; 10 tidy extension is available
|
H A D | 007.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 6 tidy.default_config= 9 $a = new tidy(__DIR__."/007.html"); 10 echo "Current Value of 'tidy-mark': "; 11 var_dump($a->getopt("tidy-mark")); 21 Current Value of 'tidy-mark': bool(false) 25 Warning: tidy::getOpt(): Unknown Tidy Configuration Option 'bogus-opt' in %s007.php on line 10
|
H A D | 027.phpt | 2 Bug: tidy segfaults with markup=false 4 <?php if (!extension_loaded('tidy')) die('skip'); ?> 31 $tidy = new tidy; 32 $tidy->parseString($data, self::$tidyconfig, 'utf8'); 33 $tidy->cleanRepair(); 35 return $tidy;
|
H A D | 015.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 $tidy = tidy_parse_file(__DIR__."/015.html", array('show-body-only'=>true)); 8 tidy_clean_repair($tidy); 9 echo tidy_get_output($tidy);
|
H A D | 014.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 8 $tidy = tidy_parse_string($text, array('show-body-only'=>true)); 9 tidy_clean_repair($tidy); 10 echo tidy_get_output($tidy);
|
H A D | 032.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 13 $tidy = tidy_parse_string($buffer); 14 var_dump(tidy_error_count($tidy));
|
H A D | 033.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 13 $tidy = tidy_parse_string($buffer); 14 var_dump(tidy_warning_count($tidy));
|
H A D | 031.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 14 $tidy = tidy_parse_string($buffer, $config); 15 var_dump(tidy_config_count($tidy));
|
H A D | 016.phpt | 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 $tidy = tidy_parse_file(__DIR__."/016.html", 9 $cfg = $tidy->getConfig();
|
H A D | 026.phpt | 2 tidy.clean_output test 4 <?php if (!extension_loaded('tidy')) die('skip'); ?> 6 tidy.clean_output=1
|
H A D | bug_50558.phpt | 2 Bug #50558 - Broken object model when extending tidy 4 <?php if (!extension_loaded("tidy")) print "skip"; ?> 7 class MyTidy extends tidy
|
H A D | 024.phpt | 5 if (!extension_loaded('tidy')) die('skip'); 26 $tidy = tidy_parse_string($contents, $config, 'utf8'); 27 $tidy->cleanRepair(); 28 echo $tidy;
|
H A D | 021.phpt | 4 <?php if (!extension_loaded("tidy") || !function_exists('tidy_get_opt_doc')) print "skip"; ?> 8 var_dump(tidy_get_opt_doc(new tidy, 'some_bogus_cfg')); 10 $t = new tidy;
|
/PHP-7.4/ext/tidy/ |
H A D | config.w32 | 3 ARG_WITH("tidy", "TIDY support", "no"); 7 if ((CHECK_LIB("libtidy_a.lib;tidy_a.lib", "tidy", PHP_TIDY) && (tidy_static = true) || 8 CHECK_LIB("libtidy.lib;tidy.lib", "tidy", PHP_TIDY)) && 10 CHECK_HEADER_ADD_INCLUDE("tidy.h", "CFLAGS_TIDY") || 11 CHECK_HEADER_ADD_INCLUDE("tidy/tidy.h", "CFLAGS_TIDY", null, null, true) || 12 CHECK_HEADER_ADD_INCLUDE("libtidy/tidy.h", "CFLAGS_TIDY", null, null, true) 19 EXTENSION("tidy", "tidy.c"); 21 AC_DEFINE('HAVE_TIDY_H', 1, "tidy include header") 23 AC_DEFINE('HAVE_TIDYRELEASEDATE', 1, "tidy release date function") 26 ADD_DEF_FILE("ext\\tidy\\php_tidy.def"); [all …]
|
H A D | config.m4 | 1 PHP_ARG_WITH([tidy], 3 [AS_HELP_STRING([[--with-tidy[=DIR]]], 15 for j in tidy tidyp; do 34 dnl that we are building against tidy-html5 and not the legacy htmltidy. The 45 AC_DEFINE(HAVE_TIDY_H,1,[defined if tidy.h exists]) 69 PHP_NEW_EXTENSION(tidy, tidy.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|