Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36907 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87404 invoked from network); 9 Apr 2008 16:40:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2008 16:40:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:16532] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/54-64512-971FCF74 for ; Wed, 09 Apr 2008 12:40:27 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 9 Apr 2008 19:41:02 +0300 Received: from [192.168.16.109] ([192.168.16.109]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 9 Apr 2008 09:40:58 -0700 Message-ID: <47FCF173.5040009@zend.com> Date: Wed, 09 Apr 2008 09:40:19 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Derick Rethans CC: PHP Developers Mailing List References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Apr 2008 16:40:58.0343 (UTC) FILETIME=[7CEBDF70:01C89A60] Subject: Re: [PHP-DEV] Missing signature violation warnings suck. From: stas@zend.com (Stanislav Malyshev) Hi! > public function limit( $limit, $offset = '' ); > public function limit( $limit = 10, $offset = 0 ) > No problems at all while development, no warnings, no errors. Now when I > deployed this on a PHP 5.2 machine it bombed out, with the following > *correct* message: > > Fatal error: Declaration of ezcSearchFindQuerySolr::limit() must be > compatible with that of ezcSearchQuery::limit() in /tmp/tmp/index.php on > line 11 Why it's correct? limit() with default can extend limit without default, since every place you could call ezcSearchFindQuery::limit you also could call ezcSearchFindQuerySolr::limit. No precondition is strengthened, so I don't see a problem there. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com