Re: [PHP-DEV] Scalar type hinting

2012-02-28 Thread Adam Richardson
On Tue, Feb 28, 2012 at 2:53 PM, John Crenshaw wrote: > OK everyone, it seems that some people have forgotten or missed the > original agreement that this thread started with. There is a communication > disconnect ("strict typing" means horribly different things to different > people right now). P

Re: [PHP-DEV] Scalar type hinting

2012-02-28 Thread Adam Richardson
On Tue, Feb 28, 2012 at 3:58 PM, John Crenshaw wrote: > *From:* Adam Richardson [mailto:simples...@gmail.com] > > On Tue, Feb 28, 2012 at 2:53 PM, John Crenshaw > wrote: > > OK everyone, it seems that some people have forgotten or missed the > original agreement that thi

Re: [PHP-DEV] Scalar type hinting

2012-02-29 Thread Adam Richardson
On Wed, Feb 29, 2012 at 4:49 PM, Zeev Suraski wrote: > Kris, > > If we've agreed that strict typing is bad, why is it even showing on the > discussion here? Calling it 'firm' or 'strong' doesn't make a difference. > If it errors out or throws an exception (which BTW is out of the question > for

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-04 Thread Adam Richardson
On Tue, Sep 4, 2012 at 9:43 AM, Ferenc Kovacs wrote: > never heard of that one before. > > for example, running > for($i=0;$i<100;$i++){ > $foo="foo_".$i; > ${$foo}->bar = 123; > } > echo "done"; > > gives me 100 E_STRICT, but still executes just fine and prints "done" at > the end. > the onl

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-04 Thread Adam Richardson
On Tue, Sep 4, 2012 at 12:57 PM, Rasmus Lerdorf wrote: > Only on a new E_STRICT. Even with E_STRICT off by default, custom error > handlers are still called, and I think Lester said that turning E_STRICT > off made it work. So if this is the cause, then it has nothing to do > with E_STRICT being i

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-04 Thread Adam Richardson
On Tue, Sep 4, 2012 at 1:34 PM, Ferenc Kovacs wrote: > > 2012.09.04. 18:58, "Rasmus Lerdorf" ezt írta: > > >> >> On 09/04/2012 09:36 AM, Adam Richardson wrote: >> > I think Ferenc is correct in that this sounds like there's a custom >>

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-04 Thread Adam Richardson
On Tue, Sep 4, 2012 at 2:15 PM, Lester Caine wrote: > Adam Richardson wrote: >> >> I was second-guessing my recall I had a similar issue way back, after >> Rasmus pointed out that the custom error handler is called even if >> E_STRICT is off. However, I just looked b

Re: [PHP-DEV] E_STRICT 'errors' - was Are exceptions allowed in php core?

2012-09-04 Thread Adam Richardson
On Tue, Sep 4, 2012 at 3:09 PM, Lester Caine wrote: > Joomla doesn't use either anyway, and neither do a number of the other sites > I've been porting, but we still get problems. Well, just to be sure, have you searched the entire codebase of one of the existing sites experiencing the issues for

[PHP-DEV] Question on PHP 6 and static calls to instance methods.

2008-05-03 Thread Adam Richardson
se of that functionality in my framework. However, It sounds like this is going to cause a fatal error in PHP6. Is this in fact true? And, if the behavior is going to change, can somebody explain what the impetus for this change was? Thank you very much for your time, Adam Adam Richardso

[PHP-DEV] Re: [PHP] Is header() malfunction due to PHP5.3.3 -> 5.4.11 transition?

2013-02-09 Thread Adam Richardson
On Sat, Feb 9, 2013 at 3:59 PM, Tedd Sperling wrote: > On Feb 9, 2013, at 2:00 PM, Jonathan Eagle wrote: > Jonathan: > > No offense to your routine, but you may want to review this: > > http://sperling.com/php/authorization/log-on.php > > If anyone finds an error, please post. > After successfu

[PHP-DEV] Re: [PHP] Facebook PHP compiler

2010-02-02 Thread Adam Richardson
Looks very promising !!! On Tue, Feb 2, 2010 at 1:12 PM, Robert Cummings wrote: > Cesar D. Rodas wrote: > >> Hello, >> >> Have you guys checked this PHP to C++ converter from the Facebook People? >> >> http://developers.facebook.com/news.php?blog=1&story=358 >> > > Very interesting... I heard abo

Re: [PHP-DEV] Strict typing (was: Typehints)

2010-08-10 Thread Adam Richardson
On Wed, Aug 11, 2010 at 2:03 AM, Zeev Suraski wrote: > At 01:47 11/08/2010, Stas Malyshev wrote: > >> Hi! >> >> For the record: I consider the current implementation as (one of) the >>> biggest mistakes in the last ten years. >>> >> >> I agree completely. The fact that obvious absence of consens

Re: [PHP-DEV] back to 5.4 alpha

2010-08-11 Thread Adam Richardson
On Wed, Aug 11, 2010 at 2:30 PM, Stas Malyshev wrote: > Hi! > > I think by now, whatever you think on strict typing/typehints, it is clear > to everybody that there's no consensus about this feature, and with Rasmus, > Zeev & Andi, along with many others, being against it, as of now it can not > b

Re: [PHP-DEV] Supporting Binary Notation for Integers

2010-11-11 Thread Adam Richardson
On Thu, Nov 11, 2010 at 9:55 PM, Thomas Hruska wrote: > On 11/11/2010 3:23 PM, Jonah H. Harris wrote: > >> On Thu, Nov 11, 2010 at 3:57 PM, Jonah H. Harris> >wrote: >> >> On Thu, Nov 11, 2010 at 3:55 PM, Philip Olson >>> wrote: >>> >>> I just registered for Wiki access and am waiting for the ac

Re: [PHP-DEV] Magic quotes in trunk

2010-11-18 Thread Adam Richardson
+1 Disabling magic quotes (off by default) and removing them in the next major release. Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP-DEV] Re: Hold off 5.4

2010-11-26 Thread Adam Richardson
On Fri, Nov 26, 2010 at 2:27 PM, Pierre Joye wrote: > On Fri, Nov 26, 2010 at 8:15 PM, Zeev Suraski wrote: > > > 3. The motivation to skip 6 doesn't stem from marketing at all. The main > motivation is that there's a VERY concrete perception amongst many users > about what PHP 6 is. > > Leaving

Re: [PHP-DEV] [RFC] new foo()->bar()

2010-11-26 Thread Adam Richardson
On Fri, Nov 26, 2010 at 2:36 PM, Felipe Pena wrote: > Hi all, > I'm here again to presents another proposal, which adds support for > instantiating a class and calling its methods and accessing its properties > on same command. > > Example: > > > class bar { > public $x = 'PHP'; > } > > class f

Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-08 Thread Adam Richardson
> > >> We need to be careful about changing the beahviour of existing > operators. > Indeed. The '?' character already is special, so using '??' seems like a safe, practical approach. However, I'd prefer maintaining the form of the standard ternary operator with the colon ($value = $var['bar'] ?

Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-10 Thread Adam Richardson
On Sun, Apr 10, 2011 at 10:04 AM, Rune Kaagaard wrote: > Hey again > > Updated here as always https://gist.github.com/909711. I've tried to > write down the goal of this new feature. Which patterns do we want to > make easier to write? > > Do you agree with the goals I've set? > > +1 From me of c

Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-14 Thread Adam Richardson
On Thu, Apr 14, 2011 at 10:05 AM, Hannes Landeholm wrote: > Trying to summarize this discussion... I think we can all agree that the > main problem is "code duplication for array access when parameters are > possibly not existing". I think we all can also agree that @ can be both > used properly a

Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-15 Thread Adam Richardson
On Fri, Apr 15, 2011 at 8:46 PM, Ben Schmidt wrote: > There was also my suggestion of a "checked ternary" operator [see my >> previous email in this thread.] Backwards compatible, practical, and >> simple. >> > > It doesn't address the main issues of code duplication and nullness > checking, IMHO,