/usr/share/php/.registry/xml_htmlsax3.reg is in php-xml-htmlsax3 3.0.0+really3.0.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | a:22:{s:7:"attribs";a:6:{s:15:"packagerversion";s:8:"1.7.0RC1";s:7:"version";s:3:"2.0";s:5:"xmlns";s:35:"http://pear.php.net/dtd/package-2.0";s:11:"xmlns:tasks";s:33:"http://pear.php.net/dtd/tasks-1.0";s:9:"xmlns:xsi";s:41:"http://www.w3.org/2001/XMLSchema-instance";s:18:"xsi:schemaLocation";s:147:"http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd";}s:4:"name";s:12:"XML_HTMLSax3";s:7:"channel";s:12:"pear.php.net";s:7:"summary";s:58:"A SAX parser for HTML and other badly formed XML documents";s:11:"description";s:1846:"XML_HTMLSax3 is a SAX based XML parser for badly formed XML documents, such as HTML.
The original code base was developed by Alexander Zhukov and published at http://sourceforge.net/projects/phpshelve/. Alexander kindly gave permission to modify the code and license for inclusion in PEAR.
NOTE!
This package is now dual licensed under PHP license v3.01 and LGPL 3.0
See the CVS repo link for the actual licenses
PEAR::XML_HTMLSax3 provides an API very similar to the native PHP XML extension (http://www.php.net/xml), allowing handlers using one to be easily adapted to the other. The key difference is HTMLSax will not break on badly formed XML, allowing it to be used for parsing HTML documents. Otherwise HTMLSax supports all the handlers available from Expat except namespace and external entity handlers. Provides methods for handling XML escapes as well as JSP/ASP opening and close tags.
Version 1.x introduced an API similar to the native SAX extension but used a slow character by character approach to parsing.
Version 2.x has had it's internals completely overhauled to use a Lexer, delivering performance *approaching* that of the native XML extension, as well as a radically improved, modular design that makes adding further functionality easy.
Version 3.x is about fine tuning the API, behaviour and providing a mechanism to distinguish HTML "quirks" from badly formed HTML (later functionality not yet implemented)
A big thanks to Jeff Moore (lead developer of WACT: http://wact.sourceforge.net) who's largely responsible for new design, as well input from other members at Sitepoint's Advanced PHP forums: http://www.sitepointforums.com/showthread.php?threadid=121246.
Thanks also to Marcus Baker (lead developer of SimpleTest: http://www.lastcraft.com/simple_test.php) for sorting out the unit tests.";s:4:"lead";a:4:{s:4:"name";s:12:"Harry Fuecks";s:4:"user";s:7:"hfuecks";s:5:"email";s:23:"hfuecks@phppatterns.com";s:6:"active";s:2:"no";}s:4:"date";s:10:"2007-12-01";s:4:"time";s:8:"22:09:38";s:7:"version";a:2:{s:7:"release";s:5:"3.0.0";s:3:"api";s:5:"3.0.0";}s:9:"stability";a:2:{s:7:"release";s:6:"stable";s:3:"api";s:6:"stable";}s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:3:"PHP";}s:5:"notes";s:268:"Fixed bug #1850 HTMLtoXHTML.php does not produce XHTML [dufuz]
Fixed bug #11607 Requesting License change, emails to listed authors bounce [cdake}
Fixed bug #12159 not clarified license [hfuecks]
This package is now dual licensed under PHP license v3.01 and LGPL 3.0";s:8:"contents";a:1:{s:3:"dir";a:2:{s:7:"attribs";a:1:{s:4:"name";s:1:"/";}s:4:"file";a:6:{i:0;a:1:{s:7:"attribs";a:3:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:23:"HTMLSax3/Decorators.php";s:4:"role";s:3:"php";}}i:1;a:1:{s:7:"attribs";a:3:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:19:"HTMLSax3/States.php";s:4:"role";s:3:"php";}}i:2;a:1:{s:7:"attribs";a:3:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:15:"tests/index.php";s:4:"role";s:4:"test";}}i:3;a:1:{s:7:"attribs";a:3:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:20:"tests/unit_tests.php";s:4:"role";s:4:"test";}}i:4;a:1:{s:7:"attribs";a:3:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:26:"tests/xml_htmlsax_test.php";s:4:"role";s:4:"test";}}i:5;a:1:{s:7:"attribs";a:3:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:12:"HTMLSax3.php";s:4:"role";s:3:"php";}}}}}s:12:"dependencies";a:2:{s:8:"required";a:2:{s:3:"php";a:1:{s:3:"min";s:5:"4.0.5";}s:13:"pearinstaller";a:1:{s:3:"min";s:7:"1.4.0b1";}}s:8:"optional";a:1:{s:9:"extension";a:1:{s:4:"name";s:4:"pcre";}}}s:10:"phprelease";s:0:"";s:9:"changelog";a:1:{s:7:"release";a:9:{i:0;a:5:{s:4:"date";s:10:"2004-06-02";s:7:"version";a:2:{s:7:"release";s:8:"3.0.0RC1";s:3:"api";s:8:"3.0.0RC1";}s:9:"stability";a:2:{s:7:"release";s:4:"beta";s:3:"api";s:4:"beta";}s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:3:"PHP";}s:5:"notes";s:522:"* Re PEAR version naming rules, you now include XML/HTMLSax3.php and the main class is called XML_HTMLSax3
* Now able to parse Word generated HTML - fixed bug with parsing of XML escape sequences
* API break (minor): no longer extends PEAR
* API break (minor): attributes with no value (like option selected) are now populated with NULL instead of TRUE
* API break (minor): replaced XML_OPTION_FULL_ESCAPES with XML_OPTION_STRIP_ESCAPES - by default you now get back the complete escape sequence
* Added some more examples";}i:1;a:5:{s:7:"version";a:2:{s:7:"release";s:5:"2.1.2";s:3:"api";s:5:"2.1.2";}s:9:"stability";a:2:{s:7:"release";s:6:"stable";s:3:"api";s:6:"stable";}s:4:"date";s:10:"2003-12-05";s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:3:"PHP";}s:5:"notes";s:352:"* Bug fixed (thanks Jeff) where badly formed attributes resulted in infinite loop
* Added additional boolean argument to open and close handler calls to spot empty tags like br/ - should not break exising APIs
* Added XML_OPTION_FULL_ESCAPES which (when = 1) passes through the complete content in an XML escape, allowing comment / cdata reconstruction";}i:2;a:5:{s:7:"version";a:2:{s:7:"release";s:5:"2.1.1";s:3:"api";s:5:"2.1.1";}s:9:"stability";a:2:{s:7:"release";s:6:"stable";s:3:"api";s:6:"stable";}s:4:"date";s:10:"2003-10-08";s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:3:"PHP";}s:5:"notes";s:236:"* Reporting of byte index with get_current_position() more accurate on opening tags (thanks to Alexander Orlov at x-code.com)
* All parser options now available to PHP versions lt 4.3.x, using implementation of html_entity_decode in PHP";}i:3;a:5:{s:7:"version";a:2:{s:7:"release";s:5:"2.1.0";s:3:"api";s:5:"2.1.0";}s:9:"stability";a:2:{s:7:"release";s:6:"stable";s:3:"api";s:6:"stable";}s:4:"date";s:10:"2003-09-10";s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:3:"PHP";}s:5:"notes";s:36:"* Well (unit) tested with SimpleTest";}i:4;a:5:{s:7:"version";a:2:{s:7:"release";s:5:"2.0.2";s:3:"api";s:5:"2.0.2";}s:9:"stability";a:2:{s:7:"release";s:5:"alpha";s:3:"api";s:5:"alpha";}s:4:"date";s:10:"2003-08-11";s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:3:"PHP";}s:5:"notes";s:411:"* API is backwards compatible apart from the renaming of parser options
* Performance dramatically increased. Not much slower than Expat
* Better handling of XML comments and CDATA
* Option to trigger additional data handler calls for linefeeds and tabs
* Option to trigger additional data handler calls for XML entities and parse them if required.
* Added public get_current_position() and get_length() methods";}i:5;a:5:{s:7:"version";a:2:{s:7:"release";s:3:"1.1";s:3:"api";s:3:"1.1";}s:9:"stability";a:2:{s:7:"release";s:6:"stable";s:3:"api";s:6:"stable";}s:4:"date";s:10:"2003-06-26";s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:3:"PHP";}s:5:"notes";s:95:"* Bug fixes to Attribute_Parser to cope with newline, tag, forward slash and whitespace issues.";}i:6;a:5:{s:7:"version";a:2:{s:7:"release";s:3:"1.0";s:3:"api";s:3:"1.0";}s:9:"stability";a:2:{s:7:"release";s:6:"stable";s:3:"api";s:6:"stable";}s:4:"date";s:10:"2003-06-08";s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:3:"PHP";}s:5:"notes";s:206:"* Modifications to file structure to place Attributes_Parser.php
and State_Machine.php in subdirectory HTMLSax
* XML_HTMLSax.php includes Attributes_Parser.php and State_Machine.php
using require_once()";}i:7;a:5:{s:7:"version";a:2:{s:7:"release";s:8:"0.9.0rc2";s:3:"api";s:8:"0.9.0rc2";}s:9:"stability";a:2:{s:7:"release";s:4:"beta";s:3:"api";s:4:"beta";}s:4:"date";s:10:"2003-05-18";s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:3:"PHP";}s:5:"notes";s:181:"*First release under PEAR
*Changed package name to XML_HTMLSax
*Added patch from John Luxford to parse single quoted attributes
*Modified State_Machine to be a simple variable store";}i:8;a:5:{s:7:"version";a:2:{s:7:"release";s:8:"0.9.0rc1";s:3:"api";s:8:"0.9.0rc1";}s:9:"stability";a:2:{s:7:"release";s:4:"beta";s:3:"api";s:4:"beta";}s:4:"date";s:10:"2003-05-09";s:7:"license";a:2:{s:7:"attribs";a:1:{s:3:"uri";s:26:"http://www.php.net/license";}s:8:"_content";s:3:"PHP";}s:5:"notes";s:1353:"A summary of the main differences between this version
of HTML_Sax and HTMLSax2002082201 are as follows;
*Instead of extending HTMLSax with your own "handlers" class,
you now use the set_object() method to pass an instance of the
class to HTMLSax.
*Class method callbacks are specified using the following methods;
*set_element_handler('startHandler','endHandler') <tag> and </tag>
*set_data_handler('dataHandler') for contents of an element
*set_pi_handler('piHandler') for <?php ?>, <?xml ?> etc.
*set_escape_handler(') for anything beginning with <!
*set_jasp_handler() - set listener for <% %> tags
*Attributes which no value are created and set to true
*Comments are handled and may contain entities; < >
*The callback handlers will all be passed an instance of HTMLSax
in the same way as the native PHP XML Expat extension
*Setting of parser options is handled specifically by the set_option()
method. Available options are;
*skipWhiteSpace; instruct the parser to ignore whitespace characters
*trimDataNodes; trim whitespace inside character data
*breakOnNewLine; newline characters found in character data are treated
as new events triggering another data callback
*caseFolding; converts element names to uppercase";}}}s:8:"filelist";a:6:{s:23:"HTMLSax3/Decorators.php";a:5:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:23:"HTMLSax3/Decorators.php";s:4:"role";s:3:"php";s:6:"md5sum";s:32:"ee68fca44daf5ea4ab0d1e89898dbac5";s:12:"installed_as";s:42:"/usr/share/php/XML/HTMLSax3/Decorators.php";}s:19:"HTMLSax3/States.php";a:5:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:19:"HTMLSax3/States.php";s:4:"role";s:3:"php";s:6:"md5sum";s:32:"53bc57b65555dbb2f11723c9cfef35c0";s:12:"installed_as";s:38:"/usr/share/php/XML/HTMLSax3/States.php";}s:15:"tests/index.php";a:5:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:15:"tests/index.php";s:4:"role";s:4:"test";s:6:"md5sum";s:32:"58a613410f75656db17d6d0ea27e2534";s:12:"installed_as";s:49:"/usr/share/php/tests/XML_HTMLSax3/tests/index.php";}s:20:"tests/unit_tests.php";a:5:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:20:"tests/unit_tests.php";s:4:"role";s:4:"test";s:6:"md5sum";s:32:"3d7e5c0266f5c807e9b21a194630f17b";s:12:"installed_as";s:54:"/usr/share/php/tests/XML_HTMLSax3/tests/unit_tests.php";}s:26:"tests/xml_htmlsax_test.php";a:5:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:26:"tests/xml_htmlsax_test.php";s:4:"role";s:4:"test";s:6:"md5sum";s:32:"4b67baeaf8d3032ffd55affef4c8a7ff";s:12:"installed_as";s:60:"/usr/share/php/tests/XML_HTMLSax3/tests/xml_htmlsax_test.php";}s:12:"HTMLSax3.php";a:5:{s:14:"baseinstalldir";s:3:"XML";s:4:"name";s:12:"HTMLSax3.php";s:4:"role";s:3:"php";s:6:"md5sum";s:32:"909dd989c6c6ece13efe37c028c4fefd";s:12:"installed_as";s:31:"/usr/share/php/XML/HTMLSax3.php";}}s:12:"_lastversion";N;s:7:"dirtree";a:4:{s:27:"/usr/share/php/XML/HTMLSax3";b:1;s:18:"/usr/share/php/XML";b:1;s:39:"/usr/share/php/tests/XML_HTMLSax3/tests";b:1;s:33:"/usr/share/php/tests/XML_HTMLSax3";b:1;}s:3:"old";a:7:{s:7:"version";s:5:"3.0.0";s:12:"release_date";s:10:"2007-12-01";s:13:"release_state";s:6:"stable";s:15:"release_license";s:3:"PHP";s:13:"release_notes";s:268:"Fixed bug #1850 HTMLtoXHTML.php does not produce XHTML [dufuz]
Fixed bug #11607 Requesting License change, emails to listed authors bounce [cdake}
Fixed bug #12159 not clarified license [hfuecks]
This package is now dual licensed under PHP license v3.01 and LGPL 3.0";s:12:"release_deps";a:3:{i:0;a:4:{s:4:"type";s:3:"php";s:3:"rel";s:2:"ge";s:7:"version";s:5:"4.0.5";s:8:"optional";s:2:"no";}i:1;a:6:{s:4:"type";s:3:"pkg";s:7:"channel";s:12:"pear.php.net";s:4:"name";s:4:"PEAR";s:3:"rel";s:2:"ge";s:7:"version";s:7:"1.4.0b1";s:8:"optional";s:2:"no";}i:2;a:4:{s:4:"type";s:3:"ext";s:4:"name";s:4:"pcre";s:3:"rel";s:3:"has";s:8:"optional";s:3:"yes";}}s:11:"maintainers";a:1:{i:0;a:5:{s:4:"name";s:12:"Harry Fuecks";s:5:"email";s:23:"hfuecks@phppatterns.com";s:6:"active";s:2:"no";s:6:"handle";s:7:"hfuecks";s:4:"role";s:4:"lead";}}}s:10:"xsdversion";s:3:"2.0";s:13:"_lastmodified";i:1396209013;}
|