"Fossies" - the Fresh Open Source Software Archive

Member "php-8.0.28-src/ext/libxml/tests/001.phpt" (14 Feb 2023, 481 Bytes) of package /windows/www/php-8.0.28-src.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 --TEST--
    2 libxml_use_internal_errors()
    3 --SKIPIF--
    4 <?php if (!extension_loaded('libxml')) die('skip libxml extension not available'); ?>
    5 --FILE--
    6 <?php
    7 
    8 var_dump(libxml_use_internal_errors(false));
    9 var_dump(libxml_use_internal_errors(true));
   10 var_dump(libxml_use_internal_errors());
   11 
   12 var_dump(libxml_get_errors());
   13 var_dump(libxml_get_last_error());
   14 
   15 var_dump(libxml_clear_errors());
   16 
   17 echo "Done\n";
   18 ?>
   19 --EXPECT--
   20 bool(false)
   21 bool(false)
   22 bool(true)
   23 array(0) {
   24 }
   25 bool(false)
   26 NULL
   27 Done