Re: [PHP-DEV] New function: spl_object_id() or spl_object_handle()

2014-11-28 Thread Sebastian Krebs
2014-11-28 2:13 GMT+01:00 Bostjan Skufca bost...@a2o.si: Hello everyone, this is a proposal to add new function to PHP core: spl_object_id() The story: Recently I was debugging some larger libraries and sorely missed a function that would return an object ID. A function called

Re: [PHP-DEV] [RFC] Abstract final classes

2014-11-27 Thread Sebastian Krebs
Hi, 2014-11-27 4:47 GMT+01:00 guilhermebla...@gmail.com guilhermebla...@gmail.com: Hi, I worked on an implementation of a somehow controversial concept that exists in hack and C#: abstract final classes. https://wiki.php.net/rfc/abstract_final_class The example is a little bit

Re: [PHP-DEV] Not all archives in http://museum.php.net/php5/ ?

2013-09-30 Thread Sebastian Krebs
2013/9/30 Yasuo Ohgaki yohg...@ohgaki.net Hi all, I would like to get _exactly_ the same sources that has been released. I though all archives are stored in museum.php.net, but apparently not. http://museum.php.net/php5/ Is there any place that archives old release tar ball? Or anyone

Re: [PHP-DEV] RFC: Anonymous Classes

2013-09-27 Thread Sebastian Krebs
2013/9/27 Michael Wallner m...@php.net On 27 September 2013 09:55, Nicolas Grekas nicolas.grekas+...@gmail.com wrote: If you need access to the methods in AProxifier then why does the anonymous class extend A, you should extend AProxifier as you would with any other class. Because

Re: [PHP-DEV] RFC: Automatic Property Initialization

2013-09-27 Thread Sebastian Krebs
2013/9/27 Gordon Oheim g...@php.net Independent but related to - https://wiki.php.net/rfc/**constructor-promotionhttps://wiki.php.net/rfc/constructor-promotion I wrote an RFC about porting Dart-like Automatic Property Initialization to PHP. Nikic was so generous to provide an initial PoC

Re: [PHP-DEV] Re: RFC: Automatic Property Initialization

2013-09-27 Thread Sebastian Krebs
2013/9/27 Matthieu Napoli matth...@mnapoli.fr Le 27/09/2013 09:17, Gordon Oheim a écrit : Independent but related to - https://wiki.php.net/rfc/**constructor-promotionhttps://wiki.php.net/rfc/constructor-promotion I wrote an RFC about porting Dart-like Automatic Property Initialization

Re: [PHP-DEV] RFC: Anonymous Classes

2013-09-23 Thread Sebastian Krebs
2013/9/23 Rasmus Lerdorf ras...@lerdorf.com On 09/22/2013 11:39 PM, Joe Watkins wrote: https://wiki.php.net/rfc/anonymous_classes I'd like to hear thoughts regarding the addition of anonymous classes, patch included. I am having a hard time picturing a real-world use-case for

Re: [PHP-DEV] RFC: Anonymous Classes

2013-09-23 Thread Sebastian Krebs
2013/9/23 Joe Watkins krak...@php.net On 09/23/2013 02:43 PM, Lars Strojny wrote: Hi Joe, what about serialization for those classes? cu, Lars Am 23.09.2013 um 08:39 schrieb Joe Watkins krak...@php.net: Morning All,

Re: [PHP-DEV] Re: RFC: Anonymous Classes

2013-09-23 Thread Sebastian Krebs
2013/9/23 Kingsquare.nl - Robin Speekenbrink ro...@kingsquare.nl Everyone, As a lurker i rarely have anthing to say, but this time i'd like to make an exception: I see some usability for this type of usage, but would like to disagree on the extra class... My usage would be more in line with

Re: [PHP-DEV] Re: RFC: Anonymous Classes

2013-09-23 Thread Sebastian Krebs
2013/9/23 Joe Watkins krak...@php.net On 09/23/2013 07:39 AM, Joe Watkins wrote: Morning All, https://wiki.php.net/rfc/**anonymous_classeshttps://wiki.php.net/rfc/anonymous_classes I'd like to hear thoughts regarding the addition of anonymous classes, patch included. Cheers

Re: [PHP-DEV] Allowing is_* functions to accept multiple parameters

2013-09-18 Thread Sebastian Krebs
2013/9/18 Igor Wiedler i...@wiedler.ch On Sep 18, 2013, at 11:53 AM, Leigh lei...@gmail.com wrote: Hi Internals. How do you feel about expanding the is_* functions to accept multiple parameters similar to the way isset() already does? ... Thoughts? For isset() there is a good

Re: [PHP-DEV] Re: Function autoloading

2013-09-05 Thread Sebastian Krebs
2013/9/3 Levi Morrison morrison.l...@gmail.com On Tue, Sep 3, 2013 at 10:54 AM, Pierre Joye pierre@gmail.com wrote: On Tue, Sep 3, 2013 at 6:04 PM, Levi Morrison morrison.l...@gmail.com wrote: In which case we have very different ideas about what good design is and would never

Re: [PHP-DEV] [RFC] Skipping parameters take 2

2013-09-02 Thread Sebastian Krebs
2013/9/2 Lester Caine les...@lsces.co.uk Ferenc Kovacs wrote: you write your code where you copypaste the default value some time passes somebody changes the default value in the called function definition your code now calls the function with a non-default value. Actually THAT is a

Re: [PHP-DEV] [RFC] Skipping parameters take 2

2013-09-02 Thread Sebastian Krebs
2013/9/2 Pierre Joye pierre@gmail.com hi Stas, On Mon, Sep 2, 2013 at 9:17 AM, Stas Malyshev smalys...@sugarcrm.com wrote: Hi! I've finally took some time to revive the skipping parameter RFC and patch. For those who doesn't remember what it is please see:

Re: AW: [PHP-DEV] [RFC] Skipping parameters take 2

2013-09-02 Thread Sebastian Krebs
2013/9/2 Stas Malyshev smalys...@sugarcrm.com Hi! I would not agree with your argument that it should be introduced because it is requested by real people for years and it is simple to add. Isn't that pretty much the same as because we can? No, it is pretty much the opposite. It is

[PHP-DEV] Re: Function autoloading

2013-08-31 Thread Sebastian Krebs
2013/8/31 Vartolomei Nicolae nvartolo...@gmail.com So you say you will create a file for every function you want to support autoloading? I already _have_ create files for functions of a namespace... Closed source. As I already asked, tell us about realworld use case, for example where

Re: [PHP-DEV] [DRAFT] [RFC] Function autoloading

2013-08-30 Thread Sebastian Krebs
2013/8/30 Stas Malyshev smalys...@sugarcrm.com Hi! I disagree on the basis that namespaced functions/constants *do* fit the same autoloading paradigm. If they're already namespaced, what prevents one to put it in a class and use good old PSR-compatible loading? Well, static methods

Re: [PHP-DEV] [DRAFT] [RFC] Function autoloading

2013-08-30 Thread Sebastian Krebs
2013/8/30 Stas Malyshev smalys...@sugarcrm.com Hi! I have created a new draft RFC implementing function and constant autoloading in master: https://wiki.php.net/rfc/function_autoloading All feedback is welcome. I think it is an unnecessary complication. Classes fit autoloader

Re: [PHP-DEV] [DRAFT] [RFC] Function autoloading

2013-08-30 Thread Sebastian Krebs
2013/8/30 Stas Malyshev smalys...@sugarcrm.com Hi! Well, static methods aren't the same as functions. The big difference being? A function is stateless [1], a method isn't. A function operates only on the passed parameters [1], the method operates on the parameters and the context it

Re: [PHP-DEV] [RFC] Syntax for variadic functions

2013-08-30 Thread Sebastian Krebs
2013/8/30 jbo...@openmv.com jbo...@openmv.com On Wed Aug 28 11:47 AM, Nikita Popov wrote: https://wiki.php.net/rfc/variadics Interesting idea, expanding on: function log($message, ...$options) {} It would seem convenient to allow ...$options to be passed as a key-value array of

Re: [PHP-DEV] Re: [DRAFT] [RFC] Function autoloading

2013-08-30 Thread Sebastian Krebs
2013/8/31 Stas Malyshev smalys...@sugarcrm.com Hi! We got a performance win from exactly this at Facebook. We have some extensions in HHVM to autoload that allowed us to remove almost all our *_once calls. But autoloading does not remove require - you still have to load the files.

Re: [PHP-DEV] Request #65501 uniqid(): More entropy parameter should be true by default

2013-08-22 Thread Sebastian Krebs
2013/8/22 Yasuo Ohgaki yohg...@ohgaki.net Hi all, I realized that not many users are using more entropy parameter Therefore, I made Request #65501 uniqid(): More entropy parameter should be true by default https://bugs.php.net/bug.php?id=65501 The comment title explains what this FR is.

Re: [PHP-DEV] Request #65501 uniqid(): More entropy parameter should be true by default

2013-08-22 Thread Sebastian Krebs
2013/8/22 Leigh lei...@gmail.com On 22 August 2013 13:39, Sebastian Krebs krebs@gmail.com wrote: Tbh I don't get the real problem with the _current_ behaviour. Who need the entropy, can set it as second parameter and I am not sure, if it is wise to use uniqid() for _security purposes_

RE: [PHP-DEV] [RFC] Constant Scalar Expressions

2013-08-14 Thread Sebastian Krebs
Am 14.08.2013 08:17 schrieb Christian Stoller stol...@leonex.de: Hello all, I'd like to propose a new RFC for 5.NEXT: https://wiki.php.net/rfc/const_scalar_expressions This allows for defining constant expressions which are resolved at compile time. What should that be for?

Re: [PHP-DEV] [RFC] Constant Scalar Expressions

2013-08-14 Thread Sebastian Krebs
Hi, Just asking: Does this cover only declarations, or every constant expression, for example $weeks = $secs / (60 * 60 * 24 * 7); becomes to the opcode-equivalent of $weeks = $secs / (604800); ? 2013/8/14 Anthony Ferrara ircmax...@gmail.com Stas, On Wed, Aug 14, 2013 at 5:01 AM, Stas

Re: [PHP-DEV] [RFC] Importing namespaced functions

2013-07-23 Thread Sebastian Krebs
Hi, Whats about constants? Regards, Sebastian Am 19.07.2013 19:30 schrieb Igor Wiedler i...@wiedler.ch: Hello internals, I posted the initial idea for a use_function RFC a few months back. I would like to make the proposal official now, and open it for discussion. I also did some work on

Re: [PHP-DEV] [RFC] Importing namespaced functions

2013-07-23 Thread Sebastian Krebs
Hi, Thanks for that. But actually I don't see: Why is use not enough? As far as I can see your example, why it would introduce a BC, doesn't really match to original question, why use function is used. Especially I don't see any ambiguity: foo(); // Always a function. You cannot call classes

Re: [PHP-DEV] [RFC] Importing namespaced functions

2013-07-23 Thread Sebastian Krebs
2013/7/23 Stas Malyshev smalys...@sugarcrm.com Hi! But actually I don't see: Why is use not enough? As far as I can see your example, why it would introduce a BC, doesn't really match to original Consider this: use a\b\c as foo; foo(); Now it would resolve to global function foo().

Re: [PHP-DEV] [RFC] Importing namespaced functions

2013-07-23 Thread Sebastian Krebs
2013/7/23 Igor Wiedler i...@wiedler.ch Hi Sebastian, The reason is precisely to avoid BC breaks, such as the one that you quoted from the FAQ. Are you suggesting that such a BC break is acceptable for 5.6? I don't fear BCs and actually I prefer BCs against weak compromises. This depends

Re: [PHP-DEV] PHP proposal on modular systems

2013-07-16 Thread Sebastian Krebs
2013/7/16 Giuseppe Ronca giuseppe.ron...@gmail.com I've studied Composer and as i thought ..it's a component installer (implementing an autoload system) .. nothing else ( i can have similar result using git submodules ) anyway , *you can have a class collision using or not using composer (

Re: [PHP-DEV] PHP proposal on modular systems

2013-07-16 Thread Sebastian Krebs
2013/7/16 Giuseppe Ronca giuseppe.ron...@gmail.com You can have multiple objects from the same type in different implemenations in the same process? No i'm not saying it. OK, what then? You have A and B, that both rely on X, but in version 1 and 2. Both A and B are used at the same time.

Re: [PHP-DEV] PHP proposal on modular systems

2013-07-15 Thread Sebastian Krebs
2013/7/15 Lester Caine les...@lsces.co.uk Marco Pivetta wrote: PS i'm not so practice with composer ( used few times ) but when modular systems , such as CMS , give the possibility to extends them with external components...i don't think that composer could solve this problem. It is

Re: [PHP-DEV] PHP proposal on modular systems

2013-07-14 Thread Sebastian Krebs
2013/7/14 Giuseppe Ronca giuseppe.ron...@gmail.com Php is now used by many CMS, many of which use a modular system with a wide range of add-ons developed by third parties. This can cause various conflicts, such as when two or more external components using the same library (i.g. with a

Re: [PHP-DEV] Gauging Interest:RFC to add map() function

2013-06-27 Thread Sebastian Krebs
2013/6/27 Tjerk Anne Meesters datib...@php.net On Thu, Jun 27, 2013 at 4:27 PM, Florin Patan florinpa...@gmail.com wrote: On Thu, Jun 27, 2013 at 10:17 AM, Tjerk Anne Meesters datib...@php.net wrote: On Wed, Jun 26, 2013 at 11:20 PM, Jeremy Curcio j.cur...@icloud.com wrote:

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Sebastian Krebs
2013/6/27 Kingsquare.nl - Robin Speekenbrink ro...@kingsquare.nl I'd thought this would have been `solved` by allowing the list statement in foreach ( http://nl3.php.net/manual/en/control-structures.foreach.php#control-structures.foreach.list ) Doesnt that solve your problem already?

Re: [PHP-DEV] New syntax for multidimensional array loop with foreach

2013-06-27 Thread Sebastian Krebs
2013/6/27 Florin Patan florinpa...@gmail.com On Thu, Jun 27, 2013 at 4:10 PM, Christian Stoller stol...@leonex.de wrote: Hi internals, during my current work I had an idea for shorter array iteration with foreach. I haven’t seen such a syntax until now, but I think it is easy to

Re: [PHP-DEV] RFC: Protocol Type Hinting

2013-06-27 Thread Sebastian Krebs
2013/6/27 Anthony Ferrara ircmax...@gmail.com Stas et al, So, the question of what is the difference between the two errors remains unanswered. If the whole diff is that one of the errors has word recoverable in the message, it's not substantial difference at all and one that does not

Re: [PHP-DEV] supporting the final keyword for properties

2013-05-28 Thread Sebastian Krebs
2013/5/28 Amaury Bouchard ama...@amaury.net 2013/5/28 Maciek Sokolewicz maciek.sokolew...@gmail.com It’s a good idea in general but what about having it for variables as well? Could open interesting possibilities for an optimizer. final $foo = str; $foo = bar; // bails out Don't

Re: [PHP-DEV] supporting the final keyword for properties

2013-05-28 Thread Sebastian Krebs
2013/5/28 Amaury Bouchard ama...@amaury.net 2013/5/28 Sebastian Krebs krebs@gmail.com print($$b); print(constant($b)); It's definitely different. In your example you have to know that you are manipulating constants only. And in your example you have to know, that you

Re: [PHP-DEV] idea: letting the line number and file name be set via user_error

2013-05-07 Thread Sebastian Krebs
2013/5/7 Thomas Anderson zeln...@gmail.com If you do user_error('whatever') it'll show, as the line number for that error, the line number on which that user_error() call is made. It'd be nice if you could control the line number and file name that was displayed. eg. ?php function test()

Re: [PHP-DEV] idea: letting the line number and file name be set via user_error

2013-05-07 Thread Sebastian Krebs
2013/5/7 Bob Weinand bobw...@hotmail.com Am 7.5.2013 um 18:25 schrieb Ferenc Kovacs tyr...@gmail.com: On Tue, May 7, 2013 at 6:09 PM, Thomas Anderson zeln...@gmail.com wrote: If you do user_error('whatever') it'll show, as the line number for that error, the line number on which that

Re: [PHP-DEV] idea: letting the line number and file name be set via user_error

2013-05-07 Thread Sebastian Krebs
2013/5/7 Thomas Anderson zeln...@gmail.com On Tue, May 7, 2013 at 2:04 PM, Sebastian Krebs krebs@gmail.comwrote: 2013/5/7 Thomas Anderson zeln...@gmail.com If you do user_error('whatever') it'll show, as the line number for that error, the line number on which that user_error

Re: [PHP-DEV] idea: letting the line number and file name be set via user_error

2013-05-07 Thread Sebastian Krebs
2013/5/7 Bob Weinand bobw...@hotmail.com Am 7.5.2013 um 21:07 schrieb Sebastian Krebs krebs@gmail.com: 2013/5/7 Bob Weinand bobw...@hotmail.com Am 7.5.2013 um 18:25 schrieb Ferenc Kovacs tyr...@gmail.com: On Tue, May 7, 2013 at 6:09 PM, Thomas Anderson zeln...@gmail.com wrote

Re: [PHP-DEV] idea: letting the line number and file name be set via user_error

2013-05-07 Thread Sebastian Krebs
2013/5/7 Bob Weinand bobw...@hotmail.com Am 7.5.2013 um 22:11 schrieb Stas Malyshev smalys...@sugarcrm.com: Hi! And today we have the problem that we cannot use in any useful manner trigger_error in libraries, when we don't know where the error originates from. You debug today

Re: [PHP-DEV] Re: Importing namespaced functions

2013-05-02 Thread Sebastian Krebs
Hi, Are you going to cover autoloading of functions too? Regards, Sebastian 2013/5/2 Igor Wiedler i...@wiedler.ch Hi internals, Since there's been no major objection to this proposed RFC, I will go ahead and create it on the wiki. I will amend it to address some of the points that were

Re: [PHP-DEV] Re: Importing namespaced functions

2013-05-02 Thread Sebastian Krebs
to simply use the prefixed one, so the benefit seems quite small to me :X use MyFoo\Bar\MathFunctions as math; $x = math\sin($y); Just saying :) Regards, Sebastian On May 2, 2013, at 11:40 PM, Sebastian Krebs krebs@gmail.com wrote: Hi, Are you going to cover autoloading

Re: [PHP-DEV] property de-referencing

2013-04-30 Thread Sebastian Krebs
2013/5/1 Rasmus Schultz ras...@mindplay.dk Any PHP dev who works with a mainstream framework does this daily, but the frameworks rely on strings for property-names. Take this example from the Symfony manual, for example: class Task { protected $task;

Re: [PHP-DEV] Could we kill call_user_func?

2013-03-15 Thread Sebastian Krebs
2013/3/15 Steve Clay st...@mrclay.org I'm sure this question has been discussed before, so if anyone can point to me to links or briefly recap I'd appreciate it. Why can't we make $someCallable() always work? E.g. http://3v4l.org/FLpAq I understand the problem of $obj-foo() where -foo is a

Re: [PHP-DEV] Allow all callables to be called directly

2013-03-15 Thread Sebastian Krebs
2013/3/15 Steve Clay st...@mrclay.org My subject was misleading. I didn't mean to suggest call_user_func() be removed, just be made unnecessary by direct call syntax. This should make the inconsistency clearer: http://3v4l.org/L8Yvq On 3/15/13 10:21 AM, Sebastian Krebs wrote: You don't

Re: [PHP-DEV] Could we kill call_user_func?

2013-03-15 Thread Sebastian Krebs
2013/3/15 Stas Malyshev smalys...@sugarcrm.com Hi! why not enable then this getCallback()();? There's an RFC for that: https://wiki.php.net/rfc/fcallfcall but it has some edge cases which I didn't have time to figure out yet. In the long run I think it would be great :) Earlier I also

Re: [PHP-DEV] [RFC] unset(): return bool if the variable has existed

2013-03-07 Thread Sebastian Krebs
2013/3/7 Stas Malyshev smalys...@sugarcrm.com Hi! RFC updated. Any other comments about this RFC? Could you provide a use case for this - which practical value this has? It also still contains factually incorrect claim that unset() is a function and that there's some inconsistency in

Re: [PHP-DEV] Memory warning hook

2013-03-05 Thread Sebastian Krebs
2013/3/5 Lazare Inepologlou linep...@gmail.com 2013/3/5 Tom Boutell t...@punkave.com Can't you do this already? memory_limit can be fetched via ini_read, and together with memory_get_usage you should be able to check for this sort of thing. Admittedly having to parse memory_limit (which

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-28 Thread Sebastian Krebs
2013/2/28 Jens Riisom Schultz ibmu...@me.com Hi everyone, (I got hooked off this discussion, so I have tried to keep up by reading the digest... This makes it impossible for me to correctly interleave my comments, so I'll just top post or whatever the term is) (I'm sure this has been

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-27 Thread Sebastian Krebs
2013/2/27 Jens Riisom Schultz ibmu...@me.com Hi, I just want to get a feel for whether the following idea would be instantly rejected (for example I get the feeling that adding keywords is a big deal): Often, when writing frameworks, you need to make public or protected functionality or

Re: [PHP-DEV] Add get_object_constants and get_class_constants

2013-02-27 Thread Sebastian Krebs
2013/2/27 Frank Schenk frank.sch...@2e-systems.com Hi Crypto Compress, big congratz to that name, your mummy Hash Compress and your daddy Image Compress must be very proud! SCNR Am 02/27/2013 03:54 PM, schrieb Crypto Compress: Hello Mike, thank you! It is a useful feature to me.

Re: [PHP-DEV] I would like to write an RFC for the addition of an internal keyword

2013-02-27 Thread Sebastian Krebs
2013/2/27 Steve Clay st...@mrclay.org On 2/27/13 3:18 AM, Nikita Nefedov wrote: I, for one, think it should be solved on the IDE side. I used a lot of Doctrine's internal methods lately and if they would be not accessible I wouldn't be able to do a lot of things. Of course internal

Re: [PHP-DEV] Allow (...)-foo() expressions not only for `new`

2013-02-26 Thread Sebastian Krebs
2013/2/26 Lazare Inepologlou linep...@gmail.com Hello Nikita, 2013/2/25 Nikita Popov nikita@gmail.com Hi internals! PHP 5.4 added support for expressions of the kind (new Foo)-bar(), (new Foo)-bar and (new Foo)['bar']. I guess it must have been discussed, but Is there any

Re: [PHP-DEV] Late FQCN resolution using ::class

2013-02-25 Thread Sebastian Krebs
2013/2/25 Jens Riisom Schultz ibmu...@me.com Hi everybody, I have read up on this, and done some testing. First up, my findings with PHP5.5 alpha5: ?php namespace spacy; class classy { public static function fqcn() { /* This works but is not useful enough: */

Re: [PHP-DEV] RFC Autoboxing Draft

2013-02-25 Thread Sebastian Krebs
2013/2/25 Nils Andre nilsan...@gmail.com Hi Everyone on the list, I have no RFC Karma here so far, so I post this to the list at first. There has been ongoing discussion about new APIs and so fort, so this is a suggestion for language cleanup by Autoboxing. I'd really appreciate comments.

Re: [PHP-DEV] rfc:trailing-comma-function-args

2013-02-22 Thread Sebastian Krebs
2013/2/22 Rasmus Schultz ras...@mindplay.dk I've been thinking about this RCF for a while now: https://wiki.php.net/rfc/trailing-comma-function-args It just doesn't seem necessary - the only time I've ever found something like this to be necessary, is when a function takes closures or other

Re: [PHP-DEV] Pull request for array_filter() improvement

2013-02-21 Thread Sebastian Krebs
2013/2/21 Tjerk Anne Meesters datib...@php.net Hi, I found myself wanting a feature of array_filter() with which I can perform filtering based on the array key instead of the value. To scratch this itch, I decided to dive into C again and just add the feature. My proposal is to add a third

Re: [PHP-DEV] PHP 6 : a new API ?

2013-02-20 Thread Sebastian Krebs
2013/2/20 Klaus Ufo klaus...@yahoo.fr Hi there ! We all know that the current PHP API has flaws. Maybe we could use namespaces to build a new coherent PHP API ? Like : - \arr - \num - \str and so on. Advantages : - no more global functions Just to throw that in: Even if you pack

Re: [PHP-DEV] File system watcher/monitoring

2013-02-15 Thread Sebastian Krebs
2013/2/15 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net On 15/02/13 14:20, Sebastian Krebs wrote: 2013/2/15 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net** Hi Stas, On 14/02/13 22:37, Stas Malyshev wrote: Hi! A missing feature in PHP is a file system watcher/monitoring

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Sebastian Krebs
2013/2/14 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net Hello Julien, On 14/02/13 15:29, Julien Pauli wrote: On Thu, Feb 14, 2013 at 3:03 PM, Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net wrote: Hi internal, A missing feature in PHP is a file system watcher/monitoring

Re: [PHP-DEV] RFC mysqlnd.localhost_override

2013-02-12 Thread Sebastian Krebs
2013/2/12 Asbjørn Sannes asbjorn.san...@interhost.no https://wiki.php.net/rfc/**mysqlnd_localhost_overridehttps://wiki.php.net/rfc/mysqlnd_localhost_override I propose we introduce a new option called mysqlnd.localhost_override which enables a system administrator or php distributor to

Re: [PHP-DEV] (non)growing memory while creating anoymous functions via eval()

2013-02-03 Thread Sebastian Krebs
2013/2/3 Sebastian Bergmann sebast...@php.net Am 03.02.2013 18:07, schrieb Sebastian Bergmann: Can you explain why you are using eval() instead of a real anonymous function? Thanks! Please ignore my email; I mixed up create_function() and eval(). Then again, your code still does not

Re: [PHP-DEV] Proposal: php://memory/id ( ://temp/id)

2013-01-31 Thread Sebastian Krebs
2013/1/31 Chris Wright chr...@aquacool.ltd.uk I propose the following syntax: php://memory/id php://temp/id/maxmemory:size I would very much like to see this as well. Would this also allow you to open multiple pointers to the same bucket? For example would this work? ?php

Re: [PHP-DEV] Proposal: php://memory/id ( ://temp/id)

2013-01-31 Thread Sebastian Krebs
2013/1/31 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net On 31/01/13 12:00, Sebastian Krebs wrote: 2013/1/31 Chris Wright chr...@aquacool.ltd.uk I propose the following syntax: php://memory/id php://temp/id/maxmemory:**size I would very much like to see this as well

Re: [PHP-DEV] HEADS UP: Upcoming Feature Freeze for PHP 5.5.0

2013-01-25 Thread Sebastian Krebs
2013/1/25 Thomas Bley thbley+...@gmail.com One thing I can guarantee is that if we add it to core in its current condition it will delay 5.5 by 6+ months if not longer. I think it is fine if APC doesn't support all features of PHP. When there is a clear documentation, everybody can decide

Re: [PHP-DEV] I think that Function naming inconsistency bug deservers more attention

2013-01-25 Thread Sebastian Krebs
2013/1/25 Pierre Joye pierre@gmail.com hi, On Fri, Jan 25, 2013 at 3:37 PM, Martin Keckeis martin.kecke...@gmail.com wrote: Hello, you are right Damian. Also today on a german page:

Re: [PHP-DEV] [VOTE] Property Accessors for 5.5

2013-01-22 Thread Sebastian Krebs
2013/1/22 Lester Caine les...@lsces.co.uk Clint Priest wrote: There seems to be a lot of userland support for this proposal from people who don't have voting rights. And what about the userland people who don't want the additional complexity who don't have voting rights? Don't use it.

Re: [PHP-DEV] FW: Functionality request/proposal

2013-01-14 Thread Sebastian Krebs
2013/1/14 Johannes Schlüter johan...@schlueters.de On Mon, 2013-01-14 at 04:10 +, Paulo Henrique Torrens wrote: Hi, I'm currently interested in two features I'd like to see in PHP; how do I proceed to request/propose them? I'd be glad to help implementing them as well, if necessary.

Re: [PHP-DEV] [Reflection] Improve logic of ReflectionMethod-invokeArgs() for static methods

2013-01-14 Thread Sebastian Krebs
; which closure?!? I guess you are in fact looking for regular instance methods. 2013/1/14 Sebastian Krebs krebs@gmail.com: 2013/1/14 Alexander Lissachenko lisachenko...@gmail.com Hi! It's my first letter here ) I want to suggest a small improvement for ReflectionMethod-invoke

Re: [PHP-DEV] [RFC] Reflection annotations reader

2013-01-06 Thread Sebastian Krebs
2013/1/6 Yahav Gindi Bar g.b.ya...@gmail.com On Mon, Jan 7, 2013 at 12:41 AM, Marco Pivetta ocram...@gmail.com wrote: I think that our work is to isolate each annotation so it'll be easy to access, then, it'll be easy enough to write the code that creates complex annotations, such as

Re: [PHP-DEV] Improve DateTime Class

2012-12-10 Thread Sebastian Krebs
Hi, are you mabe just looking for $date-add(new DateInterval('P15D')); ? 2012/12/10 Christian Stoller stol...@leonex.de Hi internals, what do you think about improving the modification functionality of the DateTime class. I always get a cold shiver, when I write something like this:

Re: [PHP-DEV] DateTime::modify('now') is ignored, why?

2012-11-26 Thread Sebastian Krebs
2012/11/26 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net Hi internals, I would to modify a \DateTime object to the current time, thus I wrote this: $d = new \DateTime('+1 hour'); $d-modify('now'); It did not work. Why? Because the documentation (http://php.net/datetime.*

Re: [PHP-DEV] RFC: ext/mysql deprecation

2012-11-20 Thread Sebastian Krebs
2012/11/20 Lester Caine les...@lsces.co.uk Pierre Joye wrote: https://www.google.de/search?**q=php+mysqli+tutorialhttps://www.google.de/search?q=php+mysqli+tutorial Which gives About 273,000 results and the first of them are causing more confusion with PDO alternative. BUT newcomers know

Re: [PHP-DEV] Autoload Functions RFC in 5.5?

2012-11-11 Thread Sebastian Krebs
2012/11/11 Patrick E. zeno...@gmail.com Hi, use My\Math Math\sin(); very intuitive. And it would be a bit like Python Modules, where you import symbols (including global variables of the module) of modules: import math print math.sin(math.pi) Const autoload would also make sense,

Re: [PHP-DEV] Autoload Functions RFC in 5.5?

2012-11-10 Thread Sebastian Krebs
2012/11/10 Laupretre François francois.laupre...@francetv.fr Given the strong opposition of core devs against this feature in the past, I want a vote on the RFC before I start working on a patch. Before this vote can take place, as you note, we need to solve the function fallback issue: in

Re: [PHP-DEV] Object comparison

2012-11-09 Thread Sebastian Krebs
Hi, Maybe it goes way to far, but there is a PECL-extension [1], that allows to overload every(?) operator. However, it seems to be unmaintained for 6 years now and will probably not work anymore, but it may be usable as a starting point. Python provides this too [2] Regards, Sebastian [1]

Re: [PHP-DEV] [RFC] Implement a LoggerInterface to PHP

2012-11-08 Thread Sebastian Krebs
2012/11/8 Anthony Ferrara ircmax...@gmail.com Florin, On Thu, Nov 8, 2012 at 6:42 AM, Florin Razvan Patan florinpa...@gmail.comwrote: Hello, After a talk on the Symfony framework here: https://github.com/symfony/symfony/issues/5911 Long story short, the point that @Seldaek

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-07 Thread Sebastian Krebs
2012/11/7 Laupretre François francois.laupre...@francetv.fr De : sebastian.krebs.ber...@gmail.com I hope you find more support on this than I had. Technically speaking, it would be easy to extend autoloading to functions and constants. It can even be done without BC breaks, combining

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-06 Thread Sebastian Krebs
2012/11/6 Laupretre François francois.laupre...@francetv.fr I've asked this question for a while (one, or two years ago or so). Must say, that I didn't remember the answer, but I would like to see autoloading for namespace-constants and functions too :) I proposed extending the autoload

Re: [PHP-DEV] Re: [PHP-WEBMASTER] Why isn't `spl_autoload` called for functions?

2012-11-05 Thread Sebastian Krebs
2012/11/5 Peter Cowburn sala...@php.net Pushing to internals list. On 5 November 2012 20:41, Levi Morrison morrison.l...@gmail.com wrote: I hear people complaining about this out in user-land all the time, but I've never seen anyone from internals respond. With practically everyone using

Re: [PHP-DEV] Changing the default value of true for CURLOPT_SSL_VERIFYHOST

2012-10-25 Thread Sebastian Krebs
2012/10/25 crankypuss fullm...@newsguy.com On 10/24/2012 11:34 PM, Sherif Ramadan wrote: On Thu, Oct 25, 2012 at 1:03 AM, JJ ja...@php.net wrote: Hey all - I'd like start a discussion around pull request 221 (https://github.com/php/php-**src/pull/221https://github.com/php/php-src/pull/221

Re: [PHP-DEV] [RFC] Propety Accessors v1.1

2012-10-11 Thread Sebastian Krebs
2012/10/11 Clint Priest cpri...@zerocue.com Why is everyone so dead set against read-only and write-only? my opinion 1. public read-only $hours { get { /* .. */ } set { /* .. */ } } And now? That this is even possible is reason enough for me. Especially now the engine must take

Re: [PHP-DEV] [RFC] Propety Accessors v1.1

2012-10-11 Thread Sebastian Krebs
2012/10/11 Clint Priest cpri...@zerocue.com Rather than go to the trouble of finding a reasonable way to hold a vote on these issues, is there anyone against the following changes: 1) Eliminate the ability for an accessor to be called via $o-__getHours(), the accessor functions will be

Re: [PHP-DEV] [RFC] Propety Accessors v1.1

2012-10-09 Thread Sebastian Krebs
2012/10/9 Christian Kaps christian.k...@mohiva.com Hi, typehinting should definitely be available for this feature. But I have another question. Why not go more consistent with the rest of the language? I have mentioned this previously as the first proposal comes up on the list. In my

Re: [PHP-DEV] Re: RFC: Implementing a core anti-XSS escaping class

2012-09-19 Thread Sebastian Krebs
2012/9/19 Tomas Creemers tomas.creem...@gmail.com Hi all, If this is going to be implemented as a class, what is the advantage of instantiation for this? Unless I'm missing it, I would propose that the functions are made static. In other words, I would prefer this: echo

Re: [PHP-DEV] RFC: alternative callback syntax

2012-09-19 Thread Sebastian Krebs
2012/9/19 Steve Clay st...@mrclay.org Hello, https://wiki.php.net/rfc/**alternative_callback_syntaxhttps://wiki.php.net/rfc/alternative_callback_syntaxis a proposal for a simple alternative syntax for creating function callbacks. The basics: Given a function/method call, replace the

Re: [PHP-DEV] Re: RFC: Implementing a core anti-XSS escaping class

2012-09-19 Thread Sebastian Krebs
2012/9/19 Tomas Creemers tomas.creem...@gmail.com On Wed, Sep 19, 2012 at 8:34 AM, Sebastian Krebs krebs@gmail.com wrote: 2012/9/19 Tomas Creemers tomas.creem...@gmail.com Hi all, If this is going to be implemented as a class, what is the advantage of instantiation

Re: [PHP-DEV] Re: RFC: Implementing a core anti-XSS escaping class

2012-09-19 Thread Sebastian Krebs
2012/9/19 Tomas Creemers tomas.creem...@gmail.com On Wed, Sep 19, 2012 at 8:34 AM, Sebastian Krebs krebs@gmail.com wrote: 2012/9/19 Tomas Creemers tomas.creem...@gmail.com Hi all, If this is going to be implemented as a class, what is the advantage of instantiation

Re: [PHP-DEV] an configure option to enable-all

2012-09-17 Thread Sebastian Krebs
2012/9/17 jpauli jpa...@php.net I'm confused.. --enable-all is already supported, just like --disable-all ? -Hannes AFAIR no :) We have a --disable-all , but no --enable-all. I'm +1 to add such an option if possible :) Julien.P I don't like the idea, because once --enable-all is

Re: [PHP-DEV] an configure option to enable-all

2012-09-16 Thread Sebastian Krebs
Am 16.09.2012 22:20, schrieb Hannes Magnusson: On Sun, Sep 16, 2012 at 8:50 PM, Michael Felt mamf...@gmail.com wrote: Hi. My apologies if I missed an obvious clue somewhere, but I am looking for a configure option to enable nearly everything - to be supplemented by select disable statements.

Re: [PHP-DEV] PHP build-in HTTP server and the HEAD method

2012-09-12 Thread Sebastian Krebs
Hi, As far as I can see everything works as expected: Because HEAD-requests should not send any content, you don't get any. Regards, Sebastian 2012/9/12 Ivan Enderlin @ Hoa ivan.ender...@hoa-project.net Hello, It is probably me but it seems like the build-in HTTP server does not well

Re: [PHP-DEV] Combined assignment operator for short ternary

2012-08-25 Thread Sebastian Krebs
Am 25.08.2012 18:38, schrieb Ferenc Kovacs: would this trigger a notice if $foo is not defined? if yes, then it would be different from the current behavior of the ternary operator. Couldn't believe it, thus I tested it myself snip Don't know, what you are

Re: [PHP-DEV] Re: Combined assignment operator for short ternary

2012-08-25 Thread Sebastian Krebs
Am 25.08.2012 01:53, schrieb Nikita Popov: On Sat, Aug 25, 2012 at 1:49 AM, Sebastian Krebs krebs@gmail.com wrote: Hi, It's like with any other compound operator: A _real_ reason isn't there. But saying It's not worth it is something I can live with (even if I don't know how much effort

Re: [PHP-DEV] Combined assignment operator for short ternary

2012-08-25 Thread Sebastian Krebs
Am 26.08.2012 01:57, schrieb Ferenc Kovacs: So you are saying that your (teams) IDE doesn't tell you the method signature which contains also the default values? I guess that the fact that many of the php core functions have optional arguments and non null defaults

Re: [PHP-DEV] Aspect Oriented Programming in PHP

2012-08-24 Thread Sebastian Krebs
trace, what happens when and why. Also as I mentioned I don't even have any better idea ;) Regards, Sebastian 2012/8/23 Sebastian Krebs krebs@gmail.com Hi, From my users point of view: I would like to see it. Maybe not in this implementation/syntax, especially because it hasn't

[PHP-DEV] Re: Combined assignment operator for short ternary

2012-08-24 Thread Sebastian Krebs
trigger a notice like | $foo['xy'] = $foo['xy'] ?: 'bar'; would do. Regards, Sebastian Am 17.08.2012 23:41, schrieb Sebastian Krebs: Hi, Don't know, how complicated this is (and also someone (not me) must implement it, because I can't :X), but to be in sync with the operators the short ternary

  1   2   >