[PHP-DEV] [PATCH] Allow for using external liboniguruma

2008-05-04 Thread Christian Hoffmann
Heya, as a distribution we usually aim at using system libraries instead of bundled ones, both for security and maintainance reasons. PHP bundles liboniguruma (ext/mbstring/oniguruma) and currently does not allow for using an external copy of the lib. I hacked up a patch [1] which adds a new co

[PHP-DEV] [PATCH] asinh() support for Windows

2008-05-04 Thread Kalle Sommer Nielsen
Hey Internals I've made a patch against the latest 5.2 that implements support for asinh() on Windows, patch available at: http://www.kalleload.com/public/asinh.diff I havn't edited the asinh test but it should be pretty simple to do by removing the --SKIPIF-- part Cheers, Kalle Sommer Ni

Re: [PHP-DEV] Float comparison

2008-05-04 Thread Marcus Boerger
Hello Todd, please read that article to get at least a minimum understanding of what float values are. Speaking of comparisons and floating point values you might want to consider using fixed point values. That is you decide how many digits you want for your fractions. Another option is to use t

Re: [PHP-DEV] Float comparison

2008-05-04 Thread Edward Z. Yang
Marcus Boerger wrote: > Maybe you should have a look into PHP's bcmath extension. PHP's arbitrary precision math handlers are woefully inadequate. I mean, you can't even take the nth root or a logarithm with bcmath! (gmp isn't much better). (However, this has nothing to do with the floating point

[PHP-DEV] Removal of unicode_semantics

2008-05-04 Thread Scott MacVicar
Hi everyone, We've discussed this a few times in the past and it's time to make a final decision about its removal. I think most people have agreed that this is the way forward but no one has produced a patch. I have a student working on unicode conversion for the Google Summer of Code an

RE: [PHP-DEV] Float comparison

2008-05-04 Thread Jonathan Bond-Caron
Thanks for all the feedback, My questions and the title of this thread should probably be rephrased, I understand now that changing the "float comparison" would be a "fatal flaw in the language" and apologies for ever mentioning it. Before I ask any other questions, I would like to understand ho

Re: [PHP-DEV] Removal of unicode_semantics

2008-05-04 Thread Tomas Kuliavas
> We've discussed this a few times in the past and it's time to make a > final decision about its removal. > > I think most people have agreed that this is the way forward but no > one has produced a patch. I have a student working on unicode > conversion for the Google Summer of Code and this woul

Re: [PHP-DEV] Removal of unicode_semantics

2008-05-04 Thread Derick Rethans
On Sun, 4 May 2008, Tomas Kuliavas wrote: > > We've discussed this a few times in the past and it's time to make a > > final decision about its removal. > > > > I think most people have agreed that this is the way forward but no > > one has produced a patch. I have a student working on unicode > >

Re: [PHP-DEV] Removal of unicode_semantics

2008-05-04 Thread Scott MacVicar
Tomas Kuliavas wrote: We've discussed this a few times in the past and it's time to make a final decision about its removal. I think most people have agreed that this is the way forward but no one has produced a patch. I have a student working on unicode conversion for the Google Summer of Code

Re: [PHP-DEV] Removal of unicode_semantics

2008-05-04 Thread Alexey Zakhlestin
On Sun, May 4, 2008 at 8:34 PM, Tomas Kuliavas <[EMAIL PROTECTED]> wrote: > > We've discussed this a few times in the past and it's time to make a > > final decision about its removal. > > > > I think most people have agreed that this is the way forward but no > > one has produced a patch. I ha

Re: [PHP-DEV] Removal of unicode_semantics

2008-05-04 Thread Jeremy Privett
Tomas Kuliavas wrote: We've discussed this a few times in the past and it's time to make a final decision about its removal. I think most people have agreed that this is the way forward but no one has produced a patch. I have a student working on unicode conversion for the Google Summer of Code

Re: [PHP-DEV] Float comparison

2008-05-04 Thread Stefan Walk
If someone could point me to the float->string code, I'd really appreciate http://lxr.php.net/source/ZendEngine2/zend_operators.c#1075 Regards, Stefan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Removal of unicode_semantics

2008-05-04 Thread Kalle Sommer Nielsen
Hey Scott As the most others already have posted, then from the php developers point it would be stupid to maintain two versions of the same function unless you wrap it all into a function that does it by itself. And yes zend.ze1_compatibility_mode was a major failure. +1 for removal Kalle --

Re: [PHP-DEV] Removal of unicode_semantics

2008-05-04 Thread Tomas Kuliavas
>> > We've discussed this a few times in the past and it's time to make a >> > final decision about its removal. >> > >> > I think most people have agreed that this is the way forward but no >> > one has produced a patch. I have a student working on unicode >> > conversion for the Google Summer of

RE: [PHP-DEV] Float comparison

2008-05-04 Thread Jonathan Bond-Caron
Thanks, I made some tests after looking at http://lxr.php.net/source/php-src/main/spprintf.c#712 At first glance, I am utterly confused, ini_set('precision', 100); setlocale(LC_ALL, 'fr_FR.UTF-8'); echo 0.3; // 0,2999888977697537484345957636833190917968

RE: [PHP-DEV] Float comparison

2008-05-04 Thread Derick Rethans
On Sun, 4 May 2008, Jonathan Bond-Caron wrote: > Thanks, I made some tests after looking at > http://lxr.php.net/source/php-src/main/spprintf.c#712 > > At first glance, I am utterly confused, > > ini_set('precision', 100); > setlocale(LC_ALL, 'fr_FR.UTF-8'); > echo 0.3;