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

2008-01-23 Thread Chris Stockton
I partially agree, I have been watching this discussion and it's funny how we have such a class of high end developers saying to break old PHP code. But, the majority of the success of PHP is not due to this small class of high end developers, it's due to it's availability in a shared hosting

Re: [PHP-DEV] type hinting

2008-02-06 Thread Chris Stockton
To me it does not make sense to have a scalar type hint. For the simple reason it's inconsistent with PHP, and it adds no value other then the fact you then know the value is not on array (or maybe not a resource?). It's also inconsistent with PHP, array type hinting, is complemented by array

Re: [PHP-DEV] type hinting

2008-02-06 Thread Chris Stockton
philosophy bla bla. But in my opinion if it makes the language stronger and more attractive and it DOES NOT break B/C then its probably a good idea. PHP6 is suppose to be a improvement right? On Feb 6, 2008 6:37 AM, Sam Barrow [EMAIL PROTECTED] wrote: On Wed, 2008-02-06 at 06:30 -0700, Chris

Re: [PHP-DEV] type hinting

2008-02-06 Thread Chris Stockton
Really, it's not the most accurate test, to make it more accurate you would only check parameter variables but I wanted something fast. These are the calls to the is_* family from a major library. All calls are within a Class { }. I think this shows several things, a couple I would like to mention

Re: [PHP-DEV] [RFC] Conditional INI support

2008-02-15 Thread Chris Stockton
When I think INI I think constants. What happens when I log into some server I have to debug some app instance and one of the first things I might do is check the INI and I see. [IF ${value} == 1] setting = 1 [ELIF ${value} == 2] [IF ${valuex} == 1] setting = 1 [ELIF ${valuex} == 2]

Re: [PHP-DEV] [RFC] Conditional INI support

2008-02-15 Thread Chris Stockton
It might be to late to keep it simple, once you add basic language components like IF-ELSE as you can see people already want basically another programming language embedded into it. It is my opinion that the INI files should be simple configuration files. Otherwise they will become more and more

Re: [PHP-DEV] Return type hints

2008-04-13 Thread Chris Stockton
Why on earth would you have int, string, resource, etc return type hints and then turn around and suggest for parameter hinting just add a scalar type? That makes no sense and is so inconsistent. static int function retarded(scalar $value) { return (int) $value; // lol }

Re: [PHP-DEV] Return type hints

2008-04-14 Thread Chris Stockton
On Mon, Apr 14, 2008 at 7:28 AM, Christian Schneider [EMAIL PROTECTED] wrote: Chris Stockton schrieb: Why on earth would you have int, string, resource, etc return type hints and then turn around and suggest for parameter hinting just add a scalar type? That makes no sense and is so

Re: [PHP-DEV] Re: [RFC] Strict type hints (parameter and return value)

2008-04-17 Thread Chris Stockton
I like this patch, it adds a feature which a lot of companies and code base would surely implement without breaking anything. The only thing I do not like has already been mentioned, numeric and scalar are not included. The one thing I don't dislike, but am unsure of the ease to understand by

Re: [PHP-DEV] Re: [RFC] Strict type hints (parameter and return value)

2008-04-17 Thread Chris Stockton
On Thu, Apr 17, 2008 at 9:01 AM, Sam Barrow [EMAIL PROTECTED] wrote: I like this alot better too, the only downside is compatibility problems. Can you explain, I understand; in partial the problem but I am curious what can not be solved through added logic?

Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value)

2008-04-17 Thread Chris Stockton
On Thu, Apr 17, 2008 at 9:33 AM, Stanislav Malyshev [EMAIL PROTECTED] wrote: Just for the record, I see absolutely no sense in strict type hints. While there might be some use cases when you want to save typing by having function convert the arguments instead of you doing it manually - there's

Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value)

2008-04-17 Thread Chris Stockton
On Thu, Apr 17, 2008 at 9:57 AM, Stanislav Malyshev [EMAIL PROTECTED] wrote: What's the use of such code? If $var is '1' and not 1, what's the use of throwing an exception and having to handle it later (basically by failing the task, since you don't know how to do foo() now) - instead of just

Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value)

2008-04-17 Thread Chris Stockton
On Thu, Apr 17, 2008 at 10:11 AM, Sam Barrow [EMAIL PROTECTED] wrote: Actually, is_numeric checks for strings that contain numeric values, it's not the same as is_bool, is_int, is_float, etc, which check the variable's type. Hence my second example = ) Your point is very valid for is_int

Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value)

2008-04-17 Thread Chris Stockton
On Thu, Apr 17, 2008 at 10:59 AM, Stanislav Malyshev [EMAIL PROTECTED] wrote: Hi! Seeing how you work for zend I thought maybe you have used the zend framework = ) Sorry in my example I used int instead of numeric, but my point is the same, grep in zend framework for is_bool. It might

Re: [PHP-DEV] Return type hinting patch

2008-04-25 Thread Chris Stockton
On Fri, Apr 25, 2008 at 12:25 PM, Sam Barrow [EMAIL PROTECTED] wrote: On Fri, 2008-04-25 at 13:24 -0600, Nathan Nobbe wrote: On Fri, Apr 25, 2008 at 1:15 PM, Sam Barrow [EMAIL PROTECTED] wrote: On Fri, 2008-04-25 at 14:08 -0500, Jeremy Privett wrote: Sam Barrow wrote:

Re: [PHP-DEV] Return type hinting patch

2008-04-25 Thread Chris Stockton
: abstract protected string function dostuff() On Fri, 2008-04-25 at 14:22 -0700, Chris Stockton wrote: On Fri, Apr 25, 2008 at 12:25 PM, Sam Barrow [EMAIL PROTECTED] wrote: On Fri, 2008-04-25 at 13:24 -0600, Nathan Nobbe wrote: On Fri, Apr 25, 2008 at 1:15 PM, Sam Barrow

Re: [PHP-DEV] Return type hinting patch

2008-04-26 Thread Chris Stockton
*cough* lambda *cough* On Sat, Apr 26, 2008 at 4:26 PM, David Zülke [EMAIL PROTECTED] wrote: Am 27.04.2008 um 00:24 schrieb Nathan Nobbe: On Sat, Apr 26, 2008 at 2:06 PM, David Zülke [EMAIL PROTECTED] wrote: Wouldn't the most consistent way be to omit function altogether when using a

Re: [PHP-DEV] Return type hinting patch

2008-04-26 Thread Chris Stockton
Anonymous functions as you know them today come from lambda calculus which was created before computers were even made. Generally it is agreed anon func == labmda can be used interchangeably. Most developers will understand what: public function lambda sowat () { return function OR lambda,

Re: [PHP-DEV] Class Properties in Interfaces?

2008-04-30 Thread Chris Stockton
If you guys don't like the way interfaces work then do not use them. If your going to talk about cycles, just lose the abstraction all together. Important for some. You once again, with all your hand flapping, assume we want some kind of operation on the data. If we do not, and this happens a

Re: [PHP-DEV] Re: RE : [PHP-DEV] Return type hinting patch

2008-04-30 Thread Chris Stockton
Hello Sam. Would you agree in general the function int name() { syntax is favored? If you need help working out the grammar for such changes let me know. This is something that I think would add value to PHP as a whole and would not mind lending some time for. -Chris On Wed, Apr 30, 2008 at

Re: [PHP-DEV] Re: RE : [PHP-DEV] Return type hinting patch

2008-04-30 Thread Chris Stockton
You have added is_int, is_numeric, and === operator. I've been reading your posts and you should really stop confusing using that argument. Truth is, types are relevant. $foo = 1; $bar = '1'; if($foo === $bar) { echo I am never echo'ed; } Until you make $foo === $bar, you should really stop

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

2008-05-28 Thread Chris Stockton
+1 for: ['foo' = 'bar'], Not sure if it was decided but -1 for ['foo': 'bar'] Here is why, Array(), is much more confusing to someone coming with no experience in php then []. Array() in most languages looks like a function call. So Array('foo' = 'bar'), verse ['foo' = 'bar'], most people will

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

2008-05-28 Thread Chris Stockton
Hello, On Wed, May 28, 2008 at 10:25 AM, Jani Taskinen [EMAIL PROTECTED] wrote: Exactly. Open this can of worms and soon PHP is something else than easy to learn.. someone already mentioned that {} thing for objects.. :) Sidenote: There are more important things to solve in PHP 5.3 (and

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

2008-05-28 Thread Chris Stockton
Hello, On Wed, May 28, 2008 at 12:12 PM, Gregory Beaver [EMAIL PROTECTED] wrote: I've thought about allowing [] for a while and personally have come up with my own litmus test for new features. 1) is the syntax missing from the language? 2) if so, does the syntax add missing functionality

Re: [PHP-DEV] Unicode and XML

2008-05-29 Thread Chris Stockton
I think that internal string handling so be very respective to the specification as you said. Perhaps code points which are not valid for a separate specification, protocol etc, the conversion should be done in the functions dealing with those formats. Like if extension family xmlfoo does not like

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

2008-05-29 Thread Chris Stockton
Hello, On Thu, May 29, 2008 at 11:55 AM, Johannes Schlüter [EMAIL PROTECTED] wrote: Hi, On Thu, 2008-05-22 at 05:12 +0300, Stan Vassilev | FM wrote: It looks as there may not be a specific reason not to allow the JS syntax as an alternative syntax (while keeping the current one in

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

2008-05-31 Thread Chris Stockton
Not like they will be listened to unless they are commiters. -Chris On Sat, May 31, 2008 at 5:27 AM, Lars Strojny [EMAIL PROTECTED] wrote: Hi Sebastian, Am Freitag, den 30.05.2008, 18:23 +0200 schrieb Sebastian Deutsch: [...] Nonetheless I feel that the userland is less represented on the

Re: [PHP-DEV] deprecation status of $str{42} versus $str[42]

2008-06-14 Thread Chris Stockton
Hello, On Tue, Jun 10, 2008 at 9:11 PM, Andi Gutmans [EMAIL PROTECTED] wrote: Hi, $str{} was considered a best practice for a while so as you can see via Google Code Search it's been used quite a bit. I take the blame for introducing it with the intention to not only create a better

Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value)

2008-06-15 Thread Chris Stockton
Hello, On Sun, May 25, 2008 at 1:57 AM, Stanislav Malyshev [EMAIL PROTECTED] wrote: I see absolutely no use in strict mode. Moreover, I consider it harmful as it teaches people not to use dynamic nature of PHP but instead pepper their code with unnecessary checks and irrelevant errors. As I

Re: [PHP-DEV] deprecation status of $str{42} versus $str[42]

2008-06-16 Thread Chris Stockton
Hello, On Sun, Jun 15, 2008 at 11:20 PM, Arvids Godjuks [EMAIL PROTECTED] wrote: String is an array of chars, always was and is such in any programming language. So I see argument for {} as missing knowledge for some programming basics. And I don't understand why are you arguing on this.

Re: [PHP-DEV] [RFC] Strict type hints (parameter and return value)

2008-06-16 Thread Chris Stockton
On Mon, Jun 16, 2008 at 2:02 PM, Stanislav Malyshev [EMAIL PROTECTED] wrote: Hi! So you just ignored the special cases part. Yes, if you have special case where you interface with very brain-dead strictly typed system that absolutely can't understand that '1' and 1 is the same - then you need

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-17 Thread Chris Stockton
Hello, Great patch and a much needed feature. One thing I do not agree with is the point in the lexical key word, seems it should be natural to inherit the outer scope. I guess the choice of adding lexical and going slightly against the grain of typical closure implementations like scheme or

Re: [PHP-DEV] deprecation status of $str{42} versus $str[42]

2008-06-17 Thread Chris Stockton
On Tue, Jun 17, 2008 at 2:21 AM, Steph Fox [EMAIL PROTECTED] wrote: Hi, Seems like you are missing some PHP programming basics. Strings are not an array of chars, please go back to making ping pong in java c# or whatever other little comp sci classes you took. PHP is not any of them.

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-18 Thread Chris Stockton
Hello, I am curious if is_callable will be able to detect these? Or do we need a is_lamba, or is_function or something. You may have mentioned it but reading through I did not notice. I am only curious how to know when someone passed me one of these. Maybe a type hint would be nice too but that

Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP

2008-06-20 Thread Chris Stockton
Hello, No one at all thinks: function foo($x, $y) use $a, $b, $c { } Looks awkward and a little out of place when compared to: vs function foo($x, $y) { lexical $a, $b, $c; } Although the fact we have to import variables from the parent scope kinda stinks and is not typical in closer

Re: [PHP-DEV] enabling everything by default

2008-08-01 Thread Chris Stockton
The more extensions enabled by default, the more extensions many developers can count on being in common builds. Part of PHP's success is the extension system and the variety of tools it gives the user-base. It is also a nice peace of mind for library developers to be fairly sure the typical php

Re: [PHP-DEV] PHP 4.4.9 Released!

2008-08-07 Thread Chris Stockton
Hello, Is the link in the changelog pointing to the wrong bug? Seems mb related but speaks of mysqli. Just something small I noticed. -Chris On Thu, Aug 7, 2008 at 1:47 PM, Derick Rethans [EMAIL PROTECTED] wrote: Hello, The PHP development team would like to announce the immediate

Re: [PHP-DEV] my last attempt at sanity with namespaces

2008-10-16 Thread Chris Stockton
I have been watching the namespace conversations for months and I can not get my head around this fixation on a new separator. Other languages get by without separate resolution syntax, why not solve these ambiguities through rules of precedence like everyone else? Throw possible ambiguity

Re: [PHP-DEV] Re: Sanity tally #2

2008-10-17 Thread Chris Stockton
I would like to vote for #3. On Fri, Oct 17, 2008 at 7:42 AM, Steph Fox [EMAIL PROTECTED] wrote: Hi Lukas, We are not ready yet. So for now I will not force a decision just yet. Hopefully next week ... I'm going to stop this tally at 50 responses. That should be enough to show us where

Re: [PHP-DEV] Update to Zend Highlighter

2009-04-02 Thread Chris Stockton
On Thu, Apr 2, 2009 at 8:02 AM, Robert Cummings rob...@interjinn.com wrote: Wrap the whole  highlighted block in a div with a class:    div class=php-highlighted-code    /div Add one more INI setting to change that class. Let users leverage hierarchical CSS rules:

Re: [PHP-DEV] RFC: Replacing errors with Exceptions

2009-07-24 Thread Chris Stockton
Sorry for top post, on my android. I disagree that php has perl phobia, but I agree that a alternative to errors needs to be made. Your example is nice but might have some tricky implementation details if php continued to throw errors when it didn't detect $!. I.E. fopen(...) or throw new

[PHP-DEV] Regarding serialize

2009-08-18 Thread Chris Stockton
Hello, I have came across some strange behavior today, after some time I got it to the simplest form to reproduce. I have not yet attempted to patch/investigate the code within php source, I want to first confirm this is indeed a problem and I haven't just had a long day, as well as verify it is

[PHP-DEV] Re: Regarding serialize

2009-08-18 Thread Chris Stockton
Apologies for the double post, but the output might help... long day. Notice the strlen is different, as well as the truncation on escapeshellarg. -- string(43) O:13:testSerialize:1:{s:7:*_foo;a:0:{}} string(45) O:13:testSerialize:1:{s:7:*_foo;a:0:{}} bool(false) string(45)

Re: [PHP-DEV] reference caller object

2009-09-17 Thread Chris Stockton
On Wed, Sep 16, 2009 at 1:59 PM, Chris Trahey ctra...@csisd.org wrote: (Please direct me elsewhere if necessary, this is a feature request) It would be handy to allow a method to behave differently based on who is calling it. the function I am looking for would essentially do this: .. snip

Re: [PHP-DEV] reference caller object

2009-09-17 Thread Chris Stockton
On Thu, Sep 17, 2009 at 10:05 AM, Chris Trahey ctra...@csisd.org wrote: For each use case, there are going to be ways to acheive results without new functionality. I think this feature doesn't make the impossible possible, it gives developers a consistent interface to access an object that is

Re: [PHP-DEV] Why is ereg being deprecated?

2009-10-12 Thread Chris Stockton
Hello, On Mon, Oct 12, 2009 at 10:36 AM, Mark Krenz m...@suso.org wrote:  Whenever I bring up an issue like this with the PHP devs, I feel like you guys never experience having to support PHP. Among other things, I am the main sysadmin for my web hosting company and have been supporting PHP

[PHP-DEV] A few bug fixes and question on apache related tests

2009-10-18 Thread Chris Stockton
Hello, I have created a few small patches for a few unassigned bugs I saw in the bug report summary. These may not be 100% correct, or best practice and if someone has the time I would not mind feedback on anything incorrect, I would like to start fixing bugs on occasion in my free time. I was

Re: [PHP-DEV] Closures and $this

2009-11-17 Thread Chris Stockton
Hello, On Tue, Nov 17, 2009 at 2:59 AM, Mathieu Suen mathieu.s...@easyflirt.com wrote: Christian Seiler a écrit : Hi, since a few months have passed since the last discussion on this topic and perhaps people had time to gather some experience with the current closure implementation in PHP

Re: [PHP-DEV] PHP6's future

2009-11-17 Thread Chris Stockton
Hello, On Mon, Nov 16, 2009 at 6:13 PM, Kalle Sommer Nielsen ka...@php.net wrote: But what is every ones input on the matter of attempting to boost PHP6's development? I'm willing to give my part in whatever I can to help getting up on the feet to get this ball rolling. I think that some more

Re: [PHP-DEV] Closures and $this

2009-11-18 Thread Chris Stockton
Hello, On Wed, Nov 18, 2009 at 11:44 AM, Stanislav Malyshev s...@zend.com wrote: I have very hard time imagining somebody that would be comfortable using such a construct. What happened to keeping it simple? And why every tiniest feature of every remotest imaginable use case has to be brought

[PHP-DEV] Intl extension class MessageFormatter instantiation returns NULL

2009-12-09 Thread Chris Stockton
Hello, I am trying to use ChoiceFormat in the Intl extension. When I try to do something like: $r = new MessageFormatter(en, There are {0≤are no files|1≤is one file|1are many files} ok); // $r is NULL This may be a incorrect use, but my thought is that regardless null should not be returned

Re: [PHP-DEV] Intl extension class MessageFormatter instantiation returns NULL

2009-12-10 Thread Chris Stockton
Hello, 2009/12/9 Jared Williams jared.willia...@ntlworld.com: Try... $fmt = MessageFormatter::create('en_GB', 'There are {0,choice,0#are no files|1#is one file|1are many files} ok'); ... Thank you, the piece I was missing is {0,choice ... I appreciate the response and the link. On Wed,

Re: [PHP-DEV] __toString(), __toArray()

2010-01-12 Thread Chris Stockton
Hello, On Mon, Jan 11, 2010 at 8:32 PM, mm w 0xcafef...@gmail.com wrote: cast is not needed in PHP i 'd rather be more interesting in class Obj {     function __catch($data, $type) {            //$type [ static_method, method, get_property, set_property]            if (observed  $type ==

Re: [PHP-DEV] __toString(), __toArray()

2010-01-12 Thread Chris Stockton
I don't move any magics, I'm worried your knowledge of social skills? Theirs people be your friends? Weird On Jan 12, 2010 9:10 PM, mm w 0xcafef...@gmail.com wrote: I don't move any magics,I am worried about your knowledge of php, there's people to give you money ? weird, set get call are only

Re: [PHP-DEV] function call chaining

2010-01-19 Thread Chris Stockton
Hello, On Mon, Jan 18, 2010 at 5:27 PM, Stanislav Malyshev s...@zend.com wrote: I wrote a small patch that enables this kind of syntax in PHP: foo()(); ... I think language enhancements with no BC breaks that offer a wider toolset to programmers is a good thing. I would also like to see the

Re: [PHP-DEV] function call chaining

2010-01-19 Thread Chris Stockton
Hello, On Tue, Jan 19, 2010 at 10:07 AM, Lukas Kahwe Smith m...@pooteeweet.org wrote: On 19.01.2010, at 18:03, Chris Stockton wrote: enhancements in the sense that they enable things that were not possible before, sure. syntax sugar that hurts readability, not really. if you are worried

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

2011-08-02 Thread Chris Stockton
Hello, On Tue, Aug 2, 2011 at 11:06 AM, Hannes Landeholm landeh...@gmail.com wrote:  I've talked to Etienne and he still believes we should vote on this so the vote is still up. He just replied to quickly. If the vote fails the patch can still be implemented in a PECL extension. There's no

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

2011-08-04 Thread Chris Stockton
Hello, On Thu, Aug 4, 2011 at 1:53 PM, Ferenc Kovacs tyr...@gmail.com wrote: so as I see you didn't really addressed the proposed use-case of the Weak References, just stated what everybody is aware of: one can cache and free objects manually without the need of Weak References. and while

[PHP-DEV] The behavior of get_object_vars and array casting when extending ArrayObject

2011-08-11 Thread Chris Stockton
I was curious if this behavior was expected, it caught me by surprise. A base object I use extends ArrayObject, that class is extended heavily throughout my code and I recently wanted to use get_object_vars, but noticed it returning an empty array. I do not expect get_object_vars to return the

Re: [PHP-DEV] The behavior of get_object_vars and array casting when extending ArrayObject

2011-08-11 Thread Chris Stockton
Hello, On Thu, Aug 11, 2011 at 11:58 AM, Etienne Kneuss col...@php.net wrote: Hello, ArrayObject extends the handler responsible for giving you such information. So it might very well be a bug. You should report it! Best, Thanks Etienne, I went ahead and made a bug report and patch

Re: [PHP-DEV] [RFC] Function autoloading through spl_autoload*

2011-08-15 Thread Chris Stockton
Hello, On Mon, Aug 15, 2011 at 2:30 PM, Matthew Weier O'Phinney weierophin...@php.net wrote: On 2011-08-14, Derick Rethans der...@php.net wrote: On Sat, 6 Aug 2011, Ferenc Kovacs wrote: I would like to introduce this RFC which would provide function autoloading through the spl_autoload

Re: [PHP-DEV] [RFC] Function autoloading through spl_autoload*

2011-08-15 Thread Chris Stockton
Hello Stas, On Mon, Aug 15, 2011 at 1:26 AM, Stas Malyshev smalys...@sugarcrm.com wrote: Hi! It's not a shortcoming, it was designed that way, and for very serious reasons. If you want to know the reasons, there were discussed extensively when namespaces were discussed. Please re-read that

Re: [PHP-DEV] transversing associative arrays from C

2011-08-25 Thread Chris Stockton
Hello, On Thu, Aug 25, 2011 at 2:57 PM, Aaron Gray ang.use...@gmail.com wrote: Hi, I am working on a C extension module for PHP and am wondering about an API issue. I can see how to add to an associative array :- Most everything you need to know about manipulating arrays can be found in

Re: [PHP-DEV] Revert Tokenizer behavior for 5.4

2011-09-15 Thread Chris Stockton
Hello, On Thu, Sep 15, 2011 at 8:13 AM, Nikita Popov nikita@googlemail.com wrote: On Thu, Sep 15, 2011 at 5:05 PM, Hannes Magnusson hannes.magnus...@gmail.com wrote: Wait wait wait. Thats the point here? __COMPILER_HALT_OFFSET__ already tells you where the data starts.

[PHP-DEV] Bug with static property access

2011-10-03 Thread Chris Stockton
Hello, I noticed the following odd behavior earlier today, there is definitely a bug here in my opinion, the bug is either the error message or the behavior. I think the behavior is possibly expected. I'll let some others comment. The reason I think the error is odd is because it is very

Re: [PHP-DEV] Re: Bug with static property access

2011-10-04 Thread Chris Stockton
Hello, On Tue, Oct 4, 2011 at 11:33 AM, Matthew Weier O'Phinney weierophin...@php.net wrote: That makes complete sense to me -- ClassA is referring to self, which resolves to ClassA... which does not define a VERSION constant. Change to this:    public $version = static::VERSION; and it

Re: [PHP-DEV] Re: Bug with static property access

2011-10-05 Thread Chris Stockton
Hello, On Tue, Oct 4, 2011 at 11:28 PM, Christian Kaps christian.k...@mohiva.com wrote: It's available since PHP 5.3. This feature is called late static binding. Before anyone else responds to my post, please read the entire message! It's simple really, the error message is odd and

Re: [PHP-DEV] Time zone database shut down by legal threat

2011-10-06 Thread Chris Stockton
Hello, On Thu, Oct 6, 2011 at 4:45 PM, J. Adams zardozro...@gmail.com wrote: Perhaps we could all contact Astrolabe and voice our complaints? http://alabe.com/ Not sure how copyright can apply to time? If so put me in for copyright on Mondays.. once I own them I can get rid of them forever!

Re: [PHP-DEV] who can vote

2011-11-10 Thread Chris Stockton
Hello, On Thu, Nov 10, 2011 at 11:45 AM, Pierre Joye pierre@gmail.com wrote: We are not talking about giving a voice to totally irrelevant people but well known PHP project leaders, who already contribute to PHP in one way or another. We are not either talking about them telling us what

Re: [PHP-DEV] Phalanger

2011-12-09 Thread Chris Stockton
Hello, On Thu, Dec 8, 2011 at 4:28 PM, Rasmus Schultz ras...@mindplay.dk wrote: Don't take this the wrong way, I'm merely trying to provoke your thoughts a bit with this e-mail! :-) Has it occurred to anyone, to abandon the official PHP codebase and adopt Phalanger instead? Some convincing

[PHP-DEV] PHP website having issues?

2012-01-23 Thread Chris Stockton
Hello, is it just me or is the php website having issues doing function lookups etc? I checked several mirrors and they return no results for many functions and many links from Google are broke to. Just a heads up.

Re: [PHP-DEV] A potential patch for Bug#60668

2012-01-25 Thread Chris Stockton
Hello, On Wed, Jan 25, 2012 at 5:43 PM, Kiyoto Tamura m...@ktamura.com wrote: vrana has raise a good point in a potentially dangerous behavior with ini_set() in https://bugs.php.net/bug.php?id=60668. Here is my proposed patch. Feedback is appreciated. Thanks! Kiyoto Tamura diff --git

Re: [PHP-DEV] A potential patch for Bug#60668

2012-01-25 Thread Chris Stockton
Hello, On Wed, Jan 25, 2012 at 9:32 PM, Kiyoto Tamura m...@ktamura.com wrote: Also, I am not sure if php_trim is what we want here. It looks like vrana's initial proposal was to discard everything after CR-LF. This is different from trimming CR/LF/whitespace at the end of the string. Ah I

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

2012-02-25 Thread Chris Stockton
Why is it every time this comes up people need to get butt hurt and passionate? Re-read past discussions and provide new arguments or move on. This is likely a feature that will never exist, but don't worry... You can still make websites using PHP :) On Feb 25, 2012 6:59 PM, Kris Craig

Re: [PHP-DEV] PHP as a template language

2012-04-06 Thread Chris Stockton
Hello, On Fri, Apr 6, 2012 at 3:08 PM, Reindl Harald h.rei...@thelounge.net wrote: Am 06.04.2012 23:54, schrieb Tom Boutell: On Fri, Apr 6, 2012 at 5:39 PM, Reindl Harald h.rei...@thelounge.net wrote: the who in such cases are ALL developers out there damned can i send you the invoice for

Re: [PHP-DEV] RFC: source files without opening tag

2012-04-09 Thread Chris Stockton
Hello, On Mon, Apr 9, 2012 at 10:43 AM, Ralph Schindler ra...@ralphschindler.com wrote: Hey Tom, An idea, why not overload require/include with a second parameter that simply enforces an include mode.  For example // in some autoloader (include, requires, and *_onces) include $pathToFile,

Re: [PHP-DEV] RFC: source files without opening tag

2012-04-09 Thread Chris Stockton
Hello, 2012/4/9 Ángel González keis...@gmail.com: On 09/04/12 20:23, Chris Stockton wrote: Hello, Although I am not very interested in this feature, if it is implemented I like the idea of flags instead of introducing new keywords. Maintaining backwards compatibility would be great

Re: [PHP-DEV] UPDATED RFC version 1.1: source files without opening ?php tag

2012-04-11 Thread Chris Stockton
Hello, On Wed, Apr 11, 2012 at 11:47 AM, Luke Scott l...@cywh.com wrote: The .php extension really isn't used by PHP, but it's used by a web server to identify PHP code and send it to the interpreter. Any mention of file extensions in the RFC would have to be nothing more than a

Re: [PHP-DEV] PHP 5 Bug Summary Report

2010-01-25 Thread Chris Stockton
Hello, Those are some good ideas, another thing I think might help get some bugs closed is a way to detect which bugs have patches/diffs attached or included. Honestly I stopped submitting patches when I noticed they rot for months :) -Chris On Jan 25, 2010 9:37 AM, Guilherme Blanco

Re: [PHP-DEV] Hi

2010-03-30 Thread Chris Stockton
Hello, On Tue, Mar 30, 2010 at 10:27 AM, GM greg...@gregory.net wrote: I would love to write an RFC, but I don't seem to have write access to the wiki. At the very least, I'm not able to create page, but I'm pretty sure I can't even edit them (at least not in the namespaces I've tried). SNIP

Re: [PHP-DEV] TODO List

2010-05-12 Thread Chris Stockton
Hello, I would like to add it would be in your interest to try to touch base with a core-dev or someone with commit access to act as a mentor. I noticed when I took initiative to start working through bugs they mostly rotted in the bug tracker. -Chris On May 12, 2010 1:24 PM, Mathias Grimm

Re: [PHP-DEV] Type hinting

2010-05-29 Thread Chris Stockton
My biggest issue as a user is the fatal errors. Why are we blowing up on something that should throw some kind of useful argument exception? I end up in my applications using instanceof everywhere because their is important cleanup to be done before the end of the request. For example I can't

Re: [PHP-DEV] inheritance check too strict?

2010-08-19 Thread Chris Stockton
Hello, On Thu, Aug 19, 2010 at 12:33 PM, Nathan Rixham nrix...@gmail.com wrote: Guys, this is going a bit nuts, let's swap all the Foo and Bar's for a real example - Zeev I've copied the way you specified above. I think your misunderstanding his position. To summarize my understanding: he

Re: [PHP-DEV] [PATCH] Allowing an array as a parameter for snmpget()/snmpgetnext()

2010-09-20 Thread Chris Stockton
Hello, On Mon, Sep 20, 2010 at 2:17 PM, Michael Maclean m...@php.net wrote: On 20/09/10 20:46, Jorrit Kronjee wrote:  Dear list, To better reflect the behavior of the snmpget command that comes with the Net-SNMP package the patch attached makes an array of OIDs as a parameter for the

Re: [PHP-DEV] deprecation status of $str{42} versus $str[42], revisited

2010-09-22 Thread Chris Stockton
Hello, On Wed, Sep 22, 2010 at 2:34 PM, Philip Olson phi...@roshambo.org wrote: Greetings geeks, Also, Andi mentioned[1] the possibility of optimizing {} for string use (the original intent) in which case keeping {} would be wise. It was over two years ago I commented on my interest in

Re: [PHP-DEV] [PATCH] fix extract w.r.t GLOBALS again

2010-11-19 Thread Chris Stockton
On Fri, Nov 19, 2010 at 8:43 AM, Joe Orton jor...@redhat.com wrote: The check to prevent extract() overwriting $GLOBALS got broken at some point - here's a fix: I remember http://bugs.php.net/47409 for this some time ago and seeing it marked applied. After taking a peak it looks like the patch

[PHP-DEV] A quick consensus on magic method idea

2011-02-03 Thread Chris Stockton
Hello, I haven't seen a magic method proposed in a while so I am not sure how people feel about them, obviously adding them can break BC (although it is recommended people should not use __). I'm sure a good amount of use/desire needs to be shown for inclusion. Here is what I decided I would like

Re: [PHP-DEV] A quick consensus on magic method idea

2011-02-03 Thread Chris Stockton
Hello, On Thu, Feb 3, 2011 at 8:38 PM, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: Do you yourself have any situation where this is useful? Does it solve some problem? Does it enable you to do things better than before? Ben. It does not provide a solution to a currently unsolvable

Re: [PHP-DEV] A quick consensus on magic method idea

2011-02-03 Thread Chris Stockton
Hello, On Thu, Feb 3, 2011 at 8:53 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: This creates problems for opcode caches since the classes are all precompiled and usually optimized to the point where the opcodes that loads them are NOP'ed away and you just have the full class table cached in

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

2011-04-07 Thread Chris Stockton
Hello, On Thu, Apr 7, 2011 at 3:03 PM, Rasmus Lerdorf ras...@lerdorf.com wrote: On 4/7/11 5:59 PM, Matthew Weier O'Phinney wrote: It may change the semantics as they stand, but I'd argue that the _expectation_ from the shorthand ternary is to shorten code that currently uses isset(). As it

Re: [PHP-DEV] proposed access modifier silent ... was: Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator

2011-04-11 Thread Chris Stockton
Hello, On Mon, Apr 11, 2011 at 11:47 AM, Matthew Weier O'Phinney weierophin...@php.net wrote: On 2011-04-11, Stas Malyshev smalys...@sugarcrm.com wrote: I might come off rather crumudgeonly here, but these last few threads I've seen going across to silence notices have a common theme - I

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-05-31 Thread Chris Stockton
Hello, On Tue, May 31, 2011 at 11:42 AM, Brian Moon br...@moonspot.net wrote: https://wiki.php.net/rfc/shortsyntaxforarrays Since this was brought again recently by Rasmus (http://markmail.org/message/fx3brcm4ekh645se) and on Twitter where several people including Andi chimed in on it and

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-01 Thread Chris Stockton
Hello, On Wed, Jun 1, 2011 at 10:19 AM, Pierre Joye pierre@gmail.com wrote: Reminder: Pls add your votes here: https://wiki.php.net/rfc/shortsyntaxforarrays/vote May I please have wiki rights restored to my user cstockton if possible, I would like to vote. -- PHP Internals - PHP Runtime

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-01 Thread Chris Stockton
Hi Lester, On Wed, Jun 1, 2011 at 11:19 AM, Lester Caine les...@lsces.co.uk wrote: Chris Stockton wrote: Reminder: Pls add your votes here:  https://wiki.php.net/rfc/shortsyntaxforarrays/vote May I please have wiki rights restored to my user cstockton if possible, I would like to vote

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-01 Thread Chris Stockton
Hello, On Wed, Jun 1, 2011 at 1:37 PM, Michael Shadle mike...@gmail.com wrote: On Wed, Jun 1, 2011 at 1:01 PM, Pierre Joye pierre@gmail.com wrote: 5 character difference for each array being saved. That's it. At the expense of syntax highlighters, IDEs, books, all becoming outdated and

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-01 Thread Chris Stockton
Hello, On Wed, Jun 1, 2011 at 2:17 PM, Anthony Ferrara ircmax...@gmail.com wrote: Personally, I think focusing on a character savings is the wrong reason to take on any problem.  I don't care how long it takes for me to type code.  I don't care how much extra hdd space it takes.  But what I

Re: [PHP-DEV] Object and Array Literals

2011-06-05 Thread Chris Stockton
Hello, On Sun, Jun 5, 2011 at 2:03 PM, Jordi Boggiano j.boggi...@seld.be wrote: Thanks for working on this. On Sun, Jun 5, 2011 at 3:30 AM, Sean Coates s...@seancoates.com wrote: Please read, and if you have a comment that is not already covered in the RFC, raise it here. I'm definitely

Re: [PHP-DEV] Callable typehint

2011-06-06 Thread Chris Stockton
Hello, On Mon, Jun 6, 2011 at 12:41 PM, Hannes Magnusson hannes.magnus...@gmail.com wrote: Hi As quickly mentioned in the '$arr = array('Hello', 'world'); $arr();' thread[1], we are hitting the need for a callable typehint. This brings a clear and concise enhancement to PHP which I would

Re: [PHP-DEV] Callable typehint

2011-06-06 Thread Chris Stockton
Hello, On Mon, Jun 6, 2011 at 3:51 PM, Chris Stockton chrisstockto...@gmail.com wrote: Hello, On Mon, Jun 6, 2011 at 12:41 PM, Hannes Magnusson hannes.magnus...@gmail.com wrote: Hi As quickly mentioned in the '$arr = array('Hello', 'world'); $arr();' thread[1], we are hitting the need

Re: [PHP-DEV] Callable typehint

2011-06-06 Thread Chris Stockton
Hi Stas, On Mon, Jun 6, 2011 at 4:02 PM, Stas Malyshev smalys...@sugarcrm.com wrote: I wouldn't love it a bit, frankly, as rely on PHP's native error handling in this context means bombing out in runtime without any idea what went wrong. When you have exception, you could make it print what

  1   2   >