#39506 [NEW]: Archive corrupt with ZipArchive::addFile method

Ask a Question related to PHP Bugs, Design and Development.
  1. #1

    Default #39506 [NEW]: Archive corrupt with ZipArchive::addFile method

    From: hscheidegger at zumbach dot ch
    Operating system: Windows XP
    PHP version: 5.2.0
    PHP Bug Type: Zip Related
    Bug description: Archive corrupt with ZipArchive::addFile method

    Description:
    ------------
    We use PHP 5.2 on Windows XP and Server 2003, not the CGI version.
    We are running Apache 2 with php as module and php_zip.dll as extension
    declared in php.ini.
    The following script produces a corrupt zip archive, depending the content
    of 'TestDoc1.txt':

    <?php
    $zip = new ZipArchive;
    $res = $zip->open( 'test.zip', ZipArchive::CREATE );
    if ($res === TRUE) {
    $zip->addFile( 'TestDoc1.txt', 'entryname1.txt' );
    $zip->close();
    echo 'ok';
    } else {
    echo 'failed';
    }
    ?>

    Reproduce code:
    ---------------
    zip archive ok with TestDoc1.txt:
    =================================
    <body bgcolor="#CED5E5">
    <br>

    </body>
    This is some text, we have to fill the file with nonsense.

    zip archive corrupt with TestDoc1.txt:
    ======================================
    <body bgcolor="#CED5E5">
    <br>
    x
    </body>
    This is some text, we have to fill the file with nonsense.




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

  2. Similar Questions and Discussions

    1. #40494 [NEW]: Memory problem with ZipArchive::addFile()
      From: foster dot graeme at gmail dot com Operating system: Linux PHP version: 5.2.1 PHP Bug Type: Zip Related Bug...
    2. #39784 [NEW]: Can't make an instance of ZipArchive
      From: itsmegawtf at gmail dot com Operating system: Gentoo linux PHP version: 5.2.0 PHP Bug Type: Zip Related Bug...
    3. #39742 [NEW]: Class 'ZipArchive' not found
      From: eric dot leseint at ac-poitiers dot fr Operating system: Windows 2003 server PHP version: 5.2.0 PHP Bug Type: ...
    4. #38944 [NEW]: ZipArchive exits with SEGV
      From: judas dot iscariote at gmail dot com Operating system: linux PHP version: 5CVS-2006-09-25 (CVS) PHP Bug Type: Zip...
    5. #38943 [NEW]: serious misbehaviour extending ZipArchive class
      From: judas dot iscariote at gmail dot com Operating system: Linux PHP version: 5CVS-2006-09-24 (CVS) PHP Bug Type: Zip...
  3. #2

    Default #39506 [Opn->Fbk]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    Updated by: tony2001@php.net
    Reported By: hscheidegger at zumbach dot ch
    -Status: Open
    +Status: Feedback
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    New Comment:

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip




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

    [2006-11-13 23:22:32] hscheidegger at zumbach dot ch

    Description:
    ------------
    We use PHP 5.2 on Windows XP and Server 2003, not the CGI version.
    We are running Apache 2 with php as module and php_zip.dll as extension
    declared in php.ini.
    The following script produces a corrupt zip archive, depending the
    content of 'TestDoc1.txt':

    <?php
    $zip = new ZipArchive;
    $res = $zip->open( 'test.zip', ZipArchive::CREATE );
    if ($res === TRUE) {
    $zip->addFile( 'TestDoc1.txt', 'entryname1.txt' );
    $zip->close();
    echo 'ok';
    } else {
    echo 'failed';
    }
    ?>

    Reproduce code:
    ---------------
    zip archive ok with TestDoc1.txt:
    =================================
    <body bgcolor="#CED5E5">
    <br>

    </body>
    This is some text, we have to fill the file with nonsense.

    zip archive corrupt with TestDoc1.txt:
    ======================================
    <body bgcolor="#CED5E5">
    <br>
    x
    </body>
    This is some text, we have to fill the file with nonsense.





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


    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    tony2001@php.net Guest

  4. #3

    Default #39506 [Fbk->Opn]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    User updated by: hscheidegger at zumbach dot ch
    Reported By: hscheidegger at zumbach dot ch
    -Status: Feedback
    +Status: Open
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    New Comment:

    We have the same behaviour with the proposed CVS snapshot.
    Do you need additional information?


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

    [2006-11-14 09:33:20] tony2001@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip



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

    [2006-11-13 23:22:32] hscheidegger at zumbach dot ch

    Description:
    ------------
    We use PHP 5.2 on Windows XP and Server 2003, not the CGI version.
    We are running Apache 2 with php as module and php_zip.dll as extension
    declared in php.ini.
    The following script produces a corrupt zip archive, depending the
    content of 'TestDoc1.txt':

    <?php
    $zip = new ZipArchive;
    $res = $zip->open( 'test.zip', ZipArchive::CREATE );
    if ($res === TRUE) {
    $zip->addFile( 'TestDoc1.txt', 'entryname1.txt' );
    $zip->close();
    echo 'ok';
    } else {
    echo 'failed';
    }
    ?>

    Reproduce code:
    ---------------
    zip archive ok with TestDoc1.txt:
    =================================
    <body bgcolor="#CED5E5">
    <br>

    </body>
    This is some text, we have to fill the file with nonsense.

    zip archive corrupt with TestDoc1.txt:
    ======================================
    <body bgcolor="#CED5E5">
    <br>
    x
    </body>
    This is some text, we have to fill the file with nonsense.





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


    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    hscheidegger at zumbach dot ch Guest

  5. #4

    Default #39506 [Opn->Asn]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    Updated by: tony2001@php.net
    Reported By: hscheidegger at zumbach dot ch
    -Status: Open
    +Status: Assigned
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    -Assigned To:
    +Assigned To: pajoye


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

    [2006-11-14 09:53:34] hscheidegger at zumbach dot ch

    We have the same behaviour with the proposed CVS snapshot.
    Do you need additional information?

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

    [2006-11-14 09:33:20] tony2001@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip



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

    [2006-11-13 23:22:32] hscheidegger at zumbach dot ch

    Description:
    ------------
    We use PHP 5.2 on Windows XP and Server 2003, not the CGI version.
    We are running Apache 2 with php as module and php_zip.dll as extension
    declared in php.ini.
    The following script produces a corrupt zip archive, depending the
    content of 'TestDoc1.txt':

    <?php
    $zip = new ZipArchive;
    $res = $zip->open( 'test.zip', ZipArchive::CREATE );
    if ($res === TRUE) {
    $zip->addFile( 'TestDoc1.txt', 'entryname1.txt' );
    $zip->close();
    echo 'ok';
    } else {
    echo 'failed';
    }
    ?>

    Reproduce code:
    ---------------
    zip archive ok with TestDoc1.txt:
    =================================
    <body bgcolor="#CED5E5">
    <br>

    </body>
    This is some text, we have to fill the file with nonsense.

    zip archive corrupt with TestDoc1.txt:
    ======================================
    <body bgcolor="#CED5E5">
    <br>
    x
    </body>
    This is some text, we have to fill the file with nonsense.





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


    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    tony2001@php.net Guest

  6. #5

    Default #39506 [Asn->Fbk]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    Updated by: pajoye@php.net
    Reported By: hscheidegger at zumbach dot ch
    -Status: Assigned
    +Status: Feedback
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    Assigned To: pajoye
    New Comment:

    Can you try your script using CLI?


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

    [2006-11-14 09:53:34] hscheidegger at zumbach dot ch

    We have the same behaviour with the proposed CVS snapshot.
    Do you need additional information?

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

    [2006-11-14 09:33:20] tony2001@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip



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

    [2006-11-13 23:22:32] hscheidegger at zumbach dot ch

    Description:
    ------------
    We use PHP 5.2 on Windows XP and Server 2003, not the CGI version.
    We are running Apache 2 with php as module and php_zip.dll as extension
    declared in php.ini.
    The following script produces a corrupt zip archive, depending the
    content of 'TestDoc1.txt':

    <?php
    $zip = new ZipArchive;
    $res = $zip->open( 'test.zip', ZipArchive::CREATE );
    if ($res === TRUE) {
    $zip->addFile( 'TestDoc1.txt', 'entryname1.txt' );
    $zip->close();
    echo 'ok';
    } else {
    echo 'failed';
    }
    ?>

    Reproduce code:
    ---------------
    zip archive ok with TestDoc1.txt:
    =================================
    <body bgcolor="#CED5E5">
    <br>

    </body>
    This is some text, we have to fill the file with nonsense.

    zip archive corrupt with TestDoc1.txt:
    ======================================
    <body bgcolor="#CED5E5">
    <br>
    x
    </body>
    This is some text, we have to fill the file with nonsense.





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


    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    pajoye@php.net Guest

  7. #6

    Default #39506 [Fbk->Opn]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    User updated by: hscheidegger at zumbach dot ch
    Reported By: hscheidegger at zumbach dot ch
    -Status: Feedback
    +Status: Open
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    Assigned To: pajoye
    New Comment:

    Yes I did and it works without error.
    Now, how to get work the .dll version with Apache 2.2.3 on Windows XP?


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

    [2006-11-14 14:37:46] pajoye@php.net

    Can you try your script using CLI?

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

    [2006-11-14 09:53:34] hscheidegger at zumbach dot ch

    We have the same behaviour with the proposed CVS snapshot.
    Do you need additional information?

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

    [2006-11-14 09:33:20] tony2001@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip



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

    [2006-11-13 23:22:32] hscheidegger at zumbach dot ch

    Description:
    ------------
    We use PHP 5.2 on Windows XP and Server 2003, not the CGI version.
    We are running Apache 2 with php as module and php_zip.dll as extension
    declared in php.ini.
    The following script produces a corrupt zip archive, depending the
    content of 'TestDoc1.txt':

    <?php
    $zip = new ZipArchive;
    $res = $zip->open( 'test.zip', ZipArchive::CREATE );
    if ($res === TRUE) {
    $zip->addFile( 'TestDoc1.txt', 'entryname1.txt' );
    $zip->close();
    echo 'ok';
    } else {
    echo 'failed';
    }
    ?>

    Reproduce code:
    ---------------
    zip archive ok with TestDoc1.txt:
    =================================
    <body bgcolor="#CED5E5">
    <br>

    </body>
    This is some text, we have to fill the file with nonsense.

    zip archive corrupt with TestDoc1.txt:
    ======================================
    <body bgcolor="#CED5E5">
    <br>
    x
    </body>
    This is some text, we have to fill the file with nonsense.





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


    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    hscheidegger at zumbach dot ch Guest

  8. #7

    Default #39506 [Opn->Asn]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    Updated by: tony2001@php.net
    Reported By: hscheidegger at zumbach dot ch
    -Status: Open
    +Status: Assigned
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    Assigned To: pajoye


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

    [2006-11-14 19:10:26] hscheidegger at zumbach dot ch

    Yes I did and it works without error.
    Now, how to get work the .dll version with Apache 2.2.3 on Windows XP?

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

    [2006-11-14 14:37:46] pajoye@php.net

    Can you try your script using CLI?

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

    [2006-11-14 09:53:34] hscheidegger at zumbach dot ch

    We have the same behaviour with the proposed CVS snapshot.
    Do you need additional information?

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

    [2006-11-14 09:33:20] tony2001@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip



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

    [2006-11-13 23:22:32] hscheidegger at zumbach dot ch

    Description:
    ------------
    We use PHP 5.2 on Windows XP and Server 2003, not the CGI version.
    We are running Apache 2 with php as module and php_zip.dll as extension
    declared in php.ini.
    The following script produces a corrupt zip archive, depending the
    content of 'TestDoc1.txt':

    <?php
    $zip = new ZipArchive;
    $res = $zip->open( 'test.zip', ZipArchive::CREATE );
    if ($res === TRUE) {
    $zip->addFile( 'TestDoc1.txt', 'entryname1.txt' );
    $zip->close();
    echo 'ok';
    } else {
    echo 'failed';
    }
    ?>

    Reproduce code:
    ---------------
    zip archive ok with TestDoc1.txt:
    =================================
    <body bgcolor="#CED5E5">
    <br>

    </body>
    This is some text, we have to fill the file with nonsense.

    zip archive corrupt with TestDoc1.txt:
    ======================================
    <body bgcolor="#CED5E5">
    <br>
    x
    </body>
    This is some text, we have to fill the file with nonsense.





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


    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    tony2001@php.net Guest

  9. #8

    Default #39506 [Asn->Fbk]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    Updated by: pajoye@php.net
    Reported By: hscheidegger at zumbach dot ch
    -Status: Assigned
    +Status: Feedback
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    Assigned To: pajoye
    New Comment:

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip

    I just commited a fix, it should fix it for all other SAPI (it works in
    CLI/CGI/Embed).


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

    [2006-11-14 19:10:26] hscheidegger at zumbach dot ch

    Yes I did and it works without error.
    Now, how to get work the .dll version with Apache 2.2.3 on Windows XP?

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

    [2006-11-14 14:37:46] pajoye@php.net

    Can you try your script using CLI?

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

    [2006-11-14 09:53:34] hscheidegger at zumbach dot ch

    We have the same behaviour with the proposed CVS snapshot.
    Do you need additional information?

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

    [2006-11-14 09:33:20] tony2001@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip



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

    [2006-11-13 23:22:32] hscheidegger at zumbach dot ch

    Description:
    ------------
    We use PHP 5.2 on Windows XP and Server 2003, not the CGI version.
    We are running Apache 2 with php as module and php_zip.dll as extension
    declared in php.ini.
    The following script produces a corrupt zip archive, depending the
    content of 'TestDoc1.txt':

    <?php
    $zip = new ZipArchive;
    $res = $zip->open( 'test.zip', ZipArchive::CREATE );
    if ($res === TRUE) {
    $zip->addFile( 'TestDoc1.txt', 'entryname1.txt' );
    $zip->close();
    echo 'ok';
    } else {
    echo 'failed';
    }
    ?>

    Reproduce code:
    ---------------
    zip archive ok with TestDoc1.txt:
    =================================
    <body bgcolor="#CED5E5">
    <br>

    </body>
    This is some text, we have to fill the file with nonsense.

    zip archive corrupt with TestDoc1.txt:
    ======================================
    <body bgcolor="#CED5E5">
    <br>
    x
    </body>
    This is some text, we have to fill the file with nonsense.





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


    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    pajoye@php.net Guest

  10. #9

    Default #39506 [Fbk->Opn]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    User updated by: hscheidegger at zumbach dot ch
    Reported By: hscheidegger at zumbach dot ch
    -Status: Feedback
    +Status: Open
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    Assigned To: pajoye
    New Comment:

    Unfortunately there is still the same problem.
    I'm using Apache2.2.3 and the related versions of php5apache2.dll and
    php5apache2_filter.dll;
    Does this matter?


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

    [2006-11-15 16:26:32] pajoye@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip

    I just commited a fix, it should fix it for all other SAPI (it works in
    CLI/CGI/Embed).

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

    [2006-11-14 19:10:26] hscheidegger at zumbach dot ch

    Yes I did and it works without error.
    Now, how to get work the .dll version with Apache 2.2.3 on Windows XP?

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

    [2006-11-14 14:37:46] pajoye@php.net

    Can you try your script using CLI?

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

    [2006-11-14 09:53:34] hscheidegger at zumbach dot ch

    We have the same behaviour with the proposed CVS snapshot.
    Do you need additional information?

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

    [2006-11-14 09:33:20] tony2001@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip



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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://bugs.php.net/39506

    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    hscheidegger at zumbach dot ch Guest

  11. #10

    Default #39506 [Opn->Fbk]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    Updated by: pajoye@php.net
    Reported By: hscheidegger at zumbach dot ch
    -Status: Open
    +Status: Feedback
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    Assigned To: pajoye
    New Comment:

    The snaps have not been yet updated. Please wait the _next_ one and try
    again :)


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

    [2006-11-15 18:00:57] hscheidegger at zumbach dot ch

    Unfortunately there is still the same problem.
    I'm using Apache2.2.3 and the related versions of php5apache2.dll and
    php5apache2_filter.dll;
    Does this matter?

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

    [2006-11-15 16:26:32] pajoye@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip

    I just commited a fix, it should fix it for all other SAPI (it works in
    CLI/CGI/Embed).

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

    [2006-11-14 19:10:26] hscheidegger at zumbach dot ch

    Yes I did and it works without error.
    Now, how to get work the .dll version with Apache 2.2.3 on Windows XP?

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

    [2006-11-14 14:37:46] pajoye@php.net

    Can you try your script using CLI?

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

    [2006-11-14 09:53:34] hscheidegger at zumbach dot ch

    We have the same behaviour with the proposed CVS snapshot.
    Do you need additional information?

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://bugs.php.net/39506

    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    pajoye@php.net Guest

  12. #11

    Default #39506 [Fbk->Csd]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    User updated by: hscheidegger at zumbach dot ch
    Reported By: hscheidegger at zumbach dot ch
    -Status: Feedback
    +Status: Closed
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    Assigned To: pajoye
    New Comment:

    The 'addFile()' method is now working in our environment.
    Thanks for your help,
    Regards, H-P Scheidegger


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

    [2006-11-15 19:18:38] pajoye@php.net

    The snaps have not been yet updated. Please wait the _next_ one and try
    again :)

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

    [2006-11-15 18:00:57] hscheidegger at zumbach dot ch

    Unfortunately there is still the same problem.
    I'm using Apache2.2.3 and the related versions of php5apache2.dll and
    php5apache2_filter.dll;
    Does this matter?

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

    [2006-11-15 16:26:32] pajoye@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip

    I just commited a fix, it should fix it for all other SAPI (it works in
    CLI/CGI/Embed).

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

    [2006-11-14 19:10:26] hscheidegger at zumbach dot ch

    Yes I did and it works without error.
    Now, how to get work the .dll version with Apache 2.2.3 on Windows XP?

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

    [2006-11-14 14:37:46] pajoye@php.net

    Can you try your script using CLI?

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://bugs.php.net/39506

    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    hscheidegger at zumbach dot ch Guest

  13. #12

    Default #39506 [Csd]: Archive corrupt with ZipArchive::addFile method

    ID: 39506
    Updated by: pajoye@php.net
    Reported By: hscheidegger at zumbach dot ch
    Status: Closed
    Bug Type: Zip Related
    Operating System: Windows XP
    PHP Version: 5.2.0
    Assigned To: pajoye
    New Comment:

    For the record here, it was not an addFile problem but the binary mode
    being ignored by the windows API. It is now forced to binary using a
    lower level function.


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

    [2006-11-16 13:13:30] hscheidegger at zumbach dot ch

    The 'addFile()' method is now working in our environment.
    Thanks for your help,
    Regards, H-P Scheidegger

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

    [2006-11-15 19:18:38] pajoye@php.net

    The snaps have not been yet updated. Please wait the _next_ one and try
    again :)

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

    [2006-11-15 18:00:57] hscheidegger at zumbach dot ch

    Unfortunately there is still the same problem.
    I'm using Apache2.2.3 and the related versions of php5apache2.dll and
    php5apache2_filter.dll;
    Does this matter?

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

    [2006-11-15 16:26:32] pajoye@php.net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip

    I just commited a fix, it should fix it for all other SAPI (it works in
    CLI/CGI/Embed).

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

    [2006-11-14 19:10:26] hscheidegger at zumbach dot ch

    Yes I did and it works without error.
    Now, how to get work the .dll version with Apache 2.2.3 on Windows XP?

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://bugs.php.net/39506

    --
    Edit this bug report at http://bugs.php.net/?id=39506&edit=1
    pajoye@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139