Re: [PHP-DEV] Simple Namespace Proposal

2007-07-21 Thread Alexey Zakhlestin
On 7/21/07, Guilherme Blanco <[EMAIL PROTECTED]> wrote: I'll give you an example... PHP Doctrine package has a lot of files, hundreds... there is a way to compile it in a single file, to save some memory usage for including these files. Including a single file is better than include hundreds, as

[PHP-DEV] packaged extensions versions on pecl4win: initial source release

2007-07-21 Thread Gaetano Giunta
I have just uploaded my patched pecl4win repo to http://gggeek.altervista.org/sw/peclwin/ the code is still far for complete (eg php 4 build script is not finished), but at least I added a dirt quick readme and a sql migration script (not tested ;) for existing pecl4win installs. building pa

RE: [PHP-DEV] Simple Namespace Proposal

2007-07-21 Thread Jeremy Privett
> For 100th time, import Foo is a no-op. I'm thinking about prohibiting it > at all... If you do import Foo::bar you'll get an error if Bar is already > defined. I'm still trying to figure out why you think this is an acceptable implementation of namespaces. This isn't namespaces at all. This is

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-21 Thread Stanislav Malyshev
1 - The official namespace support will not use curly braces? Never or can be in the future? Nobody knows what will be is the future. As of now, the autors do not see a compelling reason to support more than once namespace per file. I suggest to get things standard-ized. If a class uses brac

[PHP-DEV] [PATCH] str_pad allows pad_length to be negative

2007-07-21 Thread Mattias Bengtsson
As stated in the manual for str_pad() "If the value of pad_length is negative or less than the length of the input string, no padding takes place.". By using a very low negative value it is possible to bypass the check. Please see attachment. Cheers, Mattias Bengtsson Index: ext/standard/string.

Re: [PHP-DEV] Alteration of PHP-SNMP to Use Net-SNMP on Windows instead of UCD-SNMP

2007-07-21 Thread Pierre
On 7/21/07, Larry Adams <[EMAIL PROTECTED]> wrote: All, I would like to change the build file for Windows to utilize Net-SNMP instead of Ucd-SNMP and would like to know which branches I should be updating: PHP_5_2/HEAD. Please advise. Ideally both, but a patch for one of them is good too. Ch

RE: [PHP-DEV] Simple Namespace Proposal

2007-07-21 Thread Jeremy Privett
> 3 - How will PHP behavior on a situation that you have a naming conflict? > > Something like... > > class Bar { ... } > > namespace Foo { > class Bar { ... } > } > > import Foo; > > $b = new Bar(); Well, PHP's namespaces don't behave like every other language I've ever used that supports

[PHP-DEV] Alteration of PHP-SNMP to Use Net-SNMP on Windows instead of UCD-SNMP

2007-07-21 Thread Larry Adams
All, I would like to change the build file for Windows to utilize Net-SNMP instead of Ucd-SNMP and would like to know which branches I should be updating: PHP_5_2/HEAD. Please advise. Regards, Larry Adams www.cacti.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe,

Re: [PHP-DEV] Simple Namespace Proposal

2007-07-21 Thread Guilherme Blanco
Sorry for posting it so late, but I would like to clarify the things in my head. I hope a final post with compiled definitions and final decisions is useful for other people interested in this new functionality. 1 - The official namespace support will not use curly braces? Never or can be in the

[PHP-DEV] Socket constants

2007-07-21 Thread Nicolas Bérard-Nault
Is there a reason the MSG_EOR and MSG_EOF constants are not registered in PHP ? If not, could someone apply the attached patch (against HEAD). Regards, Nicolas. Patch below: Index: sockets.c === RCS file: /repository/php-src/ext/so

Re: [PHP-DEV] How to Obtain CVS Password

2007-07-21 Thread Rasmus Lerdorf
Larry Adams wrote: > Hi All, > > I have two questions they are as follows: > > 1) I requested and receive both DEV and DOC access and CVS rights to the > PHP-SNMP section of the code about 1 year ago and I never received > instructions on how to obtain my default password for making commit's. > 2

[PHP-DEV] How to Obtain CVS Password

2007-07-21 Thread Larry Adams
Hi All, I have two questions they are as follows: 1) I requested and receive both DEV and DOC access and CVS rights to the PHP-SNMP section of the code about 1 year ago and I never received instructions on how to obtain my default password for making commit's. 2) There are several php-snmp bug

Re: [PHP-DEV] [PATCH] LDAP module patch (adding new functionality).

2007-07-21 Thread Ignacio Arenaza
Pierre <[EMAIL PROTECTED]> writes: > I would suggest to open a new "bug" here: > > http://bugs.php.net > > and add the link + explanation in it. Ok, done. It bug #42060. Saludos. Iñaki. -- School of Management Mondragon University 20560 Oñati - Spain +34 943 718009 (ext. 225) GPG Key availab

[PHP-DEV] Namespaces patch backport

2007-07-21 Thread Timm Friebe
Hi, I've backported the namespaces patch to current CVS HEAD. Here it is: http://sitten-polizei.de/php/php5-namespaces.diff I've tested it with the .phpt-tests Dmitry provided. Enjoy:) - Timm -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/uns

Re: [PHP-DEV] CVS Account Request: guenter

2007-07-21 Thread Pierre
On 7/20/07, Guenter Knauf <[EMAIL PROTECTED]> wrote: I would like to maintain the NetWare port of the GD library; Pierre Joye asked me to request an account. Confirmed, please approve this account, I will give him the right karma. Thanks, --Pierre -- PHP Internals - PHP Runtime Development M