Re: [PHP-DEV] Generic classes and methods RFC

2015-09-05 Thread John LeSueur
On Tue, Sep 1, 2015 at 2:54 AM, Pavel Kouřil wrote: > On Mon, Aug 31, 2015 at 10:31 PM, Ben Scholzen 'DASPRiD' > wrote: > > Hello, > > > > I've written up an RFC for supporting generic classes and methods in PHP, > > and I'd love to hear your thoughts about it. > > > > https://wiki.php.net/rfc/g

Re: [PHP-DEV] [RFC] Generators

2012-08-21 Thread John LeSueur
On Tue, Aug 21, 2012 at 12:31 AM, Lester Caine wrote: > Morgan L. Owens wrote: > >> For the third one ... I'm still waiting for some clarification on how >>> yield is SUPPOSED to work anyway? If you are using a 'generator' to >>> return a sequence of data elements, then just what does happen betw

Re: [PHP-DEV] Re: array_last_key() function

2012-07-14 Thread John LeSueur
On Sat, Jul 14, 2012 at 4:34 AM, Paul Dragoonis wrote: > On Sat, Jul 14, 2012 at 3:04 AM, Anthony Ferrara > wrote: > > Stas, > > > >> I like this idea. array_first_key would be nice too > >> > >> I am probably missing something, but what those would allow to do that > >> rewind/end+key() doesn't

Re: [PHP-DEV] Braceless Syntax extended to functions and classes (bugs #47416 and 24100)

2012-06-27 Thread John LeSueur
On Wed, Jun 27, 2012 at 11:06 AM, Michael Morris wrote: > PHP has a braceless syntax stretching back to its roots as a template > language. Frameworks which make use of php templating use these tags > quite frequently since it's harder to overlook an endif statement in a > sea of HTML tags than a

Re: [PHP-DEV] How hard should PHP try to finish a script?

2012-06-17 Thread John LeSueur
, really should kill the script, but don't need to skip error handlers. These would need some new E_ constant, and a rule that when thrown, an error handler can be called, but the script will die after the error handler has finished. There's probably more to it than that, which is why there would need to be a RFC. I'm guessing that if someone wrote an RFC, and had a patch, it would be received well. Thanks, John LeSueur

Re: [PHP-DEV] Complete case-sensitivity in PHP

2012-04-20 Thread John LeSueur
On Fri, Apr 20, 2012 at 9:01 AM, Sherif Ramadan wrote: > >>Because you can write a function name, say, in Cyrilic and it will just > work. > > > > PHP deals with strings on a binary level though. To PHP a function > > name of Áãç, for example is just a set of 256 bit encoded bytes. So > > "\xc3\x8

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-15 Thread John LeSueur
On Sun, Apr 15, 2012 at 7:21 AM, Jannik Zschiesche wrote: > > Am 15.04.2012 08:20, schrieb John LeSueur: > > Since you're looking for input, specifically on the compromise, let's try >> to figure out what's possible. The RFC proposes .phpp files that can only >

Re: [PHP-DEV] Re: internals Digest 13 Apr 2012 01:23:19 -0000 Issue 2650

2012-04-14 Thread John LeSueur
On Sat, Apr 14, 2012 at 11:55 PM, Kris Craig wrote: > On Sat, Apr 14, 2012 at 10:16 PM, Anthony Ferrara >wrote: > > > Kris, > > > > > As discussed on other threads, PHPP files that are called directly from > > the > > > webserver are handled by the SAPI handler and thus don't need any > special

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-13 Thread John LeSueur
On Thu, Apr 12, 2012 at 11:13 PM, Kris Craig wrote: > > > On Thu, Apr 12, 2012 at 8:24 PM, John LeSueur wrote: > >> >> On Thu, Apr 12, 2012 at 9:00 PM, Kris Craig wrote: >> >>> >>> >>> On Thu, Apr 12, 2012 at 7:51 PM, John LeSueur wrote:

Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts

2012-04-12 Thread John LeSueur
On Thu, Apr 12, 2012 at 9:00 PM, Kris Craig wrote: > > > On Thu, Apr 12, 2012 at 7:51 PM, John LeSueur wrote: > >> >> >> On Thu, Apr 12, 2012 at 7:49 PM, Kris Craig wrote: >> >>> On Thu, Apr 12, 2012 at 6:35 PM, David Muir >>>

Re: [PHP-DEV] Re: Disabling PHP tags by php.ini and CLI options

2012-04-11 Thread John LeSueur
On Wed, Apr 11, 2012 at 6:55 PM, Rasmus Lerdorf wrote: > On 04/11/2012 10:38 AM, John Crenshaw wrote: > > From: Rasmus Lerdorf [mailto:ras...@lerdorf.com] > >> I guess he is saying that it prevents: > >> > >>Random bytes > >> > >>More random bytes > >> > >> Where random bytes might be

Re: [PHP-DEV] Re: Disabling PHP tags by php.ini and CLI options

2012-04-10 Thread John LeSueur
On Tue, Apr 10, 2012 at 4:51 AM, Yasuo Ohgaki wrote: > Hi all, > > I've written most of thing that I would like to mention for this RFC. > I tried to be precise and understandable for anyone. If you have > questions, you are welcomed both on this list and in private. > > Regards, > > P.S. Directl

Re: [PHP-DEV] Scalar type hinting

2012-02-27 Thread John LeSueur
On Mon, Feb 27, 2012 at 12:15 PM, Kris Craig wrote: > Now, to rewind a bit past the latest chunk of "I hate this idea" posts > > I'd like to suggest a new term: "strong". > > This term would be similar to "weak", except with a few key differences: > > - Weak would behave very much like Arv

Re: [PHP-DEV] [RFC] Enum proposal (yet another)

2012-02-26 Thread John LeSueur
[trim] > 2. "Strict type hinting would eliminate PHP's flexibility and take away its > unique simplicity." > > I respectfully disagree. Again, let me remind you that we are *not* > talking > about *converting *PHP to strict type hinting. Instead, we're merely > talking about allowing PHP develop

Re: [PHP-DEV] [RFC] Enum proposal (yet another)

2012-02-23 Thread John LeSueur
Previous discussions have covered the probability that strict typing and dynamic typing can't coexist, because strict typing ends up pushing itself further up the call tree. An ini setting to change from one to the other will not solve that problem. Not sure that it says anything about enums, but s

Re: [PHP-DEV] The case of HTTP response splitting protection in PHP

2012-02-03 Thread John LeSueur
On Fri, Feb 3, 2012 at 7:01 AM, Gustavo Lopes wrote: > On Fri, 03 Feb 2012 13:03:24 +0100, Gustavo Lopes > wrote: > > On Fri, 03 Feb 2012 12:06:26 +0100, Stefan Esser < >> stefan.es...@sektioneins.de> wrote: >> >> [snip] >>> obviously inside PHP no one cares about reviewing security patches. >>

Re: [PHP-DEV] [PATCH] Property Getters/Setters (v2.4) for review

2012-02-03 Thread John LeSueur
Because Zend/zend_language_scanner.c is a generated file, you could exclude it from your diff, and end up with a much smaller patch. Smaller patches are more appealing :) On Fri, Feb 3, 2012 at 6:47 AM, Clint M Priest wrote: > The property accessor functionality is done and is detailed here: > h

Re: [PHP-DEV] [VOTE] Weak References

2011-08-05 Thread John LeSueur
On Thu, Aug 4, 2011 at 2:53 PM, Ferenc Kovacs wrote: > > On Thu, Aug 4, 2011 at 6:35 PM, Stas Malyshev wrote: > > Hi! > > On 8/4/11 5:34 AM, Lars Schultz wrote: > >>> > >>> Do not keep object references, keep object IDs. This would make your > >>> code a bit more verbose and a bit slower, but wea

Re: [PHP-DEV] [PATCH] Notice on array to string convertion

2011-06-02 Thread John LeSueur
On Thu, Jun 2, 2011 at 6:24 AM, Reindl Harald wrote: > > > Am 02.06.2011 13:54, schrieb Hannes Magnusson: > > On Thu, Jun 2, 2011 at 12:11, Patrick ALLAERT > wrote: > >> Hi, > >> > >> I would like to introduce an E_NOTICE when an array is silently > >> converted to a string. > >> This isn't very

Re: [PHP-DEV] RFC: about class names as values

2011-01-05 Thread John LeSueur
2011/1/5 Johannes Schlüter > On Wed, 2011-01-05 at 21:53 -0300, Martin Scotta wrote: > > $obj = newInstance( MyClass ); // notice. undefined constant MyClass > > This describes the major change with your idea. > > What happens if a constant MyClass exists? > > Another question is something like t

Re: [PHP-DEV] Remove variable function and method calls

2010-07-23 Thread John LeSueur
On Fri, Jul 23, 2010 at 9:40 AM, Reindl Harald wrote: > First: > A personally answer is NOT "the list" > > Am 23.07.2010 17:27, schrieb Karoly Negyesi: > >> Idiotic point of view, really there is no brain behind > > > > Really? so we are now down to personal attacks. > > Sorry but if you do not un

Re: [PHP-DEV] performance of the new output api

2010-06-02 Thread John LeSueur
On Wed, Jun 2, 2010 at 1:37 PM, Michael Wallner wrote: > > Now the script: > ini_set("memory_limit", "2G"); > > function mib($b) { >return $b ? number_format($b/1024/1204, 1, ".", "'") : "?"; > typo: shouldn't this be $b/1024/1024? John

Re: [PHP-DEV] Calling method on non-object recoverable? (was: typehinting throwing a fatal error)

2005-08-26 Thread John LeSueur
ially in complex code. I wouldn't even care if PHP didn't allow the script to continue after the error handler did it's job. Of course, if the engine is unstable, it's unstable. But if at all possible, I'd like to catch this particular error. John LeSueur -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-02 Thread John LeSueur
Jessie Hernandez wrote: Attached is the latest version of the namespace patch! It finally includes namespace imports and it even includes anonymous namespace support. Also, the previous bison shift/reduce conflict has been removed. Here is a summary of its features: - Simple imports: import ns:

Re: [PHP-DEV] abstract private methods

2005-06-08 Thread John LeSueur
an be used to reserve a function for future use? John LeSueur -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] os x linking issue with extension

2005-04-03 Thread John LeSueur
dynamic linker works. What do I need to do to have extension .so link to carbon? I am using the 5.0.3 release source package of php, os x 10.3.8, gcc 3.3 Michael Johnston You might find more help on pecl-dev. Specifically gabe has written some config.m4 stuff for osx that uses php_ADD_FRAMEWORK().

[PHP-DEV] CVS Account Request: jlesueur

2004-07-07 Thread Robert John LeSueur
Work on php_zeroconf with gabe -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Rendezvous in php

2004-07-06 Thread John LeSueur
est, I'm not sure about the interfaces thing. Right now, that's just getting passed directly to the underlying library. John LeSueur -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php