FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17744&edit=1

ID: 17744
Updated by: helgith@gmail.com
Reported By: daniel dot oconnor at gmail dot com
Summary: Fatal error: Cannot use string offset as an array in
C:\php\PEAR\PEAR\PackageFi
Status: Open
Type: Bug
-Package: PEAR_PackageFileManager
+Package: PEAR
Package Version: 1.7.0
PHP Version: 5.2.12
-Assigned To:
+Assigned To: dufuz
Roadmap Versions:
New Comment:

-Package: PEAR_PackageFileManager
+Package: PEAR
-Assigned To:
+Assigned To: dufuz
Moving to PEAR it self; Question is if we make the XSD enforce this
more, e.g. no
empty changelog like that or if we just try to deal with it internally.

The XML Parser is parsing properly as <changelog /> is just an empty
string (e.g.
<changelog></changelog>)


Previous Comments:
------------------------------------------------------------------------

[2010-08-19 00:47:23] doconnor

Looks like the way PEAR_PackageFile_v2_rw::setChangelogEntry() is
invoked, vs the state of $this->_packageInfo['changelog']['release'][0]

Given a node of:
"<changelog />"

It gets parsed into a blank string, rather than an array()

------------------------------------------------------------------------

[2010-08-19 00:42:42] doconnor

Description:
------------
Fatal error: Cannot use string offset as an array in
C:\php\PEAR\PEAR\PackageFil e\v2\rw.php on line 1575

Test script:
---------------
See PFM_cli on Bug #17741

http://svn.php.net/viewvc/pear/packages/Net_Socket/trunk/package.xml?view=co&revision=284180&content-type=text%2Fplain
is the particular badly formed package.xml

------------------------------------------------------------------------

Search Discussions

  • Helgith at Mar 20, 2011 at 3:56 am
    Edit report at http://pear.php.net/bugs/bug.php?id=17744&edit=1

    ID: 17744
    Updated by: helgith@gmail.com
    Reported By: daniel dot oconnor at gmail dot com
    -Summary: Fatal error: Cannot use string offset as an array in
    C:\php\PEAR\PEAR\PackageFi
    +Summary: Empty changelog causes fatal error in
    setChangelogentry
    -Status: Assigned
    +Status: Closed
    Type: Bug
    Package: PEAR
    PHP Version: 5.2.12
    Assigned To: dufuz
    Roadmap Versions:
    New Comment:

    -Summary: Fatal error: Cannot use string offset as an array in
    C:\php\PEAR\PEAR\PackageFi
    +Summary: Empty changelog causes fatal error in
    setChangelogentry
    -Status: Assigned
    +Status: Closed
    This bug has been fixed in SVN.

    If this was a documentation problem, the fix will appear on pear.php.net
    by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.




    Previous Comments:
    ------------------------------------------------------------------------

    [2011-03-10 01:45:27] dufuz

    -Package: PEAR_PackageFileManager
    +Package: PEAR
    -Assigned To:
    +Assigned To: dufuz
    Moving to PEAR it self; Question is if we make the XSD enforce this
    more, e.g. no
    empty changelog like that or if we just try to deal with it internally.

    The XML Parser is parsing properly as <changelog /> is just an empty
    string (e.g.
    <changelog></changelog>)

    ------------------------------------------------------------------------

    [2010-08-19 00:47:23] doconnor

    Looks like the way PEAR_PackageFile_v2_rw::setChangelogEntry() is
    invoked, vs the state of $this->_packageInfo['changelog']['release'][0]

    Given a node of:
    "<changelog />"

    It gets parsed into a blank string, rather than an array()

    ------------------------------------------------------------------------

    [2010-08-19 00:42:42] doconnor

    Description:
    ------------
    Fatal error: Cannot use string offset as an array in
    C:\php\PEAR\PEAR\PackageFil e\v2\rw.php on line 1575

    Test script:
    ---------------
    See PFM_cli on Bug #17741

    http://svn.php.net/viewvc/pear/packages/Net_Socket/trunk/package.xml?view=co&revision=284180&content-type=text%2Fplain
    is the particular badly formed package.xml

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 10, '11 at 9:39a
activeMar 20, '11 at 3:56a
posts2
users1
websitepear.php.net

1 user in discussion

Helgith: 2 posts

People

Translate

site design / logo © 2022 Grokbase