Re: [PHP-DEV] --enable-zend-multibyte

2010-11-22 Thread Dmitry Stogov
Hi Christopher, Right now, I'm working on patch to completely remove compile-time "--enable-zend-multibyte" and replacing it with run-time "zend.multibyte". I think the ZEND_MULTIBYTE constant will became useless. I hope I'll post the patch later today. Thanks. Dmitry. Christopher Jones w

Re: [PHP-DEV] php gettext bindtextdomain behavior

2010-11-22 Thread Gerry Reno
bindtextdomain is badly broken in PHP. It is not implemented the same as the standard GNU implementation or any of the other language implementations such as python for example. And it has crippled the ability to do nested access to different gettext translation stores because you cannot quer

Re: [PHP-DEV] Hold off 5.4

2010-11-22 Thread Stas Malyshev
Hi! Given the current state of trunk, I think 5.4 release process should not begin tomorrow (alpha or whatever other status). There are numerous identified issues that we need to fix before even think to begin with a release. For example: I agree that it's better to discuss RC process RFC befo

[PHP-DEV] Hold off 5.4

2010-11-22 Thread Felipe Pena
Given the current state of trunk, I think 5.4 release process should not begin tomorrow (alpha or whatever other status). There are numerous identified issues that we need to fix before even think to begin with a release. For example: - type hinting (or strict hinting) - no consensus - the RFCs ar

[PHP-DEV] [RFC] Release Process

2010-11-22 Thread Felipe Pena
Hi, With the recent chaos in the way we begin and ended releases, we would like to propose a clean way to deal with releases and related decisions: [1] PHP releases have always been done spontaneously, in a somehow chaotic way. Individual(s) decided when a release will happen and what could or co

Re: [PHP-DEV] --enable-zend-multibyte

2010-11-22 Thread Gustavo Lopes
On Mon, 22 Nov 2010 22:20:50 -, Christopher Jones wrote: Actually, it doesn't have compile-time dependencies, so it's probably make sense to remove --enable-zend-multibyte completely. Another ease-of-use simplification prior to releasing 5.3.4 is to roll back the addition of ZEND_MUL

Re: [PHP-DEV] --enable-zend-multibyte

2010-11-22 Thread Christopher Jones
On 11/19/2010 06:16 AM, Dmitry Stogov wrote: Derick Rethans wrote: On Thu, 18 Nov 2010, Christopher Jones wrote: On 11/18/2010 06:26 AM, Dmitry Stogov wrote: The proposed patch allows compiling PHP with --enable-zend-multibyte and then enable or disable multibyte support at run-time using

Re: [PHP-DEV] SVN Account Request: eyalt

2010-11-22 Thread Patrick ALLAERT
Eyal provided already a fair number of contributions/remarks on the php-qa ML. Regards, -- Patrick Allaert --- http://code.google.com/p/peclapm/ - Alternative PHP Monitor 2010/11/21 Eyal Teutsch : > mainly submitting PHPTs fixes. > > -- > PHP Internals - PHP Runtime Development Mailing List > T

Re: [PHP-DEV] Traits and static methods

2010-11-22 Thread Stefan Marr
Hi Simas: On 22 Nov 2010, at 13:47, Simas Toleikis wrote: > Would it work if instance is saved inside a local static var like: > > public static function getInstance() { > > static $instance = NULL; > > if (is_null($instance)) { >$instance = new self(); > } > > return $instance; > } ht

Re: [PHP-DEV] Traits and static methods

2010-11-22 Thread Simas Toleikis
Hi Sebastian, This is not really a good example as the getInstance() method alone is > not sufficient for a reusable implementation of the Singleton pattern. > Yes, it was just a pseudo-code and not a true singleton implementation. > A trait for a reusable implementation of the Singleton pa

Re: [PHP-DEV] Traits and static methods

2010-11-22 Thread Sebastian Bergmann
Am 16.11.2010 18:46, schrieb Simas Toleikis: > p.s. a Singleton-Trait implementation could look like: > > trait Singleton { > public static function getInstance() { ... } > } > > class Child extends Parent { > use Singleton; > } > > Child::getInstance(); This is not really a good example a