#47706 [NEW]: XMLReader open() and xml() $options parameter description inaccurate

From: Date: Wed, 18 Mar 2009 17:00:26 +0000
Subject: #47706 [NEW]: XMLReader open() and xml() $options parameter description inaccurate
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2000@lists.php.net to get a copy of this message
From:             tobias382 at gmail dot com
Operating system: 
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  XMLReader open() and xml() $options parameter description inaccurate

Description:
------------
The third parameter $options for the XMLReader class methods open() and
xml() inaccurately refers to "XMLReader Options constants."

Expected result:
----------------
E-mail exchanges between myself and Rob Richards on Wed 18-03-2009
confirmed that libxml constants (specific list below) are intended to be
used for $options and that the XMLReader parser option constants are only
intended to be used with the older and deprecated method
setParserProperty().

http://php.net/manual/en/libxml.constants.php

LIBXML_NOENT
LIBXML_DTDLOAD
LIBXML_DTDATTR
LIBXML_DTDVALID
LIBXML_NOERROR
LIBXML_NOWARNING
LIBXML_NOBLANKS
LIBXML_XINCLUDE
LIBXML_NONET
LIBXML_NSCLEAN
LIBXML_NOCDATA
LIBXML_COMPACT

Actual result:
--------------
The only "XMLReader Options constants" specific to XMLReader are the
parser option constants, which have values that are incremental rather than
powers of 2 as is appropriate for bitmasking.

http://php.net/manual/en/xmlreader.open.php
http://php.net/manual/en/xmlreader.xml.php
http://php.net/manual/en/class.xmlreader.php

-- 
Edit bug report at http://bugs.php.net/?id=47706&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        http://bugs.php.net/fix.php?id=47706&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        http://bugs.php.net/fix.php?id=47706&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        http://bugs.php.net/fix.php?id=47706&r=trysnapshot60
Fixed in CVS:                        http://bugs.php.net/fix.php?id=47706&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47706&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=47706&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=47706&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=47706&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=47706&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=47706&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=47706&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=47706&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=47706&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=47706&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47706&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47706&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=47706&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=47706&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=47706&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=47706&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=47706&r=mysqlcfg



Thread (2 messages)

« previous php.doc.bugs (#2000) next »