Re: [PHP-DEV] Huge Pages

2016-03-24 Thread Brian Moon
On 3/19/16 23:29 , Rasmus wrote: We have a bit of a problem with how Linux handles huge pages when you run out of them. I've been discussing it with Dmitry and he recently committed a way to disable Huge Pages in the main allocator to master:

Re: [PHP-DEV] [RFC] [Draft] Adopt Code of Conduct

2016-01-07 Thread Brian Moon
> Why not? The harassment has been nullified. I agree with your position on most of this, Paul. However, free email, and thus, Twitter and other social media accounts are nearly unlimited. It becomes an arms race to try and block someone. Brian. -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Core functions throwing exceptions in PHP7

2015-07-16 Thread Brian Moon
On 7/14/15 16:04 , Sammy Kaye Powers wrote: Hello lovely PHP nerds, There are two open PR's for PHP7 to modify the behavior of the CSPRNG's: https://github.com/php/php-src/pull/1397 (main discussion) https://github.com/php/php-src/pull/1398 Currently the random_*() functions will issue a

Re: [PHP-DEV] Method call overhead

2015-06-03 Thread Brian Moon
On 6/2/15 22:30 , Bishop Bettini wrote: Hi! I've measured the overhead for method calls in a variety of environments (Amazon, Travis, and 3v4l). The results are reliable and here's 3v4l http://3v4l.org/NsjJR. Some observations. First, as expected, direct calls are faster than static object

Re: [PHP-DEV] Coercive STH - some real world tests and updated RFC

2015-02-27 Thread Brian Moon
This RFC trying to simpliy and cleanup the coercison rules, having two different conversion rules for NULL-scalar depending on userland or internal is counter-productive and bad. The behavior you describe as null being empty value is wide-spread in PHP userland code as well. I agree here with

Re: [PHP-DEV] Is it fair that people with no karma can vote on RFCs?

2014-09-22 Thread Brian Moon
because I have a long history with PHP and care about where it is going. People with dead accounts and who don't care about PHP most likely don't vote. Brian Moon brianlm...@php.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE][RFC] Name of Next Release of PHP

2014-07-22 Thread Brian Moon
burned. If we had not named them to begin with, we would not have been in that boat. Brian Moon brianlm...@php.net http://brian.moonspot.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE][RFC] Name of Next Release of PHP

2014-07-22 Thread Brian Moon
cancelled are actually in agreement now. If we don't use a counterpoint style debate in the RFC, then '6' only has one bullet: * 6 is the next integer after 5. Brian Moon brianlm...@php.net http://brian.moonspot.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe

Re: AW: AW: [PHP-DEV] FILTER_VALIDATE_INT and +0/-0

2013-02-04 Thread Brian Moon
possible. FILTER_VALIDATE_INT does. This is much more analagous to FILTER_VALIDATE_INT IMO. $ php -r echo (is_numeric('-0')) ? (int)'-0' : null; 0 I am not intimately familiar with the internals of filter, but I replaced code in userland like this with filter calls. Brian Moon -- PHP Internals

Re: [PHP-DEV] [RFC] Generators

2012-08-12 Thread Brian Moon
Hi Nikita, I admit, I have ignored these threads as there was no RFC. So, some of this may have been covered. Do you have a good example usage other than a file? I don't find fopen/fgets/fclose all that complicated. What are the other valid use cases for such a thing? Also, not allowing

Re: [PHP-DEV] [RFC] Generators

2012-08-12 Thread Brian Moon
On 8/12/12 5:33 PM, Levi Morrison wrote: On Sun, Aug 12, 2012 at 2:08 PM, Brian Moon br...@moonspot.net wrote: Do you have a good example usage other than a file? I don't find fopen/fgets/fclose all that complicated. What are the other valid use cases for such a thing? One fabulous use case

Re: [PHP-DEV] [RFC] Generators

2012-08-12 Thread Brian Moon
I don't consider this a very good example. That's fine. You are entitled to your opinion. However, you didn't have to figure out the 106 lines of code that is the Post-Order iterator. That was a NIGHTMARE and I'm still not 100% confident that it works as it is supposed to. The generator, on

Re: [PHP-DEV] RFC: Removing PHP tags

2012-03-31 Thread Brian Moon
Well played Moriyoshi. Well played. Brian. http://brian.moonspot.net On 3/31/12 10:02 PM, Rasmus Lerdorf wrote: On Mar 31, 2012, at 7:45 PM, Moriyoshi Koizumim...@mozo.jp wrote: Ok, I'll try to fix that part. Thanks for the correction. No problem. Keeping the April 1st RFCs

Re: [PHP-DEV] An implementation of a short syntax for closures

2011-08-04 Thread Brian Moon
From your blog post: All in all, I have tried to eliminate the syntax noise by reducing the key strokes in the the non-significant parts of the expression is typing time really the bottleneck for productivity Is typing really the bottleneck for developers these days? I must suck then. I

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

2011-06-02 Thread Brian Moon
I like this for the current stable branch, no bc impact and gives a way to detect such mistakes (not ideal but better than nothing). On Thu, Jun 2, 2011 at 12:11 PM, Patrick ALLAERTpatrickalla...@php.net wrote: Hi, I would like to introduce an E_NOTICE when an array is silently converted to a

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

2011-06-02 Thread Brian Moon
On 6/2/11 11:08 AM, Pierre Joye wrote: reminder #2, pls do vote here: https://wiki.php.net/rfc/shortsyntaxforarrays/vote some devs still did not choose which syntax they want. I don't really care which syntax wins as long as one of them gets rolled in. Brian. -- PHP Internals - PHP Runtime

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

2011-05-31 Thread Brian Moon
, Stanislav Malyshev, Brian Moon, Kalle Sommer Nielsen, Edin Kadribasic Contra: Antony Dovgal, Derick Rethans, Jani Taskinen, Lokrain, Felipe Pena, Lukas Kahwe Smith, Marcus Boerger, David Soria Parra, Johannes Schlüter, Maciek Sokolewicz, Philip Olson, Ilia Alshanetsky, Daniel Brown, Jochem

Re: [PHP-DEV] Porting PECL to userspace

2011-05-20 Thread Brian Moon
I think it's the exact opposite - the less C code we need the better. Developing C code is more work. Maintaining C code is more work. Distributing C code is more complicated. The less this is needed, the faster PHP is, the better for everybody (except C programmers ;-) ) I was with you until

Re: [PHP-DEV] == Comparison type juggling

2011-04-22 Thread Brian Moon
or strcmp() yeah, strcmp is your friend there. Brian. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Function proposal: varset

2011-04-21 Thread Brian Moon
I proposed something similar over 5 years ago. It ain't gonna happen because PHP language can't support it. It supports it. Several functions allow you to pass in variables that are not set and don't throw an error. Not sure what you are talking about. Brian. -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Function proposal: varset

2011-04-21 Thread Brian Moon
which one? I guess that you are talking about the language constructs like isset and empty. they aren't functions. settype() for one. Brian. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Function proposal: varset

2011-04-20 Thread Brian Moon
It might be nice to extend it such that if the 1st argument is a list then the first in the list which is set is returned, eg: $var = var_set(($_GET['var'], $_POST['var']), 'default'); If that is the usage, I would suggest coalesce() to be consistent with the same concept in SQL. And

Re: [PHP-DEV] Adding a more logical string slicing function to PHP

2011-03-31 Thread Brian Moon
How would str_contains() be different from strstr()? They differ in the return type $instr = (bool)strstr($string1, $string2); done. No need for a new function. Brian. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Named parameters

2010-10-19 Thread Brian Moon
The absolute minimum is, if you have objections, to be specific, or at least provide concrete links to specific objections, instead of sending people to hunt for the decisions manually. So, anyone that comes on the list and wants to talk about some feature should just do so without looking at

Re: [PHP-DEV] Named parameters

2010-10-18 Thread Brian Moon
This is just not happening people. Please re-read all the past conversations about it. If you come to some sort of epiphany that solves all of the issues brought up in the past, please submit a patch. Otherwise, a never ending thread about this *again* is pointless. Thanks, -- Brian.

Re: [PHP-DEV] Named parameters

2010-10-15 Thread Brian Moon
This has been discussed to death. Please see the archives. It has been turned down multiple times. -- Brian. http://brian.moonspot.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] undefined function pcntl_fork

2010-09-13 Thread Brian Moon
On 9/13/10 11:59 AM, Bharat Nagwani wrote: Hello, I am getting this error when using pcntl_fork. The OS is bsd and php ver is 5.2.3 used in cgi mode. Fatal error: Call to undefined function pcntl_fork() in... I have included the ext/pcntl files in the php make. Do I need another flag/library

Re: [PHP-DEV] Strict typing

2010-08-11 Thread Brian Moon
On 8/11/10 1:03 AM, Zeev Suraski wrote: We've also had quite a lengthy discussion on this topic, and there was more support for 'weak' typing then there was for strict typing. Yes, I would like to restate the obvious from my email in May: Really, I am confused what the argument is about. We

Re: [PHP-DEV] Namespace separator constant

2010-08-10 Thread Brian Moon
On 8/10/10 3:03 PM, Ferenc Kovacs wrote: like DIRECTORY_SEPARATOR I guess Tyrael but, DIRECTORY_SEPARATOR is system dependent. The namespace separator is not. It is is always \. -- Brian. http://brian.moonspot.net/ -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] Annoucing PHP 5.4 Alpha 1

2010-08-10 Thread Brian Moon
2010/8/11 Johannes Schlüterjohan...@schlueters.de: On Wed, 2010-08-11 at 00:03 +0200, Kalle Sommer Nielsen wrote: type hinting For the record: I consider the current implementation as (one of) the biggest mistakes in the last ten years. Is there a summary of what we ended up with? I got so

Re: [PHP-DEV] Re: Detecting if a null variable exists?

2010-06-14 Thread Brian Moon
php -r 'function f(){$f=null; var_dump(array_key_exists(f, get_defined_vars()));} f();' So, two function calls? That is not a solution to simply check if a variable has been created. You are creating an array and operating on said array. It should be a language construct. Why use an array

[PHP-DEV] Detecting if a null variable exists?

2010-06-11 Thread Brian Moon
Is it just me or are we missing a way in the language to check if a variable that has been set to NULL exists or not? is_null() on an unset variable throws a NOTICE. $var === null throws a notice. So, you have to use isset()? But, ah, $var = null; if(isset($var)) yields false. Is

Re: [PHP-DEV] Gearman support for php-fpm?

2010-06-10 Thread Brian Moon
The big difference is that different processes do different jobs in Gearman. All PHP workers in fpm just run what ever code is handed to them. How do you handle that? Brian. http://brian.moonspot.net/ On 6/10/10 9:56 AM, Rasmus Lerdorf wrote: Has anybody thought about adding

Re: [PHP-DEV] Gearman support for php-fpm?

2010-06-10 Thread Brian Moon
[gearman] worker1.path = /path/to/worker1.php worker1.pm = dynamic worker1.pm.max_children = 10 worker1.pm.start_servers = 5 worker2.path = /path/to/worker2.php worker2.pm = dynamic worker2.pm.max_children = 4 worker2.pm.start_servers = 2 So, this is a proposed new entry in the ini format? I

Re: [PHP-DEV] [RFC] Array Dereferencing

2010-06-08 Thread Brian Moon
The operator that really determines this is 'new' - which is already documented. So there isn't any ambiguity. Not to say that documenting the other operators would be bad, just saying there's no ambiguity here :) Also, allowing new (blah()); would be a fairly big BC break I'd say. How? Maybe

Re: [PHP-DEV] Type hinting

2010-05-26 Thread Brian Moon
I like the idea of type hinting a lot. (See: http://marc.info/?l=zend-engine2m=102421231114377w=2) I suggested it in 2001 when ZE2 was being designed. Somehow my idea was bastardized into only classes and arrays. Guess it was the mad OOP craze of the time. Anyhow, I would like to use it. And,

Re: [PHP-DEV] Fixes for parse_url, bug 50563

2010-05-24 Thread Brian Moon
Because that is, IMO, a bad precedent to start for PHP internal functions. Too many functions already produce warnings (fopen) and return a status that can be checked. The solution right now is @ and that has so much baggage with it that you can now disable that feature completely making

Re: [PHP-DEV] Fixes for parse_url, bug 50563

2010-05-21 Thread Brian Moon
+1 Brian. http://brian.moonspot.net/ On 5/21/10 10:38 AM, Ralph Schindler wrote: Hey all, Attached is a patch to remove the warning from parse_url() in situations where parse_url() cannot actually parse the url. The bug report also claims there should be a new feature for

Re: [PHP-DEV] Autoboxing in PHP

2010-05-04 Thread Brian Moon
On 5/3/10 10:48 PM, Moriyoshi Koizumi wrote: Hey, Just to let you know about a new RFC for adding autoboxing feature in PHP. Look at http://wiki.php.net/rfc/autoboxing . I liken this to pecl/runkit. For all those things you probably shouldn't have been doing anyway. It will create a

[PHP-DEV] Using default_charset for htmlspecialchars() and others

2010-05-02 Thread Brian Moon
I am not sure if this has been discussed or not. I will gladly make an RFC if not. I think it would be very intuitive if htmlspecialchars used the ini value default_charset as its default. And any function that takes an optional character set. A) Has this been discussed? B) If not, do others

Re: [PHP-DEV] trunk is alive and open

2010-04-29 Thread Brian Moon
As I've mentioned in the past I think we are better off with shorter release cycles and less features per cycle. Reduces risk and enables us to push out value faster. For example, we have made (and are still making) significant performance enhancements to the runtime. It'd be a shame if that

Re: [PHP-DEV] [RFC] Removal of deprecated features

2010-04-09 Thread Brian Moon
safe_mode/register_globals/register_long_arrays/magic_quotes_*/allow_call_time_pass_reference - Something we have long time been wanted to remove from PHP, I don't see a big reason to keep those in the next version, even if its going to be a 5.4, since we already removed things like

Re: [PHP-DEV] Named Parameters

2010-04-03 Thread Brian Moon
I really doubt named parameters would have much of an impact on anything, but I'd be willing to consider it if a clean implementation was to show up. I think they'd allow to manage complex parameter sets more efficiently than with those $options arrays. But that'd probably require changing the

Re: [PHP-DEV] php and multithreading (additional arguments)

2010-04-01 Thread Brian Moon
Now imagine a whole web server written in PHP (ie. nanoserv), say, using libevent as the network backend, running the above described real-time web implementation. Alternatively, you could perhaps even wire it into worker/event model of apache/other servers instead of rolling your own. It sounds

Re: [PHP-DEV] Have we reached 1,000 authors for the PHP project?

2010-03-30 Thread Brian Moon
Neat. I would not count cvs2svn though. Or any other known bots in there if there are any. Would be neat to see the list posted on pastebin though. Brian. http://brian.moonspot.net/ On 3/30/10 3:36 AM, Richard Quadling wrote: Hi. Just over 9 hours ago (Monday, March 29th 2010 at

Re: [PHP-DEV] array_seek function

2010-03-17 Thread Brian Moon
Update: http://phpbenelux.eu/array_seek-return.patch.txt I've kept the fseek()-style return values (0 when fine, -1 when seek fails) Any reason why you picked that over the (IMO more logical) true/false approach? No, just to keep it similar to fseek(). Either way works for me. I would

Re: [PHP-DEV] array_seek function

2010-03-16 Thread Brian Moon
Right now, it returns the value of a given position. How it's different from: array_slice() returns the sequence of elements from the array array as specified by the offset and length parameters? array_slice returns an array of elements. This function would return the value at the given

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

2009-07-29 Thread Brian Moon
Le Fri, 24 Jul 2009 15:23:21 +0200, user a écrit : I published a (work in progress) RFC today about replacing certain errors with exceptions. I know that there already was something similiar on the php6dev blog, but this is not completly the same, so awating your comments:

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

2009-07-24 Thread Brian Moon
On 7/24/09 6:43 AM, Ben Scholzen 'DASPRiD' wrote: To you both, this is especially, for library code like Zend Framework. This tends to invalidate your entire argument IMO. Changing the core language because something is hard in an external framework that only a small percentage of actual

Re: [PHP-DEV] [PATCH] Bug #46367 - fputcsv does not add the correct newline character on Windows

2009-07-07 Thread Brian Moon
On 7/7/09 1:27 PM, Jani Taskinen wrote: John Mertic kirjoitti: Hi All, Bringing this one back once more; let me know what everyone thinks about it. If it's safe to commit than if someone could ( or give me the karma to do so ) that would be great. If not, let me know what should be done about

Re: [PHP-DEV] Is there a technical reason ?= considered a short tag?

2009-06-05 Thread Brian Moon
On 6/5/09 2:17 PM, Stanislav Malyshev wrote: Hi! So it feels like decoupling ?= from short_open_tag is on the table. Rasmus or Stas, could you please propose exactly how this might happen? My proposal would be very simple: 1. short_open_tag setting removed in 6, ? is no longer PHP code tag

Re: [PHP-DEV] APM

2009-05-25 Thread Brian Moon
of performance impact are we looking at here? Brian Moon http://brian.moonspot.net/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] $_GET['a.b.c']

2009-01-13 Thread Brian Moon
the extract() and import_request_variables() functions? Will it still do the replacement? I foresee a lot of stop gap solutions using those functions to get around register_globals. Not saying it is right, just curious. -- Brian Moon Senior Web Engineer -- When you

Re: [PHP-DEV] php daemons, memory

2009-01-10 Thread Brian Moon
that run and do the work. They can end after a certain time or memory usage. Again, you have to make sure the main, parent script is well written and does not waste file descriptors, connections, etc. Hmm, maybe I will write a blog post about this. -- Brian Moon Senior Web Engineer

Re: [PHP-DEV] Proposal: array_flatten function

2008-12-27 Thread Brian Moon
in a good C function will beat out user space work on arrays. -- Brian Moon Senior Web Engineer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net

Re: [PHP-DEV] Re: namespace issues

2008-10-03 Thread Brian Moon
on and off list to try to find a solution that will satisfy the largest number of developers. Thank you Greg. I wish that long ago when I had karma I had kept working on the internals and kept my C skills sharp. They have atrophied Brian Moon [EMAIL PROTECTED] -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Re: namespace issues

2008-10-01 Thread Brian Moon
OOP arrogance. /rant Brian Moon [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] php7- dropping the $ from the variable name - rfc

2008-09-18 Thread Brian Moon
mike wrote: Personally I love the $. It makes it so much easier to identify variables. It's a single character. Can't see the need honestly to even bring this up. +1,000,000. Horrible idea. *facepalm* -- Brian Moon Senior Web Engineer -- When you care enough

Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] [Fwd: #45687 [Opn-Bgs]: Why is PCNTL marked experimental]

2008-08-03 Thread Brian Moon
Antony Dovgal wrote: Keeping the experimental status for so many years is a nonsense. Apparently it's not experimental anymore. It has been working for me for years. I would say it is not experimental. -- Brian Moon Senior Web Engineer -- When you care enough

Re: [PHP-DEV] enabling everything by default

2008-08-01 Thread Brian Moon
, if json is not on by default, for example, we can't use it. -- Brian Moon Senior Web Engineer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net

Re: [PHP-DEV] Switch Table Extension for PHP

2008-07-30 Thread Brian Moon
. It was the slowest thing in the app. So, we convered it to an array lookup system instead and got lots of performance. We also made a Phorum extension to handle the URL creation for those that need that little extra bump. -- Brian Moon Senior Web Engineer -- When you care

Re: [PHP-DEV] New string functions: str_startswith() and str_endswith()

2008-07-21 Thread Brian Moon
fast. And if you are looking to improve your applications performance by using different string functions, you are likely looking in the wrong place. -- Brian Moon Senior Web Engineer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP

Re: [PHP-DEV] [RFC] E_USER_DEPRECATED

2008-07-19 Thread Brian Moon
is not very accurate. -- Brian Moon Senior Web Engineer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [Fwd: confirm unsubscribe from [EMAIL PROTECTED]

2008-07-07 Thread Brian Moon
Wow, any idea how the PHP list thought this was me that wanted to unsubscribe? -- Brian Moon Senior Web Engineer -- When you care enough to spend the very least. http://dealnews.com/ ---BeginMessage--- Hi! This is the ezmlm program. I'm managing the internals

Re: [PHP-DEV] How bad would it be to say/enforce that namespacing can only apply to classes and not normal functions?

2008-06-26 Thread Brian Moon
How bad would it be to say that namespacing can only apply to classes and not normal functions? Lame, very lame. It would make them unusable for many distributed projects that are not 100% OOP. Wordpress comes to mind. My own Phorum as well. It was my understanding that one of the

Re: [PHP-DEV] extensions status, to move to pecl or to drop

2008-06-15 Thread Brian Moon
to say. I could care less if any of PHP works on Windows. I am sure Richard feels the opposite. =) -- Brian Moon Senior Developer/Engineer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] extensions status, to move to pecl or to drop

2008-06-12 Thread Brian Moon
Pierre Joye wrote: - smnp nice ext, any ISP out there willing to help? I can help for the windows support Hmm, we use this. Is it broken for 5.3 or something? What do we need to do to keep this alive? -- Brian Moon Senior Developer/Engineer -- When you

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

2008-05-29 Thread Brian Moon
made it in. I find it useless and pointless. You can do all that with a few functions, IMO. But it was added to make all the Java refugees happy. -- Brian Moon ([EMAIL PROTECTED]) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-05-28 Thread Brian Moon
version to the latest one, right? That makes it even more useless. Right, so the sooner the better. =) -- Brian Moon Senior Developer/Engineer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing

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

2008-05-28 Thread Brian Moon
PHP.net for [] won't return anything useful either. Can you google for this: $var = 1; $var = foo; ? -- Brian Moon Senior Developer/Engineer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List

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

2008-05-23 Thread Brian Moon
Lars Strojny wrote: a) write a proposal, b) write a patch for the Zend Engine, c) ask again. +1 on what Lars said. Not so much on the syntax. That just looks like a parse error to me. -- Brian Moon Senior Developer/Engineer -- When you care enough to spend

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

2008-05-22 Thread Brian Moon
that we'd have two ways. I'd prefer to support [] but I don't think it's a huge deal if we don't do it. It would make PHP a bit nicer :) Andi I almost typed it the other day not thinking. Been doing a lot of YUI and {} and [] are growing on me. +1 -- Brian Moon Senior Developer/Engineer

[PHP-DEV] Resending session cookies patch

2008-05-13 Thread Brian Moon
() inside that function. It does not currently check PS(send_cookie). It simply just fires off the Set-Cookie header. Thoughts? -- Brian Moon Senior Developer/Engineer -- When you care enough to spend the very least. http://dealnews.com/ --- php_session.h.orig 2008

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

2008-04-17 Thread Brian Moon
as if it was a string. -- Brian Moon Senior Developer/Engineer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-04-17 Thread Brian Moon
I just did a grep on zend framework for is_int and there were tons of results. No offense to Zend, I love thos guys, but I don't think using Zend Framework as the gold standard for how people want to code in PHP is the right thing to do. -- Brian Moon Senior Developer/Engineer

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

2008-02-08 Thread Brian Moon
() ) { So, I guess I am +1 -- Brian Moon Senior Developer/Engineer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] U

2008-01-16 Thread Brian Moon
was toggling a setting via a link or form that is to be saved to a cookie. Hmm, I think I feel a blog post coming on. -- Brian Moon Senior Developer/Engineer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] [PATCH] date/timelib: use system timezone database

2008-01-09 Thread Brian Moon
this for application developers. -1000 -- Brian Moon Senior Developer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] mysql.connect_timeout default

2008-01-07 Thread Brian Moon
cause this to be hit at 5 seconds? Other thoughts? -- Brian Moon Senior Developer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] type hinting

2008-01-04 Thread Brian Moon
will pass as a string, but arrays and objects will not. -- Brian Moon Senior Developer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RE: Optional scalar type hinting

2008-01-03 Thread Brian Moon
is here. It is not going anywhere. Let's finish the job. -- Brian Moon Senior Developer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Fwd: [PHP] php with threaded MPM problem ?

2007-12-19 Thread Brian Moon
. As for changing the code, a patch that does not break anything would be the way to approach the list. It was probably done the way it is done for a reason. -- Brian Moon Senior Developer -- When you care enough to spend the very least. http://dealnews.com/ -- PHP Internals

Re: [PHP-DEV] Garbage collector patch

2007-12-05 Thread Brian Moon
would want it most. Only in my cli apps do I run into having to trick the garbage collection into working in my favor. I usually end having my loop just call a function on each pass. That seems to help with memory use in PHP currently. -- Brian Moon Senior Developer

Re: [PHP-DEV] RFC: Dropping Namespace

2007-12-04 Thread Brian Moon
in that my company's code would not conflict with some 3rd party software we use. -- Brian Moon Senior Developer -- http://dealnews.com/ It's good to be cheap =) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-18 Thread Brian Moon
. Regards, NK So, you need to relabel this, func_get_args() should allow arguments to be passed by reference. This has nothing to do with call time pass by reference IMO. -- Brian Moon Senior Developer -- http://dealnews.com/ It's good to be cheap =) -- PHP

Re: [PHP-DEV] Bring back call-time pass-by-reference

2007-11-17 Thread Brian Moon
will bite. What can't you do? I can think of several really bad things that can happen. It can't be OOP cause objects are already always passed by reference. -- Brian Moon Senior Developer -- http://dealnews.com/ It's good to be cheap =) -- PHP Internals - PHP Runtime

Re: [PHP-DEV] PDO performance

2007-11-15 Thread Brian Moon
for some feedback. many thanks Andrew I have not done the benchmark recently, but here is what I found last year. It just depends on what is important to you. http://dealnews.com/developers/php-mysql.html -- Brian Moon Senior Developer -- http://dealnews.com

Re: [PHP-DEV] import/use last call

2007-10-22 Thread Brian Moon
'import' keyword with 'use' keyword, which is already reserved. If 'use' is already reserved, it makes the most sense IMO. -- Brian Moon Senior Developer -- http://dealnews.com/ It's good to be cheap =) -- PHP Internals - PHP Runtime Development Mailing List

Re: [PHP-DEV] PHP 5.3 Suggested Feature List

2007-09-09 Thread Brian Moon
enabling patch for OpenSSL and PHP 5 1 9) Add array_replace[_recursive] functions (patch is already available) 1 10) Split off deprecation from E_STRICT into E_DEPRECATED 1 16) Introduce new php.ini files parser/scanner + CGI/FastCGI? htaccess style ini file support 1 -- Brian Moon

Re: [PHP-DEV] Question about Namespace patch

2007-07-23 Thread Brian Moon
about namespaces IMO, is that I don't have to have a class named SQLAlchemy_Transaction. I can just have a class named Transaction in the SQLAlchemy namespace. I can then create a new object using $obj = new SQLAlchemy::Transaction. -- Brian Moon Senior Developer

Re: [PHP-DEV] Question about Namespace patch

2007-07-23 Thread Brian Moon
for you in this case. -- Brian Moon Senior Developer -- http://dealnews.com/ It's good to be cheap =) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Question about Namespace patch

2007-07-23 Thread Brian Moon
that type of organization useful. -- Brian Moon Senior Developer -- http://dealnews.com/ It's good to be cheap =) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] DateTime and setlocale()

2007-07-11 Thread Brian Moon
I was just wondering if it was intentional to ignore setlocale() in the new DateTime object and its friends? That is a real let down if it was intentional. Maybe its just a future feature? -- Brian Moon Senior Developer -- http://dealnews.com/ It's good

Re: [PHP-DEV] RIP PHP 4?

2007-07-06 Thread Brian Moon
to as the install base is too large, but that would be the only thing that would warrant a new release. I already sort of mentioned this on april 1st, but I think we should come with a slightly more official statement. Your votes please (only -1 and +1 are allowed)! regards, Derick +1 -- Brian

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-05 Thread Brian Moon
do not use overloaded. -- Brian Moon Senior Developer -- http://dealnews.com/ It's good to be cheap =) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-04 Thread Brian Moon
= get_settings(); function phorum_build_url(){ return $url; } ? list.php: ?php namespace Phorum; $url - phorum_build_url(); ? Or, would list.php have to import the Phorum namespace? Also, I don't see any mention of variables in namespaces. Will there be no effect on variables? -- Brian Moon

[PHP-DEV] apache_child_terminate on Apache 2.x

2007-06-13 Thread Brian Moon
for a philosophical reason? Was it just over looked? Like it or not, PHP is gonna have to work well on Apache 2 at some point. I don't like it, but its reality. AFAIK, this is the only apache function that does not work in Apache 2. -- Brian Moon Senior Developer

Re: [PHP-DEV] Re: Still having lstat trouble

2007-05-26 Thread Brian Moon
. That is why our cli and apache 2 returned wrong data. So, it this a bug in ZTS? Or do we have to live with this? -- Brian Moon Senior Developer -- http://dealnews.com/ It's good to be cheap =) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit

Re: [PHP-DEV] PHP Unicode extension in PHP6

2007-05-24 Thread Brian Moon
that users don't have to deal with these issues. I had been joking with the Phorum team that we would rewrite Phorum 6 to work only with PHP6. I am starting to worry that my jokes will become reality. -- Brian Moon Senior Developer -- http://dealnews.com/ It's

Re: [PHP-DEV] Re: Still having lstat trouble

2007-05-23 Thread Brian Moon
out those access() calls, and did they fail, or did the unlink() fail perhaps? -Rasmus -- Brian Moon Senior Developer -- http://dealnews.com/ It's good to be cheap =) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net

  1   2   >