note 99460 rejected from function.ziparchive-addfile by danbrown
| From: | danbrown@php.net | Date: | Wed, 18 Aug 2010 17:37:41 +0000 |
| Subject: | note 99460 rejected from function.ziparchive-addfile by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171820@lists.php.net to get a copy of this message | ||
Note Submitter: gizmore at wechall dot net
----
PHP5.3 will throw a strict standard error when overriding a method with wrong number of arguments.
The correct prototype of this function is:
ZipArchive::addFile($path, [$localname=NULL, $start=0, $end=0])
So there are 4 possible arguments, not just 2.