| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2010-08-16 20:31 UTC] pierre dot php at gmail dot com
  [2010-08-16 20:45 UTC] gizmore at wechall dot net
  [2010-08-16 20:51 UTC] gizmore at wechall dot net
  [2010-08-17 05:33 UTC] pierre dot php at gmail dot com
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 12:00:01 2025 UTC | 
Description: ------------ I can not override method ZipArchive::addFile() when deriving class ZipArchive. Reproduce code: --------------- <?php // ERROR: Strict standards: Declaration of MyZipArchive2::addFile() should be compatible with that of ZipArchive::addFile() final class MyZipArchive2 extends ZipArchive { public function addFile($filename, $localname) { // Declaration is always wrong, according to strict standards. } } ?> Expected result: ---------------- compile fine Actual result: -------------- ERROR: Strict standards: Declaration of MyZipArchive2::addFile() should be compatible with that of ZipArchive::addFile()