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

Re: [PHP-DEV] [RFC] Generators

2012-08-21 Thread John LeSueur
On Tue, Aug 21, 2012 at 12:31 AM, Lester Caine les...@lsces.co.uk 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

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 dragoo...@gmail.com wrote: On Sat, Jul 14, 2012 at 3:04 AM, Anthony Ferrara ircmax...@gmail.com 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

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 dmgx.mich...@gmail.comwrote: 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

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

2012-06-17 Thread John LeSueur
, 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 theanomaly...@gmail.comwrote: 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.

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

2012-04-15 Thread John LeSueur
On Sat, Apr 14, 2012 at 11:55 PM, Kris Craig kris.cr...@gmail.com wrote: On Sat, Apr 14, 2012 at 10:16 PM, Anthony Ferrara ircmax...@gmail.com wrote: Kris, As discussed on other threads, PHPP files that are called directly from the webserver are handled by the SAPI handler and thus

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 he...@apfelbox.netwrote: 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 include other .phpp

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 kris.cr...@gmail.com wrote: On Thu, Apr 12, 2012 at 8:24 PM, John LeSueur john.lesu...@gmail.comwrote: On Thu, Apr 12, 2012 at 9:00 PM, Kris Craig kris.cr...@gmail.com wrote: On Thu, Apr 12, 2012 at 7:51 PM, John LeSueur john.lesu

Re: [PHP-DEV] Scalar type hinting

2012-02-27 Thread John LeSueur
On Mon, Feb 27, 2012 at 12:15 PM, Kris Craig kris.cr...@gmail.com 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

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 developers to

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

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 cpri...@zerocue.com wrote: The property accessor functionality is done and is

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 glo...@nebm.ist.utl.ptwrote: On Fri, 03 Feb 2012 13:03:24 +0100, Gustavo Lopes glo...@nebm.ist.utl.pt 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

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

2011-08-05 Thread John LeSueur
On Thu, Aug 4, 2011 at 2:53 PM, Ferenc Kovacs tyr...@gmail.com wrote: On Thu, Aug 4, 2011 at 6:35 PM, Stas Malyshev smalys...@sugarcrm.com 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

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 h.rei...@thelounge.netwrote: Am 02.06.2011 13:54, schrieb Hannes Magnusson: On Thu, Jun 2, 2011 at 12:11, Patrick ALLAERT patrickalla...@php.net wrote: Hi, I would like to introduce an E_NOTICE when an array is silently converted to a

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

2011-01-05 Thread John LeSueur
2011/1/5 Johannes Schlüter johan...@php.net 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

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 h.rei...@thelounge.netwrote: 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

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 m...@php.net wrote: Now the script: ?php 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
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

Re: [PHP-DEV] abstract private methods

2005-06-08 Thread John LeSueur
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
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(). It's in the php_zeroconf extension. John

[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
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