Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25971 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76235 invoked by uid 1010); 6 Oct 2006 17:04:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76219 invoked from network); 6 Oct 2006 17:04:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Oct 2006 17:04:01 -0000 Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=iliaal@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.166.179 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.166.179 py-out-1112.google.com Linux 2.4/2.6 Received: from [64.233.166.179] ([64.233.166.179:45816] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/6B-11652-E7C86254 for ; Fri, 06 Oct 2006 13:04:00 -0400 Received: by py-out-1112.google.com with SMTP id c39so1107145pyd for ; Fri, 06 Oct 2006 10:03:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=Yl8JZjI5bzJ3V8QEoSiCabkB0tOMRj9EALMySyrcSxv3rgYOEFz45F3UJyZrMLddHuwkCTOwolK04cWkLMhfVPS83aaIyt0iT+ivTaW+lTUlQiIi5KKuJIKOGtl+dsLiwFlOSW+0cBZG5Qlp788rXIxYa2FFggMbMCURUpZ4pHQ= Received: by 10.65.59.19 with SMTP id m19mr4623081qbk; Fri, 06 Oct 2006 10:03:56 -0700 (PDT) Received: from ?192.168.1.6? ( [74.108.68.217]) by mx.google.com with ESMTP id e13sm2849304qba.2006.10.06.10.03.56; Fri, 06 Oct 2006 10:03:56 -0700 (PDT) In-Reply-To: <45268186.5050008@zend.com> References: <50.8B.48579.ED205254@pb1.pair.com> <45252FC7.9030500@php.net> <4e89b4260610060728v51b1ba65m69304a88d693ce7d@mail.gmail.com> <45267188.9030107@emini.dk> <45267B7D.9080206@zend.com> <45267C07.3090404@emini.dk> <45267D5A.70401@emini.dk> <45268186.5050008@zend.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <049A2D7A-DEE1-4F55-997B-BEBEF0B8320D@prohost.org> Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Fri, 6 Oct 2006 13:03:51 -0400 To: Stanislav Malyshev X-Mailer: Apple Mail (2.752.3) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] Re: [VOTE] Intermediate Results From: ilia@prohost.org (Ilia Alshanetsky) On 6-Oct-06, at 12:17 PM, Stanislav Malyshev wrote: > >> I be wary of allowing this because in some instances method >> signature can drastically impact behavior for example >> foo(&$bar) {} vs foo($bar); I'd prefer to don't reduce this to >> E_NOTICE. > > Yes, it can have runtime impact. So what? There are so many cases > where, for example, not declaring a variable upfront or not > assigning a type to it may change script behavior and even > introduce a security hole. However, PHP is built to allow such > things, and I do not think we should prohibit them - especially if > there are a lot of valid uses for them. I think PHP should have > priority on flexibility over strictness, if you prefer strict > language you can always have Java and declare everything up to the > last bit :) On the same note you can use C and ignore all rules, coding using only void pointers and relying purely on gotos for flow control. :-) >> You are talking about creating static class variables (dynamic >> ones can already be created without even an E_NOTICE). I think if >> you need this done, why not create a property dynamically and then >> access it statically? I suppose you are using this is a means of >> having a global > > What do you mean by "creating dynamically and accessing statically"? Bah never mind, confusing properties with methods, my mistake. Ilia Alshanetsky