Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43615 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57442 invoked from network); 3 Apr 2009 11:02:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Apr 2009 11:02:44 -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 209.85.132.243 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: 209.85.132.243 an-out-0708.google.com Received: from [209.85.132.243] ([209.85.132.243:28162] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9D/42-45088-2DCE5D94 for ; Fri, 03 Apr 2009 06:02:43 -0500 Received: by an-out-0708.google.com with SMTP id c5so638111anc.38 for ; Fri, 03 Apr 2009 04:02:40 -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=0he6OZNvicVlloD883F7QgtCyt9yAkV3ADBjpmtrwCw=; b=bPz8mfoNpjUduDGzmtENLZPz+kqSQnMwJ92JfNPcFWnL3V40pfR2Bej8wQ0XXVTg1N b7qvW4N2ygUH4nsTauI9vopRTTZmHmfpivIsIwDVpcM5Qe4hxQc75pZnj/SreibY3Emc mqvNpTfmQDmZv7bgDrgHoWKLhW2W0teJtvLrg= 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=IFfyGjEkbi73heWpq1FuJVI0wtXQT9iKNmyarvDx5k2ognQh3wcxPH7RxpFEQXYHKN AVDK3RdDh/vezsVC3ui+BlWCY1TEh47qYBenLnKRDiGUTOWb/Ginr+XDoZ8BHYswUE8w f1xldO0BAgaN4M4qVImCZNaoMclvIX2eJYDEg= MIME-Version: 1.0 Received: by 10.100.171.16 with SMTP id t16mr2566797ane.29.1238756560010; Fri, 03 Apr 2009 04:02:40 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 Apr 2009 15:02:39 +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:42 PM, Karsten Dambekalns wrote: > Hi Alexey. > > On 03.04.2009 12:33 Uhr, Alexey Zakhlestin wrote: >> >> 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) > > Doh, well. Even better, so it's not some "object" type hint, but simply me > not knowing the full attach() signature. Yay! try this (with CLI php): php --rc SplObjectStorage > PS: Some updated docs for SPL would be really cool... ;) +1 ;) -- Alexey Zakhlestin http://www.milkfarmsoft.com/