RE: [PHP-DEV] Re: strrev() impl - Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-08-22 Thread Tex Texin
One more comment- We should take into account that most data will not use combining characters and should optimize for that case. Most text will consist of solely characters with combining class = 0. We can therefore scan backwards, copying characters while cc=0. Only if we see a non-zero cc do

RE: [PHP-DEV] Re: strrev() impl - Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-08-22 Thread Tex Texin
Or use the breakiterator function. Also allows for locale differences and some special cases. http://icu.sourceforge.net/apiref/icu4c/classBreakIterator.html#_details Although we might prefer it to be locale independent. Separately, I was wondering if we should create a variation of the explode

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Marcus Boerger
Hello George, Monday, August 22, 2005, 10:10:24 PM, you wrote: > On Aug 22, 2005, at 4:02 PM, Derick Rethans wrote: >> On Mon, 22 Aug 2005, George Schlossnagle wrote: >> >> I'm talking about allowing type hints to be trappable by users, without complicating them with exceptions

Re: [PHP-DEV] sync complete

2005-08-22 Thread Rasmus Lerdorf
Greg Beaver wrote: > I just synced php-src/pear (PHP_5_0/PHP_5_1/PHP_4_4) with pear-core > (PEAR_1_3). May god bring the day when this is no longer necessary > sooner rather than later. We'll get there. But we can't kill the 5.0 tree until we have a 5.1 release. -Rasmus -- PHP Internals - PHP

[PHP-DEV] sync complete

2005-08-22 Thread Greg Beaver
Hi, I just synced php-src/pear (PHP_5_0/PHP_5_1/PHP_4_4) with pear-core (PEAR_1_3). May god bring the day when this is no longer necessary sooner rather than later. Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Markus Fischer
Zeev Suraski wrote: At 20:53 22/08/2005, Marcus Boerger wrote: > So in that case, the implementation in zend_error_cb() should simply call > the user error handler if it's available, or treat it as if it's E_ERROR if > there is no user error handler. Isn't an E_ERROR by default good enough o

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Marcus Boerger
Hello Zeev, Monday, August 22, 2005, 11:26:12 PM, you wrote: > At 23:10 22/08/2005, George Schlossnagle wrote: > My original proposal (at least as I recall it), was to move >>irrecoverable errors to something like >> >>E_UNRECOVERABLE_ERROR >> >>or >> >>E_FATAL >> >>Leaving current errors as E_ER

Re: [PHP-DEV] 5.0.5 download URL

2005-08-22 Thread Greg Beaver
Edin Kadibasic wrote: >Greg Beaver wrote: > > >>Edin Kadribasic wrote: >> >> >> >>>The Windows binaries are available at: >>> >>>http://downloads.php.net/edink/php-5.0.5RC1-Win32.zip >>> >>> >>I spoke too soon, Archive_Tar-1.3.1.tgz is missing from the >>go-pear-bundle directory, becau

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Zeev Suraski
At 23:10 22/08/2005, George Schlossnagle wrote: My original proposal (at least as I recall it), was to move irrecoverable errors to something like E_UNRECOVERABLE_ERROR or E_FATAL Leaving current errors as E_ERROR (since most are recoverable, imho) I like this idea except it would be a bit

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-22 Thread Jani Taskinen
On Mon, 22 Aug 2005, Mikko Rantalainen wrote: upload *before* it has been completed. Make it possible to handle *big* uploads without requiring uploaded file to fit the memory. Handle multiple This was changed in PHP 4.2.0, the file uploading code was rewritten to not load the whole fi

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Andrei Zmievski
E_CATCHY catchy enough or you? -Andrei On Aug 22, 2005, at 1:02 PM, Derick Rethans wrote: On Mon, 22 Aug 2005, George Schlossnagle wrote: I'm talking about allowing type hints to be trappable by users, without complicating them with exceptions. I'm proposing a new error level, which behav

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread George Schlossnagle
On Aug 22, 2005, at 4:02 PM, Derick Rethans wrote: On Mon, 22 Aug 2005, George Schlossnagle wrote: I'm talking about allowing type hints to be trappable by users, without complicating them with exceptions. I'm proposing a new error level, which behaves like E_ERROR, except it can be cau

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Zeev Suraski
At 22:54 22/08/2005, George Schlossnagle wrote: This sounds good to me. We talked about this briefly a year or so ago, in reference to being able to convert E_ERROR errors to exceptions in an extension. Exactly. Zeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, vis

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Zeev Suraski
At 23:02 22/08/2005, Derick Rethans wrote: On Mon, 22 Aug 2005, George Schlossnagle wrote: > > I'm talking about allowing type hints to be trappable by users, without > > complicating them with exceptions. I'm proposing a new error level, which > > behaves like E_ERROR, except it can be caugh

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Derick Rethans
On Mon, 22 Aug 2005, George Schlossnagle wrote: > > I'm talking about allowing type hints to be trappable by users, without > > complicating them with exceptions. I'm proposing a new error level, which > > behaves like E_ERROR, except it can be caught using a userland error > > handler, for those

Re: [PHP-DEV] 5.0.5 download URL

2005-08-22 Thread Edin Kadibasic
Greg Beaver wrote: > Edin Kadribasic wrote: > >>The Windows binaries are available at: >> >>http://downloads.php.net/edink/php-5.0.5RC1-Win32.zip > > > I spoke too soon, Archive_Tar-1.3.1.tgz is missing from the > go-pear-bundle directory, because of a mistake in go-pear-list.php (my > fault) wh

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread George Schlossnagle
On Aug 22, 2005, at 3:50 PM, Zeev Suraski wrote: At 20:53 22/08/2005, Marcus Boerger wrote: > So in that case, the implementation in zend_error_cb() should simply call > the user error handler if it's available, or treat it as if it's E_ERROR if > there is no user error handler. Isn't an

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-22 Thread George Schlossnagle
On Aug 22, 2005, at 2:08 PM, Stanislav Malyshev wrote: MB>>> * Anonymous functions. The real stuff, not just some odd string MB>>> passed to create_function(). MB>> MB>>There were some others already asking for this, maybe we should at least MB>>give it a thought if it is doable at all, anyb

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Zeev Suraski
At 20:53 22/08/2005, Marcus Boerger wrote: > So in that case, the implementation in zend_error_cb() should simply call > the user error handler if it's available, or treat it as if it's E_ERROR if > there is no user error handler. Isn't an E_ERROR by default good enough or do you want exceptions

Re: [PHP-DEV] 5.0.5RC1 rolled

2005-08-22 Thread Wez Furlong
I think I saw a configure related problem with the sqlite extension recently. I won't be able to check on this until thursday, maybe wednesday if things go well during the week. If someone else has time before I do, can they try building sqlite as a shared extension to verify if there was a proble

Re: [PHP-DEV] PHP 5.1RC1 on Solaris

2005-08-22 Thread Wez Furlong
On 8/22/05, Uwe Schindler <[EMAIL PROTECTED]> wrote: > /bin/sh: test: argument expected > gmake: [test] Error 1 (ignored) > [EMAIL PROTECTED]:~/install/php-5.1.0RC1$ > > (I think, this is the old problem with Solaris' test, that we fall > into every time... :) ) Changing a "test -e" to a "test -f

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-22 Thread Stanislav Malyshev
l>>i think that create_function() does an eval() at runtime, which is more l>>expensive. anonymous functions would be handled in the compiler. Well, since function code is compiled once anyway, it shouldn't matter much when it is compiled - before first opcode was executed or after that. -- St

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-22 Thread l0t3k
i think that create_function() does an eval() at runtime, which is more expensive. anonymous functions would be handled in the compiler. l0t3k "Stanislav Malyshev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just out of curiosity, what's bad in create_function and how "real" on

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-22 Thread l0t3k
i think that create_function() does an eval() at runtime, which is more expensive. anonymous functions would be handled in the compiler. l0t3k "Stanislav Malyshev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just out of curiosity, what's bad in create_function and how "real"

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-22 Thread Stanislav Malyshev
MB>>> * Anonymous functions. The real stuff, not just some odd string MB>>> passed to create_function(). MB>> MB>>There were some others already asking for this, maybe we should at least MB>>give it a thought if it is doable at all, anybody? Just out of curiosity, what's bad in create_function an

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-22 Thread Marcus Boerger
Hello Mikko, Monday, August 22, 2005, 4:09:31 PM, you wrote: > Rasmus Lerdorf wrote: >> Since we are breaking a lot of stuff in 6.0, at least with >> Unicode_semantics=On I am wondering if it may not be time to break some > +100 for Unicode support >> 1. Remove register_globals completely > +1

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Marcus Boerger
Hello Zeev, Monday, August 22, 2005, 1:38:54 PM, you wrote: > At 14:34 22/08/2005, Derick Rethans wrote: >>On Mon, 22 Aug 2005, Zeev Suraski wrote: >> >> > >It seems most are for >> > >another type of error that are fatal if not "handled" in the user error >> > >handler. There is just one thing..

Re: [PHP-DEV] Re: 5.0.5RC1 rolled

2005-08-22 Thread Zeev Suraski
At 18:45 22/08/2005, Rasmus Lerdorf wrote: Sebastian Bergmann wrote: > Zeev Suraski schrieb: > >>If there are no stoppers I'd like to release it towards the end of the >>week. > > > Maybe the bundled PCRE should be updated: > http://www.securitytracker.com/alerts/2005/Aug/1014744.html Yes, and

[PHP-DEV] Re: strrev() impl - Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-08-22 Thread Andrei Zmievski
Not quite. The base characters have a combining class of 0, while for the combining ones that value is > 0 but not necessarily the same. For example: a +ˉ + ˳ (0 + 230 + 220) So the code needs to capture sequences starting with class of 0 and followed by one or more chars with class > 0:

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Derick Rethans
On Mon, 22 Aug 2005, Andrei Zmievski wrote: > I thought I made that patch a while ago? > > zend.c: >if (retval) { > if (Z_TYPE_P(retval) == IS_BOOL && Z_LVAL_P(retval) == 0) > { > zend_error_cb(type, error_filename, error_lineno, > forma

[PHP-DEV] compile error with imap extension on php5.1-dev

2005-08-22 Thread Matt Selsky
I'm building the imap extension as a shared library on Solaris 9 with gcc 2.95.2 and imap-2004e. I'm running configure as follows: $ ./configure --disable-all \ --with-imap=shared,/tmp/imap-2004e \ --with-imap-ssl=/opt/local This works fine with php5.0-dev as of a few minutes ag

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Andrei Zmievski
I thought I made that patch a while ago? zend.c: if (retval) { if (Z_TYPE_P(retval) == IS_BOOL && Z_LVAL_P(retval) == 0) { zend_error_cb(type, error_filename, error_lineno, format, args); } zval_

Re: [PHP-DEV] 5.0.5 download URL

2005-08-22 Thread Greg Beaver
Edin Kadribasic wrote: > The Windows binaries are available at: > > http://downloads.php.net/edink/php-5.0.5RC1-Win32.zip I spoke too soon, Archive_Tar-1.3.1.tgz is missing from the go-pear-bundle directory, because of a mistake in go-pear-list.php (my fault) which I have just corrected. Sorry a

Re: [PHP-DEV] Re: 5.0.5RC1 rolled

2005-08-22 Thread Pierre
On Mon, 22 Aug 2005 11:04:33 -0500 [EMAIL PROTECTED] (Greg Beaver) wrote: > P.S. if anyone else has the time now, they should simply sync > package-PEAR.xml, go-pear-list.php, and XML_RPC-1.4.0.tar from the > PHP_5_1 branch and it should be good to go. Don't forget to remove > XML_RPC-1.3.1.tar

Re: [PHP-DEV] 5.0.5 download URL

2005-08-22 Thread Greg Beaver
Edin Kadribasic wrote: > The Windows binaries are available at: > > http://downloads.php.net/edink/php-5.0.5RC1-Win32.zip > http://downloads.php.net/edink/pecl-5.0.5RC1-Win32.zip These contain updated PEAR bundles and are good to go from PEAR's end. Greg -- PHP Internals - PHP Runtime Developm

Re: [PHP-DEV] Re: 5.0.5RC1 rolled

2005-08-22 Thread Greg Beaver
Rasmus Lerdorf wrote: > Sebastian Bergmann wrote: > >>Zeev Suraski schrieb: >> >> >>>If there are no stoppers I'd like to release it towards the end of the >>>week. >> >> >> Maybe the bundled PCRE should be updated: >> http://www.securitytracker.com/alerts/2005/Aug/1014744.html > > > Yes, and th

Re: [PHP-DEV] Re: 5.0.5RC1 rolled

2005-08-22 Thread Rasmus Lerdorf
Sebastian Bergmann wrote: > Zeev Suraski schrieb: > >>If there are no stoppers I'd like to release it towards the end of the >>week. > > > Maybe the bundled PCRE should be updated: > http://www.securitytracker.com/alerts/2005/Aug/1014744.html Yes, and the whole reason for this release is to s

[PHP-DEV] Re: 5.0.5RC1 rolled

2005-08-22 Thread Sebastian Bergmann
Zeev Suraski schrieb: > If there are no stoppers I'd like to release it towards the end of the > week. Maybe the bundled PCRE should be updated: http://www.securitytracker.com/alerts/2005/Aug/1014744.html -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0

[PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-22 Thread Mikko Rantalainen
Rasmus Lerdorf wrote: Since we are breaking a lot of stuff in 6.0, at least with Unicode_semantics=On I am wondering if it may not be time to break some +100 for Unicode support 1. Remove register_globals completely +1 2. Remove magic_quotes_* +100 (any "magic" is bad in the long run, s

Re: [PHP-DEV] 5.0.5 download URL

2005-08-22 Thread Edin Kadribasic
The Windows binaries are available at: http://downloads.php.net/edink/php-5.0.5RC1-Win32.zip http://downloads.php.net/edink/pecl-5.0.5RC1-Win32.zip Edin Zeev Suraski wrote: > By popular demand, you can now get these binaries at > http://downloads.php.net/zeev/php-5.0.5RC1.tar.gz > http://downlo

[PHP-DEV] PHP 5.1RC1 on Solaris

2005-08-22 Thread Uwe Schindler
Hello folks, came back from holidays and started to test RC1 of PHP5.1 on our solaris box, two things: The first: == [EMAIL PROTECTED]:~/install/php-5.1.0RC1$ gmake test Build complete. (It is safe to ignore warnings about tempnam and tmpnam). /bin/sh: test: argument expected gmake:

[PHP-DEV] CVS Account Request: soywiz

2005-08-22 Thread Carlos Ballesteros Velasco
I want to help with spanish translation. I need access to "/phpdoc-es" -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] 5.0.5 download URL

2005-08-22 Thread Zeev Suraski
By popular demand, you can now get these binaries at http://downloads.php.net/zeev/php-5.0.5RC1.tar.gz http://downloads.php.net/zeev/php-5.0.5RC1.tar.bz2 as well. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Zeev Suraski
At 14:34 22/08/2005, Derick Rethans wrote: On Mon, 22 Aug 2005, Zeev Suraski wrote: > >It seems most are for > >another type of error that are fatal if not "handled" in the user error > >handler. There is just one thing... how do we signal it back from the > >handler? Currently there is no defin

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Derick Rethans
On Mon, 22 Aug 2005, Zeev Suraski wrote: > >It seems most are for > >another type of error that are fatal if not "handled" in the user error > >handler. There is just one thing... how do we signal it back from the > >handler? Currently there is no defined return value for the user defined > >error

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Zeev Suraski
At 12:53 22/08/2005, Derick Rethans wrote: On Thu, 11 Aug 2005, Derick Rethans wrote: > On Thu, 11 Aug 2005, Zeev Suraski wrote: > > > You mean it shouldn't be able to stop the application, or that the application > > should be able to prevent this error from stopping it? If it's the latter,

[PHP-DEV] strrev() impl - Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-08-22 Thread Rolland Santimano
--- Andrei Zmievski <[EMAIL PROTECTED]> wrote: > 2) Combining sequences are not respected. We can't swap base > character and the combining chars that follow it because the string > may be concatenated with something else and the combining chars may > end up affecting something else. So we need to

[PHP-DEV] 5.0.5RC1 rolled

2005-08-22 Thread Zeev Suraski
www.php.net/~zeev/php-5.0.5RC1.tar.gz www.php.net/~zeev/php-5.0.5RC1.tar.bz2 If there are no stoppers I'd like to release it towards the end of the week. Zeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] type hinting throwing a fatal error

2005-08-22 Thread Derick Rethans
On Thu, 11 Aug 2005, Derick Rethans wrote: > On Thu, 11 Aug 2005, Zeev Suraski wrote: > > > You mean it shouldn't be able to stop the application, or that the > > application > > should be able to prevent this error from stopping it? If it's the latter, > > then it would be possible. If it's t

[PHP-DEV] PHP 5 Bug Summary Report

2005-08-22 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (370 total including feature requests) ===[*General Issues]== 27372 Verified parse error loading browscap.ini at apache startup (new parser required) ===

[PHP-DEV] PHP 4 Bug Summary Report

2005-08-22 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (650 total including feature requests) ===[Apache2 related]== 34149 Feedback Hang (100% CPU) in malloc_consolidate 34176 Feedback apache2handler crashes parent proc