[PHP-DEV] Namespace

2007-12-07 Thread Lokrain
Hello all, I just wanted to drop an opp. Just to see the logic, when we have programming structure class, interface, function, if statement, switch statement etc, we have bracers encapsulation. This is the logic that most programming language give to show a programmer that something is inside some

Re: [PHP-DEV] Thoughts on Feature Request - Arithmetic

2007-12-08 Thread Lokrain
The solution is already in pear : http://pear.php.net/package/Math_RPN

Re: AW: [PHP-DEV] Namespace resolution

2007-12-11 Thread Lokrain
Calm down David :) He is referring only 3 cases. Please check the link he is providing too :)

Re: [PHP-DEV] Array syntax []

2008-01-11 Thread Lokrain
Hello mr. Antonio Touriño, So as if I understand, you want to change the syntax of array() keyword. Will you mind to update the changes in all php scripts in the world too? PS. You can always have your [] in custom patch, but I do not think it's useful to want it globally changed.

Re: [PHP-DEV] Re: Array syntax []

2008-01-13 Thread Lokrain
-1 On Jan 13, 2008 11:25 PM, Adler Medrado <[EMAIL PROTECTED]> wrote: > +1 > > ""Andi Gutmans"" <[EMAIL PROTECTED]> escreveu na notícia da > mensagem:[EMAIL PROTECTED] > > Andi 2003: > > http://www.mail-archive.com/internals@lists.php.net/msg03896.html > > > > > > > > Andi's brain evolves 2007: >

Re: [PHP-DEV] why we must get rid of unicode.semantics switch ASAP

2008-01-22 Thread Lokrain
+1 Remove switch. Make unicode strings default.

Re: [PHP-DEV] Protected static props redeclared as public share value across classes

2008-01-28 Thread Lokrain
Hi All, A property can share it's value with it's parent but methods need to call parent::$method() and this is not done by default that is why the behavior is different. Is that the right behavior?! I really don't know. I think the inheritance of the static methods as two distinct methods is righ

Re: [PHP-DEV] get_magic_quotes_gpc, get-magic-quotes-runtime in head, get a "final" decision

2008-02-06 Thread Lokrain
-1 On Feb 5, 2008 10:23 PM, Pierre Joye <[EMAIL PROTECTED]> wrote: > Hi, > > It seems that there is voices in favor of keeping the GPC related > functions in HEAD/php6 but returning always FALSE. I thought the > decision was already done but I rather prefer to ask the list a second > time and be

Re: [PHP-DEV] Problems with LSB

2008-02-11 Thread Lokrain
Hello, Sebastian This seems to be a known bug http://bugs.php.net/bug.php?id=43408 and in fact already assigned. Fallbacks occur in static/self calls, as static/self resolve to "foo" > and it returns foo as expected. > > However, when you do a parent::demo() you actually call bar::demo(), > which

[PHP-DEV] PHP.Net Site

2008-02-25 Thread Lokrain
Hello there, I am not sure here is the right place to mention this, but I still think it will be cool, if there is some spell checking before posting news on php.net. There are mistakes like the word 'Addded' -> perhaps should be 'Added'. This thing lead me to the idea, of spell checker who logs

Re: [PHP-DEV] get_magic_quotes_gpc, get-magic-quotes-runtime in head, get a "final" decision

2008-02-27 Thread Lokrain
Hello David, > telling us what we already know. I am not quite sure, that all developers, for example the junior one, know that.

Re: [PHP-DEV] Re: How to build a real Trait thing without exclusion and renaming

2008-02-27 Thread Lokrain
Hi Gregory and others, Traits rox! I will never use them cause I think in different way, but for many people this will be a great feature. Gregory, the comment you added here: OK, since none of my suggestions are acceptable, let me put it this way: Childish story! I want my toy! I am fully +1

Re: [PHP-DEV] get_defined_vars() inconsistencies and op_array->uses_this

2008-02-28 Thread Lokrain
Hello Robin, This interesting issue, this should be patched asap! Vote +1. Best Regards, Dimitar Isusov

Re: [PHP-DEV] Non-breaking Traits

2008-03-14 Thread Lokrain
Hi Stefan, I suggest you to remove words like 'discussion' from the wiki,

Re: [PHP-DEV] Re: [RFC] Namespace syntax decision

2008-03-25 Thread Lokrain
+1 to multiple namespaces with brackets. Dimitar Isusov

Re: [PHP-DEV] Inconsistencies when accessing protected members

2008-03-27 Thread Lokrain
Hello Internals, This discussion was very interesting to me so I made some research about all languages OOP. Each time I saw definition of public, protected, private there was an explanation which never mentioned instances, but classes. I certainly thought that Richard is right saying: Surely it

Re: [PHP-DEV] BC break with php 5.2.6

2008-03-27 Thread Lokrain
Hello Marco, May be you should check the "[PHP-DEV] Inconsistencies when accessing protected members" thread. It's said there: Private means this API belongs to this class only, protected means this API > belongs to this class and the children. and you can find there a lot of useful thoughts a

[PHP-DEV] When will php 5.3 be released?

2008-05-05 Thread Lokrain
Hi, The company I work for has as a rule to update it's projects to the latest php. This starts usually one month before the official release. Can you tell me when will php 5.3 be released? Of course not the exact date but something around it :) Like month? Best Regards, Dimitar Isusov

Re: [PHP-DEV] Short syntax for array literals [...]

2008-05-23 Thread Lokrain
Hello, -100. This discussion is closed long ago.

Re: [PHP-DEV] PHP6 new syntax use suggestion

2008-05-23 Thread Lokrain
Hello, You got +1 from me for this idea. Regards, Dimitar Isusov

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Lokrain
Hello, As I always will say -1 to this. But I have a question, people here talk that this is very very useful in some cases. Can you please show others such cases so we can get your point? I really want to know this super hyper cases, this syntax is mega useful. Regards, Dimitar

Re: [PHP-DEV] Re: Short syntax for array literals [...]

2008-05-28 Thread Lokrain
Hello again, renderSomething(array('exclude' => array('a', 'b', 'c'), 'include' => array('d', 'e', 'f'))); vs: renderSomething(['exclude' => ['a', 'b', 'c'], 'include' => ['d', 'e', 'f']]); Your version is more readable but try this one: renderSomething( array( 'exclude' => a

Re: [PHP-DEV] Magic method visibility in PHP 5.3+

2008-07-02 Thread Lokrain
Hello there, I don't have enough time to write more detailed example, but I still want to write my opinion. I totally agree with Stanislav, because for me magic functions should be used in last leaf of some class extend tree. They are some kind of feature when you are producing the non-framework,

Re: [PHP-DEV] Let's make life easy

2008-07-10 Thread Lokrain
On Thu, Jul 10, 2008 at 5:09 PM, Scott MacVicar <[EMAIL PROTECTED]> wrote: > The PHP Internals list isn't an appropriate place to spam your blog. > > Scott > > > Gustav F. Nyvell wrote: > >> Read: http://talkingtocomputers.wordpress.com/ >> >> > -- > PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] Introduction - SuitespaceRnD

2023-04-23 Thread Lokrain
Hello, For me, this is just a wrong way of using enums for the sake of opinionated solution of specific problem. Regards, Dimitar On Sun, 23 Apr 2023 at 14:23, Niels Dossche wrote: > Hi > > On 4/19/23 17:11, Garet Claborn wrote: > > Hello PHP Internals, > > > > I am Garet Claborn, CTO for Suit

Re: [PHP-DEV] Request for RFC Karma - Enum value semantics proposal

2023-04-28 Thread Lokrain
Hello everyone, Would this change affect WeakMap somehow? Regards, Dimitar On Sat, 29 Apr 2023 at 0:48, Garet Claborn wrote: > You are correct, thank you. > > The RFC draft has been posted to > https://wiki.php.net/rfc/treat_enum_instances_as_values > > -Garet > > On Tue, Apr 25, 2023 at 8:14 

Re: [PHP-DEV] Limit write access to object function parameters

2023-05-06 Thread Lokrain
Hey there, Looking at how to achieve “readonly input object” now a few things come in my mind: * Write a readonly class in first place, assuming it’s not a class from a package you cannot or don’t want to update * Clone the object * Use a new immutable DTO for data transfer * Use stateless “se

Re: [PHP-DEV] Constructor parent property promotion

2020-08-17 Thread Lokrain
On Mon, 17 Aug 2020 at 19:46, Mathieu Rochette wrote: > Hi, > > > > I’m writing a message here to receive feedback on a two ideas related to > class constructors before going more in details with an RFC. I hope this is > appropriate behavior for this list > > > > With the Constructor Property Pro

Re: [PHP-DEV] Sanitize filters

2022-10-01 Thread Lokrain
Hello Kamil, I believe that PHP should not try to act as a “framework” that provides you with ready solutions for such cases. Being able to actually modify the default behaviour of some functions through the ini .. is even scarier. For 25 year writing in PHP I never relied on this “magic” for se

Re: [PHP-DEV] Sanitize filters

2022-10-02 Thread Lokrain
to write it since the language > itself is very basic. I'm for PHP to keep built-in solutions for most > common problems in the context of the web. Having passe ZCE exam and > writing just 15 years on php. > > On Sun, Oct 2, 2022, 2:19 AM Lokrain wrote: > >> Hello K