ID:               50349
 Updated by:       [email protected]
 Reported By:      c dot hugot at uniteam dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         Zip Related
 Operating System: windows xp with wamp
 PHP Version:      5.3SVN-2009-12-01 (SVN)
 Assigned To:      pajoye
 New Comment:

Pas de probleme :)

Not a bug > bogus.


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

[2009-12-01 11:50:16] c dot hugot at uniteam dot fr

I found the cause of my problem, it provide of an error of my script.

The cause is the second argument passed to the method
ZipArchive::open(), in my script it was ZIPARCHIVE::OVERWRITE. I
suppress it and my script work correctly.

Sorry for my english, my useless bug reporting and the disarrangement.

Best regards,

Christophe HUGOT

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

[2009-12-01 09:58:31] [email protected]

Please provide a script we can use to reproduce your problem, not only
a function.

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

[2009-12-01 09:15:20] c dot hugot at uniteam dot fr

In the code $_SESSION['step5'][$p_sName . '_name'] is the name of the
file, that is in the archive file ($_SESSION['step5']['zip_name'] .
".zip" = the name of the archive file), and RACCORDEMENT_ZIP_FILE_PATH
is the constant, that contained the path to the archive file.

I hope, that could help you to solve my problem. Thanks for your work.

Best regards.

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

[2009-12-01 08:58:03] [email protected]

Is that self-contained? I don't have your session available.

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

[2009-12-01 08:53:46] c dot hugot at uniteam dot fr

<?php

private function myDelZipFile($p_sName){
$l_oZip = new ZipArchive();                       
if($l_oZip->open(RACCORDEMENT_ZIP_FILE_PATH . "/" .
$_SESSION['step5']['zip_name'] . ".zip", ZIPARCHIVE::OVERWRITE) ===
true){
$l_oZip->deleteName( $_SESSION['step5'][$p_sName.'_name']);     
$l_oZip->close();
                
return true;
}            
return false;            
}

?>

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

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/50349

-- 
Edit this bug report at http://bugs.php.net/?id=50349&edit=1

Reply via email to