Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24140 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63916 invoked by uid 1010); 15 Jun 2006 21:56:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63883 invoked from network); 15 Jun 2006 21:56:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jun 2006 21:56:57 -0000 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 66.249.82.194 wx-out-0102.google.com Linux 2.4/2.6 Received: from ([66.249.82.194:57911] helo=wx-out-0102.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id EC/45-00253-1D2D1944 for ; Thu, 15 Jun 2006 17:36:17 -0400 Received: by wx-out-0102.google.com with SMTP id s14so372585wxc for ; Thu, 15 Jun 2006 14:36:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qw77EBpuN3JGBeUmXEvGawznAaseqhFBAb/xEWYzTYRBehzYstxwNnldVZZ8NA0gqe+PyyitYCN9nnBRzutoAsUjpGOvif9hkUbVIJKEBPwdbJjakgxxsH0JLr31oD3MMr1JNGd+h5zTj+/GNceFqpnV3sCQC7lncSdnpLK1mPk= Received: by 10.70.100.12 with SMTP id x12mr811881wxb; Thu, 15 Jun 2006 14:36:10 -0700 (PDT) Received: by 10.70.91.5 with HTTP; Thu, 15 Jun 2006 14:36:10 -0700 (PDT) Message-ID: <7f3ed2c30606151436o3e9143d0g8e03b1c342e97dd4@mail.gmail.com> Date: Thu, 15 Jun 2006 23:36:10 +0200 To: "Lukas Smith" Cc: internals@lists.php.net In-Reply-To: <4491CED3.7030500@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7f3ed2c30606151021l250da506ld97a3025df7303ac@mail.gmail.com> <4491CED3.7030500@php.net> Subject: Re: [PHP-DEV] Re: Array type hinting for internal functions.. From: hannes.magnusson@gmail.com ("Hannes Magnusson") On 6/15/06, Lukas Smith wrote: > Hannes Magnusson wrote: > > Hi all > > > > I am sure this was decided upon long time ago, but there seem to be > > few out there that do not want this... > > should I revert array type hinting for internal functions or continue > > adding them were appropriate while I add the argument info? > > > > Just to be clear; I'm introducing array type hinting for all internal > > functions expecting array and removing therefor useless array type > > checks inside the functions. > > These changes however introduce tiny backward compatibility break > > since it'll emit E_RECOVERABLE rather than E_WARNING... > > Is this a similar change as the array_merge() change? If the functions do castings it won't get type hinted array, but those who specifically expect array, and bail out when they get whatever else, will get type hinted array. -Hannes