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

ID: 16759
Updated by: demon.gene@gmail.com
Reported By: bergie at iki dot fi
Summary: No error thrown from missing PHP zlib functions
Status: Open
Type: Bug
Package: Archive_Tar
Operating System: Ubuntu 9.10
Package Version: 1.3.3
PHP Version: 5.2.5
Roadmap Versions:
New Comment:

The source of the issue was in Ubuntu Karmic (see PEAR #16606 and
Ubuntu #451314), but this new PEAR bug highlights the _reason_ for the
*silent* failure. This "@" usage should probably be reviewed in light
of the silent failure problems.


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

[2009-11-02 15:12:51] bergie

Description:
------------
I tried to install PEAR packages on Ubuntu 9.10, but as there PHP comes
without zlib (see
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/451405), Archive_Tar
cannot open the packages.

But as the zlib functions are run in silent mode this doesn't throw any
errors, making in look like install succeeded. Some error should be
thrown if the function cannot be found!

Archive_Tar line 658: is the issue here
if ($this->_compress_type == 'gz')
$this->_file = @gzopen($v_filename, "rb");

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

Search Discussions

  • Mrook at Nov 25, 2009 at 7:30 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=16759&edit=1

    ID: 16759
    Updated by: mrook@php.net
    Reported By: bergie at iki dot fi
    Summary: No error thrown from missing PHP zlib functions
    -Status: Open
    +Status: Assigned
    Type: Bug
    Package: Archive_Tar
    Operating System: Ubuntu 9.10
    Package Version: 1.3.3
    PHP Version: 5.2.5
    -Assigned To:
    +Assigned To: mrook
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Assigned
    -Assigned To:
    +Assigned To: mrook



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

    [2009-11-03 17:47:47] ashnazg

    The source of the issue was in Ubuntu Karmic (see PEAR #16606 and
    Ubuntu #451314), but this new PEAR bug highlights the _reason_ for the
    *silent* failure. This "@" usage should probably be reviewed in light
    of the silent failure problems.

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

    [2009-11-02 15:12:51] bergie

    Description:
    ------------
    I tried to install PEAR packages on Ubuntu 9.10, but as there PHP comes
    without zlib (see
    https://bugs.launchpad.net/ubuntu/+source/php5/+bug/451405), Archive_Tar
    cannot open the packages.

    But as the zlib functions are run in silent mode this doesn't throw any
    errors, making in look like install succeeded. Some error should be
    thrown if the function cannot be found!

    Archive_Tar line 658: is the issue here
    if ($this->_compress_type == 'gz')
    $this->_file = @gzopen($v_filename, "rb");

    ------------------------------------------------------------------------
  • Mrook at Nov 25, 2009 at 7:41 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=16759&edit=1

    ID: 16759
    Updated by: mrook@php.net
    Reported By: bergie at iki dot fi
    Summary: No error thrown from missing PHP zlib functions
    Status: Assigned
    Type: Bug
    Package: Archive_Tar
    Operating System: Ubuntu 9.10
    Package Version: 1.3.3
    PHP Version: 5.2.5
    Assigned To: mrook
    Roadmap Versions:
    New Comment:

    Archive_Tar does check if the zlib extension is available, and calls
    PEAR::raiseError()
    if it isn't.


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

    [2009-11-25 20:30:32] mrook

    -Status: Open
    +Status: Assigned
    -Assigned To:
    +Assigned To: mrook


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

    [2009-11-03 17:47:47] ashnazg

    The source of the issue was in Ubuntu Karmic (see PEAR #16606 and
    Ubuntu #451314), but this new PEAR bug highlights the _reason_ for the
    *silent* failure. This "@" usage should probably be reviewed in light
    of the silent failure problems.

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

    [2009-11-02 15:12:51] bergie

    Description:
    ------------
    I tried to install PEAR packages on Ubuntu 9.10, but as there PHP comes
    without zlib (see
    https://bugs.launchpad.net/ubuntu/+source/php5/+bug/451405), Archive_Tar
    cannot open the packages.

    But as the zlib functions are run in silent mode this doesn't throw any
    errors, making in look like install succeeded. Some error should be
    thrown if the function cannot be found!

    Archive_Tar line 658: is the issue here
    if ($this->_compress_type == 'gz')
    $this->_file = @gzopen($v_filename, "rb");

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedNov 3, '09 at 4:48p
activeNov 25, '09 at 7:41p
posts3
users2
websitepear.php.net

2 users in discussion

Mrook: 2 posts Demon Gene: 1 post

People

Translate

site design / logo © 2022 Grokbase