/PHP-8.0/ext/tidy/ |
H A D | tidy.stub.php | 9 function tidy_get_output(tidy $tidy): string {} argument 13 function tidy_clean_repair(tidy $tidy): bool {} argument 19 function tidy_diagnose(tidy $tidy): bool {} argument 27 function tidy_get_config(tidy $tidy): array {} argument 29 function tidy_get_status(tidy $tidy): int {} argument 31 function tidy_get_html_ver(tidy $tidy): int {} argument 33 function tidy_is_xhtml(tidy $tidy): bool {} argument 35 function tidy_is_xml(tidy $tidy): bool {} argument 37 function tidy_error_count(tidy $tidy): int {} argument 41 function tidy_access_count(tidy $tidy): int {} argument [all …]
|
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 | tidy_arginfo.h | 11 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0) 15 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0) 26 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0) 49 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0) 55 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0) 59 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0) 77 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0) 82 ZEND_ARG_OBJ_INFO(0, tidy, tidy, 0) 199 ZEND_METHOD(tidy, __construct); 200 ZEND_METHOD(tidy, parseFile); [all …]
|
H A D | php_tidy.h | 26 ZEND_BEGIN_MODULE_GLOBALS(tidy) 29 ZEND_END_MODULE_GLOBALS(tidy) 31 #define TG(v) ZEND_MODULE_GLOBALS_ACCESSOR(tidy, v)
|
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]) 70 PHP_NEW_EXTENSION(tidy, tidy.c, $ext_shared,, $TIDY_COMPILER_FLAGS)
|
/PHP-8.0/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 | 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 | tidy_error1.phpt | 7 if (!extension_loaded('tidy')) die ('skip tidy not present'); 14 $tidy = new tidy(); 15 var_dump($tidy->parseString($buffer, $config)); 19 Warning: tidy::parseString(): Unknown Tidy configuration option "bogus" in %s on line %d
|
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 | 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 | 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")); 31 Current Value of 'tidy-mark': bool(false) 34 tidy::getOpt(): Argument #1 ($option) is an invalid configuration option, "bogus-opt" given
|
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 | 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
|