2004-01-03 05:23:24 +00:00
|
|
|
--TEST--
|
|
|
|
Accessing the error buffer via $obj->error_buf...
|
|
|
|
--SKIPIF--
|
2004-01-14 02:43:33 +00:00
|
|
|
<?php if (!extension_loaded("tidy")) print "skip"; ?>
|
2004-01-03 05:23:24 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2004-01-14 02:43:33 +00:00
|
|
|
$a = tidy_parse_string("<HTML><asd asdf></HTML>");
|
2004-04-25 16:50:47 +00:00
|
|
|
echo $a->errorBuffer;
|
2004-01-03 05:23:24 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
|
|
|
|
line 1 column 7 - Error: <asd> is not recognized!
|
|
|
|
line 1 column 7 - Warning: discarding unexpected <asd>
|
|
|
|
line 1 column 17 - Warning: discarding unexpected </html>
|
|
|
|
line 1 column 7 - Warning: inserting missing 'title' element
|