Re: [PHP-DEV] [PATCH] Remove nTableSize from HashTable?

2009-03-15 Thread Marcus Boerger
Hello Matt, if there is no advantage in doing so, why offer a patch? Ok, you probably meant disadvantage. And the advantge of doing so is probably a lower memory foot print. Did you by any chance run any profiling? Without numbers, I guess it is not worth the effort changing a core component.

Re: [PHP-DEV] SplStack Implementation

2009-03-15 Thread Marcus Boerger
Hello Ben, there is no need in checking whether the implementation uses single or double linked. Access to any structure from the engine will always be slower by orders of magnitude, then maintaining a pinter structure directly in C code. Now doing something with that in PHP code will again be

Re: [PHP-DEV] Re: [APC-DEV] Re: [PHP-DEV] [RFC] APC/PHP Lazy Loading

2009-03-11 Thread Marcus Boerger
Hello Lukas, Wednesday, March 11, 2009, 5:10:57 PM, you wrote: Dmitry Stogov wrote: Hi Shire, I run patched APC on a number of real-life applications and got more than 30% speedup on XOOPS (99 req/sec instead of 60%) and 20% on ZendFramework (41 req/sec instead of 32), however most

[PHP-DEV] Re: [APC-DEV] Re: [PHP-DEV] Re: [APC-DEV] Re: [PHP-DEV] [RFC] APC/PHP Lazy Loading

2009-03-11 Thread Marcus Boerger
Hello Lukas, Wednesday, March 11, 2009, 11:15:23 PM, you wrote: On 11.03.2009, at 19:55, Marcus Boerger wrote: Last but not least, Lukas, what happened, to putting APC into core? That was planned for PHP 6.0. there is no such thing. Let's either do it now or go for 5.4. regards, Lukas

Re: [PHP-DEV] Questions on closures and visibility

2009-03-11 Thread Marcus Boerger
Hello Nate, Wednesday, March 11, 2009, 9:25:23 PM, you wrote: Hi all, Since around alpha1, I've been doing some experimenting with closures, most recently in the form of a filter chain implementation, and I've discovered that as of beta1 (as was noted in the removal-of-$this RFC)

Re: [PHP-DEV] Cloning of objects passed as parameters

2009-03-10 Thread Marcus Boerger
Hello Frankie, Tuesday, March 10, 2009, 5:19:32 PM, you wrote: I'm writing a PHP class with a method that has to be passed a DOMDocument object, and it needs to retain that object throughout the life of its instantiation. However, the (dom_object *) returned from

Re: [PHP-DEV] About GSoC 2009

2009-03-10 Thread Marcus Boerger
Hello Johannes, Wednesday, February 11, 2009, 12:29:12 PM, you wrote: Hi, last weekend at FOSDEM in Brussels Leslie Hawthorn announced this year's Google Summer of Code program. Meanwhile the FAQ including the timeline has been published.

Re: [PHP-DEV] 5.3 items

2009-03-06 Thread Marcus Boerger
Hello Lukas, thanks for the detailed update on your life :-) Friday, March 6, 2009, 9:13:16 AM, you wrote: Hello All, I am back from my vacation in Tanzania. I will be in Innsbruck over the weekend for some Frisbee action, but I hope to get back into the RM business Sunday evening or

Re: [PHP-DEV] phar update

2009-03-02 Thread Marcus Boerger
Hello Igor, Monday, March 2, 2009, 5:31:51 PM, you wrote: You can cut down on the skipped tests by building bz2, zlib, and openssl. 350 passed 161 skipped By the way, phar complained Archive.php wasn't found (no PEAR installed in this machine) in `make` time. Does it affects anything ?

Re: [PHP-DEV] zend_call_method() - support for up to 4 parameters

2009-02-23 Thread Marcus Boerger
Hello Pierre, Saturday, February 21, 2009, 2:46:01 PM, you wrote: On Sat, Feb 21, 2009 at 1:05 PM, Marcus Boerger he...@php.net wrote: Hello Pierre, Thursday, February 19, 2009, 12:22:41 PM, you wrote: hi, On Thu, Feb 19, 2009 at 11:57 AM, Johannes Schlüter johan...@php.net wrote: ps

Re: [PHP-DEV] How to contribute a new extension?

2009-02-23 Thread Marcus Boerger
Hello KaiGai, Tuesday, February 24, 2009, 6:11:02 AM, you wrote: Hi, I'm one of the developers in the SELinux. I have an extension of PHP to provide interfaces to communicate with SELinux, and would like to propose them to the official PHP. Now I'm looking for informations about steps to

Re: [PHP-DEV] zend_call_method() - support for up to 4 parameters

2009-02-21 Thread Marcus Boerger
Hello Pierre, Thursday, February 19, 2009, 12:22:41 PM, you wrote: hi, On Thu, Feb 19, 2009 at 11:57 AM, Johannes Schlüter johan...@php.net wrote: ps. I'm aware of the fact that we added some specific APIs in special cases in bug fix releases before, but there's a difference between

Re: [PHP-DEV] Adding/Updating ZVal Arrays to Object

2009-02-21 Thread Marcus Boerger
Hello Matthew, I gave a bunch of tutorials on this with various other folks, Johannes, Sara, Wez. The slides from November 2007 are still up and contain probably more information than you ever wanted to know. There is also the demo extension that you can access through cvs.

Re: [PHP-DEV] phar update

2009-02-21 Thread Marcus Boerger
Hello Greg, in one word: Awesome! Saturday, February 21, 2009, 4:36:38 AM, you wrote: Hi, As PHP has the good fortune of being blessed with Scott MacVicar who connected me with the ppc64 test machine provided by IBM and the sparc machine provided by Sun through David Soria-Parra (thank

Re: [PHP-DEV] zend_call_method() - support for up to 4 parameters

2009-02-18 Thread Marcus Boerger
Hello Nathan, Wednesday, February 18, 2009, 3:31:56 PM, you wrote: On Wed, Feb 18, 2009 at 6:16 AM, Johannes Schlüter johan...@php.net wrote: But I don't think that a new limitation is any better: Tomorrow we have to change it again as somebody has a reason to use 5 parameters, so if it is

Re: [PHP-DEV] int/long conflict in spl?

2009-02-17 Thread Marcus Boerger
Hello Greg, Wednesday, February 11, 2009, 6:07:27 AM, you wrote: Hi, While tracking down a problem in one of phar's tests, I found what might be a problem in RecursiveDirectoryIterator's handling of flags. Here is a crude patch demonstrating the issue, and wondering if this is

Re: [PHP-DEV] 5.3 todos

2009-02-15 Thread Marcus Boerger
Hello shire, Thursday, February 12, 2009, 8:02:06 PM, you wrote: Lukas Kahwe Smith wrote: The following remain open and it does not seem someone is actively working in it: - PHP_5_3 missed merge from PHP_5_2 for write_func callback Seeing as I have an interest in this getting in 5_3, I'll

Re: [PHP-DEV] towards the next 5.3 release

2009-02-08 Thread Marcus Boerger
Hello Johannes, Thursday, February 5, 2009, 8:02:47 PM, you wrote: On Thu, 2009-02-05 at 10:36 -0800, Sebastian Bergmann wrote: Johannes Schlüter wrote: - No typehint, as it is now, #47206 Expected / to be documented, incompatible with 5.2.6-5.2.8 but compatible with most other 5.2

Re: [PHP-DEV] towards the next 5.3 release

2009-02-08 Thread Marcus Boerger
Hello Stanislav, it should actually be a hard error. As we always claim PHP follows pure IS-A relation ships. Tuesday, February 3, 2009, 8:42:51 PM, you wrote: Hi! http://bugs.php.net/bug.php?id=46984 - E_STRICT I think overriding foo($x) with foo($x, $y) - with both parameters

Re: [PHP-DEV] [RFC] prototyping

2009-01-19 Thread Marcus Boerger
Hello Christian, Sunday, January 18, 2009, 11:58:29 PM, you wrote: Hi Marcus, Convoluted? Mess? Are you kidding me? It's standard usage of access handlers. It is a mess right now. You assign a closure to another method and get access to the original owners private members. That is not

Re: [PHP-DEV] [RFC] prototyping

2009-01-19 Thread Marcus Boerger
Hello Stanislav, Monday, January 19, 2009, 9:32:09 AM, you wrote: Hi! It is a mess right now. You assign a closure to another method and get access to the original owners private members. That is not only unexpected Could you give a code example? I'm not sure I understand what you mean

Re: [PHP-DEV] Method call improvements

2009-01-19 Thread Marcus Boerger
Hello Stanislav, Monday, January 19, 2009, 10:12:46 AM, you wrote: Hi! Aren't we able to bind these at least partially to the function call opcode, in case we know they are constant? If all is constsnt we could even store the whole lookup in the opcode. Well you'd have to convince Zend to

Re: [PHP-DEV] Method call improvements

2009-01-17 Thread Marcus Boerger
Hello Timm, Friday, January 16, 2009, 9:35:13 PM, you wrote: Hi, in every programming language, method calls are expensive. Especially in PHP, which does not spend any effort during compile time to resolve method calls their target (and cannot due to the possibility of lazily loading

Re: [PHP-DEV] [RFC] prototyping

2009-01-17 Thread Marcus Boerger
Hello Stanislav, Wednesday, January 14, 2009, 5:29:02 PM, you wrote: Hi! That is one example of convoluted code that is already possible. If a developer creates such a mess is his fault. Convoluted? Mess? Are you kidding me? It's standard usage of access handlers. It is a mess right

Re: [PHP-DEV] [RFC] prototyping

2009-01-13 Thread Marcus Boerger
Hello Stanislav, Tuesday, January 13, 2009, 12:07:31 AM, you wrote: Hi! 1) a non static closure assigned to an instance changes the closures this to be set to the actual object: I'm not sure why would you expect this. If you have closure that has some bound $var inside, and you use it in

Re: [PHP-DEV] status update for beta1

2009-01-13 Thread Marcus Boerger
Hello Stanislav, Monday, January 12, 2009, 11:19:51 PM, you wrote: Hi! it appears Dmitry and Stas are against that, so I let it for you to decide whetehr you want me to drop all of it or continue workig on it to make all I can ready for 5.3.0. I'm not precisely against it because I'm

Re: [PHP-DEV] status update for beta1

2009-01-12 Thread Marcus Boerger
Hello Lukas, Monday, January 12, 2009, 11:56:02 AM, you wrote: Hello all, Just wanted to get a status update on the work going on: - Eric and Nathan are working on new php.ini files and I guess they will soon post their proposals to the list - @Steph: have you begun work on the Upgrading

Re: [PHP-DEV] status update for beta1

2009-01-12 Thread Marcus Boerger
Hello Lukas, it appears Dmitry and Stas are against that, so I let it for you to decide whetehr you want me to drop all of it or continue workig on it to make all I can ready for 5.3.0. marcus Monday, January 12, 2009, 10:22:33 PM, you wrote: Hello Lukas, Monday, January 12, 2009,

Re: [PHP-DEV] [RFC] Closures, Lambdas and use

2009-01-05 Thread Marcus Boerger
Hello Stanislav, Monday, January 5, 2009, 6:03:56 AM, you wrote: Hi! some time back (August 08) I complained about 'use' being at a weird position and not at the same place as 'global' or 'static' where I expected it. Back then Dmitry asked me to provide a patch to check out the

Re: [PHP-DEV] [RFC] Re: [PHP-DEV] __invoke() weirdness

2009-01-03 Thread Marcus Boerger
Hello Johannes, Friday, January 2, 2009, 7:16:32 PM, you wrote: Hi, On Wed, 2008-12-31 at 17:38 +0100, Marcus Boerger wrote: So far it is. Yet I as much as you do not like the inconsistency. So I spend a little bit on providing the following patch that should do what you were looking

Re: [PHP-DEV] [RFC] Re: [PHP-DEV] __invoke() weirdness

2009-01-02 Thread Marcus Boerger
a function rather than a method. marcus Cheers, - David On 01.01.2009, at 17:50, Marcus Boerger wrote: Hello David, I added test closure_037.phpt to demonstrate this. marcus Thursday, January 1, 2009, 5:23:08 PM, you wrote: Hi folks, first of all, thank you Marcus for implementing

Re: [PHP-DEV] __getStatic

2009-01-02 Thread Marcus Boerger
Hello Lukas, Friday, January 2, 2009, 2:59:40 PM, you wrote: On 01.01.2009, at 17:55, Pierre Joye wrote: hi! On Thu, Jan 1, 2009 at 2:56 PM, Marcus Boerger he...@php.net wrote: Hello Lukas, if anything requires an internal API change than we at least should do those parts. Besides

Re: [PHP-DEV] Closures serialization

2009-01-02 Thread Marcus Boerger
Hello Marcin, Friday, January 2, 2009, 8:56:41 PM, you wrote: Hello internals and a happy new year. I've been meaning to ask this for some time now: why aren't closures serializable? The only on-list discussion about this that i've found is:

Re: [PHP-DEV] __getStatic

2009-01-01 Thread Marcus Boerger
Hello Lukas, if anything requires an internal API change than we at least should do those parts. Besides this issue was long ago raised and imo should go in. As we get more and more people testing what 5.3 will be we get more and more complains about the lack of these. And isn't that the goal

Re: [PHP-DEV] [RFC] Re: [PHP-DEV] __invoke() weirdness

2009-01-01 Thread Marcus Boerger
. But for the moment we do not need it badly and the patch with the increased consistency is good enough. marcus Thursday, January 1, 2009, 4:09:39 PM, you wrote: Hello Hannes, Wednesday, December 31, 2008, 8:33:43 PM, you wrote: On Wed, Dec 31, 2008 at 20:12, Marcus Boerger he...@php.net

Re: [PHP-DEV] [RFC] Re: [PHP-DEV] __invoke() weirdness

2009-01-01 Thread Marcus Boerger
to the next question - will $method = 'something'; $bar-$method(); work? Not sure if it's necessary; just curious for the most part. - David On 01.01.2009, at 17:06, Marcus Boerger wrote: Hello Hannes, as discussed online. At the moment we should not have any __get() calls during method

[PHP-DEV] [RFC] Re: [PHP-DEV] __invoke() weirdness

2008-12-31 Thread Marcus Boerger
Hello David, Tuesday, December 23, 2008, 5:02:43 PM, you wrote: Hi folks, I played with __invoke today: class Curry { protected $callable; protected $args; public static function create($callable) { $curry = new self($callable, array_slice(func_get_args(), 1));

Re: [PHP-DEV] [RFC] Re: [PHP-DEV] __invoke() weirdness

2008-12-31 Thread Marcus Boerger
for a non found function. So whenever we would normally call __call we add an additional lookup. cu, Lars Am Mittwoch, den 31.12.2008, 17:38 +0100 schrieb Marcus Boerger: Hello David, Tuesday, December 23, 2008, 5:02:43 PM, you wrote: Hi folks, I played with __invoke today: class Curry

Re: [PHP-DEV] New function proposal: spl_object_id

2008-12-17 Thread Marcus Boerger
Hello Etienne, Wednesday, December 17, 2008, 7:59:01 PM, you wrote: Hello, On Wed, Dec 17, 2008 at 7:29 PM, Lars Strojny l...@strojny.net wrote: Hi Guilherme, thanks for moving the discussion to the list. Am Mittwoch, den 17.12.2008, 15:31 -0200 schrieb Guilherme Blanco: [...] It seems

Re: [PHP-DEV] PHP 5.2.8 Released

2008-12-09 Thread Marcus Boerger
Hello Hannes, Tuesday, December 9, 2008, 10:58:17 AM, you wrote: On Tue, Dec 9, 2008 at 00:59, Ilia Alshanetsky [EMAIL PROTECTED] wrote: The PHP development team would like to announce the immediate availability of PHP 5.2.8. This release addresses a regression introduced by 5.2.7 in What

Re: [PHP-DEV] About dropping magic_quotes in 5.3 (was: Re: [PHP-DEV] Re: PHP 5.2.7 + magic_quotes_gpc broken)

2008-12-09 Thread Marcus Boerger
to patch, minor, major release schemes we have right now. What you are proposing works for linux, where there is only one branch and they can effectively do the odd/even approach. But, what would it mean for PHP and our current versioning schema? On 8-Dec-08, at 3:53 PM, Marcus Boerger wrote

Re: [PHP-DEV] problem with include_path and write-based file functions

2008-12-09 Thread Marcus Boerger
Hello Gregory, Tuesday, December 9, 2008, 8:50:21 PM, you wrote: Hi, This bug: http://bugs.php.net/bug.php?id=46680 uncovers 2 larger issues. 1) Where should a function like file_put_contents() create its file if it doesn't already exist and FILE_USE_INCLUDE_PATH is specified? The

Re: [PHP-DEV] Re: PHP 5.2.7 + magic_quotes_gpc broken

2008-12-08 Thread Marcus Boerger
Hello Pierre, Monday, December 8, 2008, 4:08:49 PM, you wrote: On Mon, Dec 8, 2008 at 4:06 PM, Hannes Magnusson [EMAIL PROTECTED] wrote: On Mon, Dec 8, 2008 at 15:24, Pierre Joye [EMAIL PROTECTED] wrote: hi, On Mon, Dec 8, 2008 at 3:15 PM, Ilia Alshanetsky [EMAIL PROTECTED] wrote: Should

Re: [PHP-DEV] About dropping magic_quotes in 5.3 (was: Re: [PHP-DEV] Re: PHP 5.2.7 + magic_quotes_gpc broken)

2008-12-08 Thread Marcus Boerger
Hello Pierre, Monday, December 8, 2008, 4:57:17 PM, you wrote: On Mon, Dec 8, 2008 at 4:47 PM, Johannes Schlüter [EMAIL PROTECTED] wrote: Hi, let's take this to a new thread so it'S not hidden in other discussions: On Mon, 2008-12-08 at 16:06 +0100, Hannes Magnusson wrote: I do not think

Re: [PHP-DEV] Problem with (namespaced) code extending ReflectionProperty - possible bug?

2008-12-08 Thread Marcus Boerger
Hello Stanislav, Monday, December 8, 2008, 4:50:52 PM, you wrote: Hi! According to the manual and the PHP source the signature is this: public function getValue(stdclass $object) Manual is unfortunately not exact in this point - true signature for it is public function getValue([object

Re: [PHP-DEV] Problem with (namespaced) code extending ReflectionProperty - possible bug?

2008-12-08 Thread Marcus Boerger
Hello Rodrigo, Monday, December 8, 2008, 5:48:00 PM, you wrote: Which reminds me that we still have no way to do that in userland. In userland you cannot write: function foo(Object $bla = NULL). The missing part is 'Object' as a type hint. I once long ago suggested using 'class' as in

Re: [PHP-DEV] About dropping magic_quotes in 5.3 (was: Re: [PHP-DEV] Re: PHP 5.2.7 + magic_quotes_gpc broken)

2008-12-08 Thread Marcus Boerger
Hello Ilia, given our current development model I completely agree. Thus I would like to change it as described earlier. I am convinced that only following the even=stable odd=dev/testing model allows for longer maintenanance cycles and fast development at the same time. marcus Monday,

Re: [PHP-DEV] PHP 5.2.7 + magic_quotes_gpc broken

2008-12-07 Thread Marcus Boerger
Hello Ilia, Ilia, this is ultimately your call but I suggest we drop 5.2.7, explain that people shouldn't use it on php.net news and then provide 5.2.8. marcus Saturday, December 6, 2008, 9:35:42 PM, you wrote: Hey, There have been several bug reports about magic_quotes_gpc being

Re: [PHP-DEV] Re: PHP 5.2.7 + magic_quotes_gpc broken

2008-12-07 Thread Marcus Boerger
Hello Ilia, brilliant :-) Sunday, December 7, 2008, 7:16:43 PM, you wrote: I will be re-branching 5.2.7 with this revert for the purpose of 5.2.8 this week. This will allow the normal 5.2 bug fixing to continue as normal. On 6-Dec-08, at 3:35 PM, Scott MacVicar wrote: Hey, There

Re: [PHP-DEV] apha3

2008-11-26 Thread Marcus Boerger
Hello Stanislav, why not have a secondary extension definition in ext/hash? Wednesday, November 26, 2008, 7:06:03 PM, you wrote: Hi! Then again, we maintain BC aside from this single call to determine if the extension is loaded, so I guess yeah .. lets just remove it .. we are

Re: [PHP-DEV] apha3

2008-11-26 Thread Marcus Boerger
Hello Scott, Wednesday, November 26, 2008, 8:33:59 PM, you wrote: On 26 Nov 2008, at 18:56, Marcus Boerger [EMAIL PROTECTED] wrote: Hello Stanislav, why not have a secondary extension definition in ext/hash? Wednesday, November 26, 2008, 7:06:03 PM, you wrote: Hi! Then again, we

Re: [PHP-DEV] Grafts, Traits, horizontal reuse

2008-11-25 Thread Marcus Boerger
Hello Christopher, Tuesday, November 25, 2008, 3:27:45 AM, you wrote: Hej Marcus, I like your approach. It is clear and simple. It would probably solve 90% of the cases, where delegation is needed. I want to add that a manually defined method should automatically overwrite a delegated

Re: [PHP-DEV] Grafts, Traits, horizontal reuse

2008-11-24 Thread Marcus Boerger
Hello Stefan, Sunday, November 16, 2008, 4:36:18 PM, you wrote: Hi, Christopher Vogt schrieb: Hej everybody, I really liked to see the Grafts proposal. Well, I'm still in love with the more powerful (because they are interweaveable(breakable)) Traits ;) The Grafts proposal, however,

Re: [PHP-DEV] ReflectionProperty::setValue() and ReflectionProperty::setAccessible()

2008-11-13 Thread Marcus Boerger
Hello Sebastian, allowing to read is more than enough. And ofr the record I did not like that at all. If you need to write to a private variable, then obviously your class design is wrong. And testing is no argument, as you can nicely design so that this is not necessary. marcus

Re: [PHP-DEV] error_log - sapi.log_message

2008-11-13 Thread Marcus Boerger
Hello Stanislav, thanks :-) Wednesday, November 12, 2008, 9:58:02 PM, you wrote: Hi! I want to add error_log option (message_type = 4) which would send the message directly to sapi_module.log_message whatever error_log INI setting is. This would allow more flexibility in using SAPI

Re: [PHP-DEV] quick polls for 5.3

2008-11-13 Thread Marcus Boerger
Hello Lukas, Wednesday, November 12, 2008, 8:14:31 PM, you wrote: Hi, here are a few questions that need to be answered ASAP. If at all possible keep your votes as short as possible. I think all of the above topics have been discussed quite a lot on the list. So I hope voters can

Re: [PHP-DEV] [PATCH] bracketed namespace declarations

2008-11-10 Thread Marcus Boerger
Hello Gregory, Friday, November 7, 2008, 10:14:50 PM, you wrote: Hi, Stas and company decided that they wanted namespaces to have two legal syntax choices: 1) single namespace per file: ?php namespace foo; ... ? 2) multiple namespaces per file: ?php namespace foo1 { } namespace

Re: [PHP-DEV] alpha3 or forever hold your peace

2008-11-10 Thread Marcus Boerger
Hello Jani, Monday, November 10, 2008, 11:41:44 AM, you wrote: Lukas Kahwe Smith wrote: Hi, I just wanted to ask everybody to skim over the changes for PHP 5.3 we have in CVS (especially bigger stuff like the addition/removal of an extension etc.). Please bring up any areas you are

[PHP-DEV] Namespace separator

2008-11-04 Thread Marcus Boerger
Hello Internals, with many thanks to Greg we now have settled on \ as the namespace separator. The next topic on the agenda is name resolution: http://wiki.php.net/rfc/namespaceresolution Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Marcus Boerger
Hello Steph, Tuesday, November 4, 2008, 5:44:50 PM, you wrote: Hi Greg, all, For this reason, the only resolution that we should be considering is: classes: 1) try ns::class 2) autoload ns::class 3) fail functions/constants: 1) try ns::function/ns::const 2) try internal

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Marcus Boerger
Hello Lukas, Wednesday, November 5, 2008, 12:32:19 AM, you wrote: On 05.11.2008, at 00:12, Marcus Boerger wrote: classes: 1) try ns::class 2) autoload ns::class 3) fail Since we can stack autoload we could provide a c-level autoload function that does the default lookup. function

Re: [PHP-DEV] namespace separator and whining

2008-11-04 Thread Marcus Boerger
Hello Gregory, Tuesday, November 4, 2008, 5:15:35 PM, you wrote: Christian Schneider wrote: Lukas Kahwe Smith wrote: one could also do 1) ns 2) global 3) autoload I'm in favour of this (if it avoids performance problems) as I don't see a problem with giving global priority over

Re: [PHP-DEV] [RFC] Iteration tools

2008-11-03 Thread Marcus Boerger
Hello Ionut, some remarks about your proposal: 1) You can turn any array into a Traversable using (Recursive)ArrayIterator. Though this solution is still slow. The issue is that the c-level code needs to verify the current pointer every single time it uses it and that means traversing the

Re: [PHP-DEV] Re: cvs: php-src(PHP_5_3) /ext/standard math.c

2008-10-30 Thread Marcus Boerger
Hello Christian, Thursday, October 30, 2008, 10:55:48 AM, you wrote: Hi, Modified files: (Branch: PHP_5_3) /php-src/ext/standard math.c Log: Fixed bug #42294 (Unified solution for round() based on C99 round) [DOC] New implementation of round() to work-around

Re: [PHP-DEV] Class visibility in namespaces

2008-10-29 Thread Marcus Boerger
Hello Ron, we agreed long ago on a very easy scheme, there shall only be is-a and public classes. marcus Wednesday, October 29, 2008, 9:12:30 AM, you wrote: Hi, I'm hoping I don't cause yet another flame war about the n-word ;) I was wondering if namespaces are going to support class

Re: [PHP-DEV] namespace separator hits slashdot

2008-10-28 Thread Marcus Boerger
Hello marius, typical slashdot php artical. 'PHP is the worst crap ever - god bless perl' The issue in this case is a confused user. See other mails to do it right and an archive of thousands of mails discussing the topic (and no, I am not kidding about that amount). And I have more

Re: [PHP-DEV] Namespaces and \t, \r, \n, \0 etc.

2008-10-28 Thread Marcus Boerger
Hello Stefan, If the engine fails to lookup a class and detected a namespace separator we could actually add this check as well and suggest it as a probable cause of the error. marcus Tuesday, October 28, 2008, 1:49:00 PM, you wrote: Hi Johannes, Johannes Schlüter schrieb: to me it does

Re: [PHP-DEV] namespace separator and whining

2008-10-28 Thread Marcus Boerger
Hello Greg, thanks for finalizing this. marcus Sunday, October 26, 2008, 4:37:37 PM, you wrote: Hi all, Let me make this brief: there will be lots of complaining about the namespace separator. Stop. Now. It serves no possible useful purpose. If you want to discuss why this was

Re: [PHP-DEV] Destructor Order

2008-10-23 Thread Marcus Boerger
Hello Ryan, during 5.0 alpha phase I had that actually implemented. But it turned out to be too much of a slowdown and also could not solve all dependency graphs. For example you can obviously not solve dependency cycles. So at the end of the experiement we decided against it. Maybe we could

Re: [PHP-DEV] Namespace issues

2008-10-19 Thread Marcus Boerger
Hello David, Sunday, October 19, 2008, 1:02:21 PM, you wrote: shift+;(x3) vs \ Ok I'll try to make a very neutral comment. For the moment most are still using an english keyboard (no matter which english in this case and I'd actually be interested in knowing numbers for a fact if

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

2008-10-18 Thread Marcus Boerger
Hello Greg, Many thanks for wirting a nice proposal. Now, I consider #2 and #4 as no options, just as most everyone else. Regarding #3, I see it contradicting our KISS approach. You can actually write code where an Identifier in two scripts that share the same includes mean something completely

Re: [PHP-DEV] 'Sanity' tally to date

2008-10-18 Thread Marcus Boerger
Hello Lukas, --stas_s-option-because_I_could_not_read_that_code; marcus Thursday, October 16, 2008, 6:51:29 PM, you wrote: On 16.10.2008, at 16:14, Steph Fox wrote: Please can those people who didn't already express a clear and relevant opinion, express it now? We don't have long

Re: [PHP-DEV] Namespace issues

2008-10-18 Thread Marcus Boerger
Hello William, Friday, October 17, 2008, 7:57:53 PM, you wrote: Marcel Esser wrote: Using ::: as a namespace seperator would be great. A general rule of telephony dialing and other data input, three of the same character will too often be entered or recognized as two or four characters due

Re: [PHP-DEV] Namespace issues

2008-10-18 Thread Marcus Boerger
Hello all, Greg was so kind to give me part of his awesome upcoming Pyrus code. He actually has it running with both ':::' and '\' as namespace separators. So I thought I'd help out a tiny tiny bit by giving you all the choice of having a look at actual working code:

Re: [PHP-DEV] question on how to solve major stream filter design flaw

2008-10-11 Thread Marcus Boerger
Hello Gregory, Saturday, October 11, 2008, 7:45:09 PM, you wrote: Hi, I'm grappling with a design flaw I just uncovered in stream filters, and need some advice on how best to fix it. The problem exists since the introduction of stream filters, and has 3 parts. 2 of them can probably be

Re: [PHP-DEV] RFC: SPL Comparator interface

2008-10-08 Thread Marcus Boerger
Hello Jeremy, Wednesday, October 8, 2008, 12:50:23 AM, you wrote: Something that would be extremely useful is a comparator interface in SPL, which could be used to easily implement sorting for objects. Example: class Foo implements Comparator { // is numeric for this example

Re: [PHP-DEV] Disable PHAR by default

2008-09-29 Thread Marcus Boerger
Hello Jani, we're in alpha and fix all of those issues. in contrast to 99.9% of our users it is very easy for you to disable it. But the majority will only get the extension when we enable by default. And it is one of the big plans for 5.3 to finally support native packaging to make a lot of

Re: [PHP-DEV] Adding pecl/http to core

2008-09-23 Thread Marcus Boerger
Hello Hannes, Tuesday, September 23, 2008, 3:04:16 PM, you wrote: On Tue, Sep 23, 2008 at 14:54, Lukas Kahwe Smith [EMAIL PROTECTED] wrote: That being said, there is some overlap in features with existing functionality. Maybe if we schedule this for PHP 6, then we might want to mark a few

Re: [PHP-DEV] Adding pecl/http to core

2008-09-23 Thread Marcus Boerger
Hello Michael, I think it is pretty useful. marcus Monday, September 22, 2008, 8:17:58 PM, you wrote: Hi, I wonder what the general opinion is on adding pecl/http to the main PHP distribution? Many people have poked me in the past, so I guessed it's time to ask me and you that question

Re: [PHP-DEV] Re: [PATCH] Re: [PHP-DEV] namespace examples (solving name resolutionorderissues)

2008-09-20 Thread Marcus Boerger
Hello Gregory, Sunday, September 14, 2008, 7:40:01 AM, you wrote: Stanislav Malyshev wrote: Hi! In other words, there is simply no comparison. Userspace class usage outnumbers internal class usage by an order of magnitude in typical OO PHP code. I didn't claim userspace class usage

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

2008-09-19 Thread Marcus Boerger
Hello Ionut, a Friend suggested to replace it with a Euro sign, so that PHP code gets worth more :-) marcus Thursday, September 18, 2008, 8:30:37 PM, you wrote: Actually, I somehow understand what he wants, considering we'll soon have lambdas and closures. I mean, in case of javascript a

Re: [PHP-DEV] [PATCH] allow T_INLINE_HTML before T_NAMESPACE

2008-09-13 Thread Marcus Boerger
Hello Greg, Friday, September 12, 2008, 11:35:11 PM, you wrote: Marcus Boerger wrote: Hello Greg, please don't OK. Nice working with you Marcus, this is high class stuff. I'm glad to see the work I'm doing is taken so seriously. Args, sorry if you got this wrong. I think you did some

Re: [PHP-DEV] [PATCH] allow T_INLINE_HTML before T_NAMESPACE

2008-09-12 Thread Marcus Boerger
Hello Greg, please don't. marcus Friday, September 12, 2008, 9:11:39 PM, you wrote: Hi, This is a simple patch that allows files like this: main.php: html head titletemplate example/title /head /html body ?php namespace my::template; // stuff ? /body to work without

Re: [PHP-DEV] 5.3 Backwards Compatibility

2008-09-11 Thread Marcus Boerger
Hello Lester, Wednesday, September 10, 2008, 7:43:25 PM, you wrote: Marcus Boerger wrote: Hello Lester, Another major concern here since maintaining BC with *PHP4* is still an unfortunate current requirement in the field is what happens when PEAR actually uses namespace and other 5.3 only

Re: [PHP-DEV] 5.3 Backwards Compatibility

2008-09-10 Thread Marcus Boerger
Hello Lester, Tuesday, September 9, 2008, 6:05:38 AM, you wrote: While I have loaded 5.3.? changing any of my existing code base to remove warnings is not likely to happen any time soon since compatibility with users who are still running older versions of PHP still needs to be maintained.

Re: [PHP-DEV] Re: towards a 5.3 release

2008-09-09 Thread Marcus Boerger
Hello Stanislav, Monday, September 8, 2008, 9:23:09 PM, you wrote: Hi! initial hard work of trying to do something new). Especially in this sense I would recommend all people on this list to make sure they use language that encourages people from coming out of the shadows on this topic,

Re: [PHP-DEV] array and call_user_function

2008-09-08 Thread Marcus Boerger
Hello mr, Monday, September 8, 2008, 6:58:19 PM, you wrote: Hi all, I'm having problems passing an array to the function call_user_function as parameter. This is the code: zval *args[3], *func, *retval; args maust be *** not ** MAKE_STD_ZVAL(func); MAKE_STD_ZVAL(retval);

Re: [PHP-DEV] __call() magic method

2008-08-31 Thread Marcus Boerger
Hello Diogo, Sunday, August 31, 2008, 12:50:15 AM, you wrote: Exactly... Is that normal workings or more like a bugie one? On Sat, Aug 30, 2008 at 10:02 PM, Rasmus Lerdorf [EMAIL PROTECTED] wrote: Cristian Rodríguez wrote: Diogo Neves escribió: Hi all, I'm emailling to ask why __call

Re: [PHP-DEV] alpha2 scheduled

2008-08-30 Thread Marcus Boerger
Hello Stanislav, Friday, August 29, 2008, 10:00:08 PM, you wrote: Hi! Seems like you are answering lot of questions about namespaces lately with that's not how the model was designed. Not really, and it's not the reason, the reason why it wasn't designed that way was explained before and

Re: [PHP-DEV] alpha2 scheduled

2008-08-30 Thread Marcus Boerger
Hello Stanislav, Friday, August 29, 2008, 7:53:02 PM, you wrote: Hi! It wasn't designed to have multiple namespaces at all to begin with. But as You mean multiple namespaces per file, right? Otherwise it sounds kind of silly. Yes, it wasn't designed to have multiple namespaces per file,

Re: [PHP-DEV] alpha2 scheduled

2008-08-29 Thread Marcus Boerger
Hello Stanislav, Thursday, August 28, 2008, 7:43:04 PM, you wrote: Hi! I'm really sorry, but I have to ask. Since you can detect that this is a nested namespace, why can't we allow it? Because that's not how model was designed and it creates all kind of It wasn't designed to have multiple

Re: [PHP-DEV] alpha2 scheduled

2008-08-27 Thread Marcus Boerger
Hello Hannes, Wednesday, August 27, 2008, 8:32:41 PM, you wrote: On Tue, Aug 26, 2008 at 18:27, Lukas Kahwe Smith [EMAIL PROTECTED] wrote: - Curly braces support for namespaces (Marcus, not ready for alpha2) Why not? I thought I saw a patch for this on the list recently (which allowed both

Re: [PHP-DEV] php-cgi: cgi_main.c = max_requests = 500?

2008-08-24 Thread Marcus Boerger
Hello Guido, Sunday, August 24, 2008, 3:51:19 PM, you wrote: Hi all, I am new to PHP and to this forum. I was testing my webserver with PHP and found out that after 500 requests the php-cgi process finished (without cores). I ran it with valgrind and no memory leaks :). I thought it

Re: [PHP-DEV] Annotations Request

2008-08-20 Thread Marcus Boerger
Hello Volodymyr, Tuesday, August 19, 2008, 3:54:16 PM, you wrote: Hi, Is there a chance to have annotations like in Java or like .NET attributes? Now, I use Java Annotations emulation, through Reflections and PHPDoc blocks. Example: /** Annotation One*/ class DemoAnnotation1 extends

Re: [PHP-DEV] [PATCH] Allow mixed $initial in array_reduce

2008-08-17 Thread Marcus Boerger
Hello Christian, patch looks good to me :-) marcus Saturday, August 16, 2008, 3:56:27 PM, you wrote: ? ext/standard/tests/x Index: ext/standard/array.c === RCS file: /repository/php-src/ext/standard/array.c,v retrieving

Re: [PHP-DEV] PHP 5.3 Questions

2008-08-17 Thread Marcus Boerger
Hello Ryan, Sunday, August 17, 2008, 7:45:13 PM, you wrote: Hi all, I just wanted some input from this list. I'm working on a project using the latest snaps of 5.3. There are some features that I need for this project, such as LSB. I've been running into some WTF's and issues with new

Re: [PHP-DEV] __getStatic

2008-08-15 Thread Marcus Boerger
Hello Timm, Friday, August 15, 2008, 12:44:19 AM, you wrote: Hi again, Attached you'll find an incomplete patch against PHP_5_3 to add this functionality. If you like it let me know and I can finish it. Darn, seems the list didn't like my text/plain attachment. Well, here we go:

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-14 Thread Marcus Boerger
Hello Stanislav, Thursday, August 14, 2008, 12:25:35 AM, you wrote: Hi! I think Marcus is talking about files that are included that do not specify a namespace explicitly. In this situation the context does matter. No it does not. Would anybody check what they are talking about before

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-14 Thread Marcus Boerger
Hello Guilherme, Thursday, August 14, 2008, 3:37:17 AM, you wrote: I read parts of the thread and I'm curious about a situation that seems Marcus' patch will deny. It seems that it'll be denied the possibility to require/include a file inside of a method of a class/function inside a

Re: [PHP-DEV] Inconsistencies in 5.3

2008-08-14 Thread Marcus Boerger
Hello Rasmus, Thursday, August 14, 2008, 7:36:29 AM, you wrote: Larry Garfield wrote: I would also note that include up front and have a good autoload scheme works great if you are writing all classes. If you're trying to use namespaces and functions, there is no autoload. That makes the

  1   2   3   4   5   6   7   8   9   10   >