Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43614 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52398 invoked from network); 3 Apr 2009 10:42:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Apr 2009 10:42:58 -0000 X-Host-Fingerprint: 84.140.178.193 p548CB2C1.dip.t-dialin.net Received: from [84.140.178.193] ([84.140.178.193:8628] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/41-45088-038E5D94 for ; Fri, 03 Apr 2009 05:42:57 -0500 Message-ID: To: internals@lists.php.net Date: Fri, 03 Apr 2009 12:42:50 +0200 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 84.140.178.193 Subject: Re: [PHP-DEV] Extending SplObjectStorage impossible due to type hints!? From: karsten@typo3.org (Karsten Dambekalns) 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! Thanks a bunch! Karsten PS: Some updated docs for SPL would be really cool... ;)