Re: [PHP-DEV] Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-30 Thread Pierre Joye
hi, On Tue, Dec 30, 2008 at 1:00 AM, Kalle wrote: > Hi Ilia > > Den 30/12/2008 kl. 00.30 skrev Ilia Alshanetsky : > >> Here is a pretty simple patch that will provide the indicated function. If >> no one objects I'll commit it to 5.3/6 branches in the next day or two. >> >> > > You should use ze

Re: [PHP-DEV] Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-30 Thread Antony Dovgal
On 30.12.2008 03:24, Ilia Alshanetsky wrote: > There is nothing wrong with using WRONG_PARAM_COUNT, it worked in the > past and still works fine and quite a bit of code still uses it. True, but we're trying to get rid of it, so please use new parameter parsing API when adding new functions. Tha

Re: [PHP-DEV] Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-30 Thread Ilia Alshanetsky
The gethostname() is a POSIX function and therefor should be available on windows as well as any other posix complaint system. The php_uname() function uses a radically different code between Win32 and Linux and therefor is not guaranteed to return the same equivalents, if win32 supports (w

Re: [PHP-DEV] Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-30 Thread Ilia Alshanetsky
What is the benefit of the new API, documents better, has a longer name, helps some fuzzing suit to determine if functions take args or not? Also, is this documented anywhere? On 30-Dec-08, at 4:31 AM, Antony Dovgal wrote: On 30.12.2008 03:24, Ilia Alshanetsky wrote: There is nothing wro

Re: [PHP-DEV] Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-30 Thread Antony Dovgal
On 30.12.2008 18:15, Ilia Alshanetsky wrote: > What is the benefit of the new API, documents better, has a longer > name, helps some fuzzing suit to determine if functions take args or > not? It produces much better & verbose error messages error messages. Take a look at these for example: 5_3

Re: [PHP-DEV] Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-30 Thread Ilia Alshanetsky
On 30-Dec-08, at 10:21 AM, Antony Dovgal wrote: On 30.12.2008 18:15, Ilia Alshanetsky wrote: What is the benefit of the new API, documents better, has a longer name, helps some fuzzing suit to determine if functions take args or not? It produces much better & verbose error messages error mes

Re: [PHP-DEV] Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-30 Thread Brian A. Seklecki
On Mon, 29 Dec 2008, Ilia Alshanetsky wrote: Here is a pretty simple patch that will provide the indicated function. If no one objects I'll commit it to 5.3/6 branches in the next day or two. This patch builds cleanly against 5.2.8 in FreeBSD ports! I'll shoot you an e-mail from my work acco

[PHP-DEV] [PATCH] Bug #46806 - mb_strimwidth

2008-12-30 Thread Henrique M. Decaria
Hello guys, Looking in the subject mentioned bug report, it seems that the attached patch might do the trick and make the mb_strimwidth() function work as explained in the php manual (http://br2.php.net/mb_strimwidth). According to it, the function should trim up to the defined width and append th