Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43613 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50617 invoked from network); 3 Apr 2009 10:33:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Apr 2009 10:33:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.46.29 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 74.125.46.29 yw-out-2324.google.com Received: from [74.125.46.29] ([74.125.46.29:1971] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/F0-45088-2E5E5D94 for ; Fri, 03 Apr 2009 05:33:07 -0500 Received: by yw-out-2324.google.com with SMTP id 3so624360ywj.83 for ; Fri, 03 Apr 2009 03:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=g51eSwIYmygzapILWzcdAN0Wakz7FYUxkomUoXmNT8k=; b=xbWAqlBnbz4/qKpHIlWpOGO8HvitIaU1A7tKbEMriGq2pSo1qvPYrPZJVWktQnDBW1 wSk1U2Xdq/p0h4UOxaxEgh9+YGlwB59IVPOx5GtXzkPgP+9ihSnCAzeL3Znuv/M2RcFX mf8+yz8QPXhQyAE4ClVrQpysPqct1vrZIXtCg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=E35EzArLj26T0cIBaVTsEmhP/2zGvTgub5HJX2thrMqlExP9M/i97VDL3dtevjQhDM 6Cxkuq0KeAFDx0WtzWcEcl8NGs1HttgTOIiVJEkD08VLL9ZPd6PIgnQgZH0GUH62msd9 lR1iIrkY6BBxyG1Wp1XAc4/wJJrMVgcfOJgRw= MIME-Version: 1.0 Received: by 10.100.137.12 with SMTP id k12mr2299348and.124.1238754783594; Fri, 03 Apr 2009 03:33:03 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Apr 2009 14:33:03 +0400 Message-ID: To: Karsten Dambekalns Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Extending SplObjectStorage impossible due to type hints!? From: indeyets@gmail.com (Alexey Zakhlestin) On Fri, Apr 3, 2009 at 2:05 PM, Karsten Dambekalns wrote: > Hi. > > I am trying to extend SplObjectStorage and override the attach() method. > This gives me: > > Strict Standards: Declaration of B::attach() should be compatible with that > of SplObjectStorage::attach() in test.php on line 5 > > Seems am am hitting the object type hint wall again. Any ways around this, > aside from disabling strict standard notices? well, and what is the reason why you can't make your "attach()" compatible with SplObjectStorage's? the following signature works for me (both in 5.2 and 5.3): public function attach($obj, $inf = null) -- Alexey Zakhlestin http://www.milkfarmsoft.com/