Re: [PHP-DEV] ord() on binary strings

2005-09-09 Thread Derick Rethans
On Thu, 8 Sep 2005, Ilia Alshanetsky wrote: > It makes perfect sense to me that ord() would work on binary strings. > When we return an ASCII value we don't limit the range returned, it can > be 1 or 255. So, I see no reason to cripple this function and prevent it > from working on binary data. I

Re: [PHP-DEV] ord() on binary strings

2005-09-09 Thread Derick Rethans
On Thu, 8 Sep 2005, Andi Gutmans wrote: > Did Andrei have a reason besides the docs? Even without IS_UNICODE/IS_BINARY > it sounds like the docs could use tuning anyway, no? Andrei: The docs say "Return ASCII value of character", which doesn't make sense for binary. You can use bin2hex()

[PHP-DEV] "make install" on PHP_5_1 does not work with PEAR

2005-09-09 Thread Sebastian Bergmann
[EMAIL PROTECTED] php-5.1 % make install exit 0; /usr/local/src/php/php-5.1/ext/sqlite/libsqlite/src/parse.y Installing PHP CLI binary:/usr/local/php-5.1/bin/ Installing PHP CLI man page: /usr/local/php-5.1/man/man1/ Installing PEAR environment: /usr/local/php-5.1/lib/php/ Notice

Re: [PHP-DEV] "make install" on PHP_5_1 does not work with PEAR

2005-09-09 Thread Sebastian Bergmann
Sebastian Bergmann schrieb: > Fatal error: Cannot redeclare class pear_validate in No really related, but still: Why is the PEAR_Validate class name lower-cased? -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6

[PHP-DEV] unserialize() & unicode issues

2005-09-09 Thread Antony Dovgal
Hello all. I'm currently working on unicode support in serialize()/unserialize() and stuck with some issues. Here they are: 1) What to do with unserializing serialized unicode strings when unicode_semantics is Off? I presume it's safe to create & return IS_UNICODE in this case ? 2) Classnames

[PHP-DEV] RE: [PHP] Installing APD

2005-09-09 Thread R, Rajesh (STSD)
Hello Every1, I just joined this list. Wanted to know abt the configure.in file.. Can any1 tell me where to look for in configure.in to find out how to change the code generated for "domxml" library includes. Thanks. -- Rajesh R -Original Message- From: Amir Mohammad Saied [mailto:[EMA

Re: [PHP-DEV] "make install" on PHP_5_1 does not work with PEAR

2005-09-09 Thread Greg Donald
On 9/9/05, Sebastian Bergmann <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] php-5.1 % make install > exit 0; /usr/local/src/php/php-5.1/ext/sqlite/libsqlite/src/parse.y > Installing PHP CLI binary:/usr/local/php-5.1/bin/ > Installing PHP CLI man page: /usr/local/php-5.1/man/man1/ > In

Re: [PHP-DEV] ord() on binary strings

2005-09-09 Thread Andrei Zmievski
My argument was that ord() semantics and docs say that it works on _characters_ and this simply does not make sense for the binary strings. If we really want ord() to work on binary type, fine, but we'd better have docs that make sense then. -Andrei On Sep 9, 2005, at 12:09 AM, Derick Ret

Re: [PHP-DEV] unserialize() & unicode issues

2005-09-09 Thread Andrei Zmievski
Yes, serialization is a problem. I would actually advocate putting a marker in the serialized file that indicates what the value of unicode_semantics switch was during the serialization, and if the value is different during deserialization, refuse to load it or start a new session. One real

Re: [PHP-DEV] ord() on binary strings

2005-09-09 Thread Ilia Alshanetsky
Andrei Zmievski wrote: > My argument was that ord() semantics and docs say that it works on > _characters_ and this simply does not make sense for the binary > strings. If we really want ord() to work on binary type, fine, but we'd > better have docs that make sense then. IMHO the docs say char

Re: [PHP-DEV] unserialize() & unicode issues

2005-09-09 Thread Antony Dovgal
On 09.09.2005 17:44, Andrei Zmievski wrote: Yes, serialization is a problem. I would actually advocate putting a marker in the serialized file that indicates what the value of unicode_semantics switch was during the serialization, and if the value is different during deserialization, refuse

Re: [PHP-DEV] unserialize() & unicode issues

2005-09-09 Thread Andrei Zmievski
The problems you encountered are fairly big, I wouldn't just dismiss them. -Andrei On Sep 9, 2005, at 6:58 AM, Antony Dovgal wrote: On 09.09.2005 17:44, Andrei Zmievski wrote: Yes, serialization is a problem. I would actually advocate putting a marker in the serialized file that indicat

RE: [PHP-DEV] ord() on binary strings

2005-09-09 Thread Dmitry Stogov
I don't see any problems with ord() for binary data. String consist from characters and ord() returns the number of character. Binary string consist from bytes and ord() returns value of byte. Dmitry. > -Original Message- > From: Andrei Zmievski [mailto:[EMAIL PROTECTED] > Sent: Friday,

Re: [PHP-DEV] "make install" on PHP_5_1 does not work with PEAR

2005-09-09 Thread Greg Beaver
Greg Donald wrote: > On 9/9/05, Sebastian Bergmann <[EMAIL PROTECTED]> wrote: > >>[EMAIL PROTECTED] php-5.1 % make install >>exit 0; /usr/local/src/php/php-5.1/ext/sqlite/libsqlite/src/parse.y >>Installing PHP CLI binary:/usr/local/php-5.1/bin/ >>Installing PHP CLI man page: /usr/loca

[PHP-DEV] CVS Account Request: jeichorn

2005-09-09 Thread Joshua Eichorn
maintaining pear HTML_AJAX Pierre told me to use this form -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-09-09 Thread Pierre Joye
On 9/9/05, Joshua Eichorn <[EMAIL PROTECTED]> wrote: > maintaining pear HTML_AJAX > > Pierre told me to use this form Valid credentials are: New account with karma for pear/HTML_AJAX --Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub

[PHP-DEV] [PATCH] strtok()

2005-09-09 Thread Rolland Santimano
Submitting patch for Unicode impl of strtok(), since I don't have a proper test setup, as yet. -- Rolland -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] strtok()

2005-09-09 Thread Rolland Santimano
--- Rolland Santimano <[EMAIL PROTECTED]> wrote: > Submitting patch for Unicode impl of strtok(), since I don't have a > proper test setup, as yet. > > -- Rolland OK, attachment got stripped - please check inline patch. -- Index: ext/standard/basic_functions.h ===

Re: [PHP-DEV] [PATCH] strtok()

2005-09-09 Thread Andrei Zmievski
Why did we decide to not use u_strtok() here? -Andrei On Sep 9, 2005, at 11:41 AM, Rolland Santimano wrote: --- Rolland Santimano <[EMAIL PROTECTED]> wrote: Submitting patch for Unicode impl of strtok(), since I don't have a proper test setup, as yet. -- Rolland OK, attachment got strip

Re: [PHP-DEV] [PATCH] strtok()

2005-09-09 Thread Rolland Santimano
--- Andrei Zmievski <[EMAIL PROTECTED]> wrote: > Why did we decide to not use u_strtok() here? > > -Andrei u_strtok() assumes NULL terminated input, w/o embedded NULLs. But using u_strtok() would have been much simpler. - Rolland > On Sep 9, 2005, at 11:41 AM, Rolland Santimano wrote: > > > -

[PHP-DEV] mysqli PHP_5_1 compile errors

2005-09-09 Thread Greg Donald
Getting some mysqli errors when compiling latest cvs of PHP_5_1: /bin/sh /usr/src/php-src-5.1/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysqli/ -I/usr/src/php-src-5.1/ext/mysqli/ -DPHP_ATOM_INC -I/usr/src/php-src-5.1/include -I/usr/src/php-src-5.1/main -I/usr/src/php-src-5.1 -

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

2005-09-09 Thread Greg Beaver
Pierre Joye wrote: > On 9/9/05, Joshua Eichorn <[EMAIL PROTECTED]> wrote: > >>maintaining pear HTML_AJAX >> >>Pierre told me to use this form > > > Valid credentials are: > New account with karma for pear/HTML_AJAX please give Josh karma for pear/PhpDocumentor as well Thank you, Greg Beaver -

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

2005-09-09 Thread Pierre Joye
On 9/10/05, Greg Beaver <[EMAIL PROTECTED]> wrote: > Pierre Joye wrote: > > On 9/9/05, Joshua Eichorn <[EMAIL PROTECTED]> wrote: > > > >>maintaining pear HTML_AJAX > >> > >>Pierre told me to use this form > > > > > > Valid credentials are: > > New account with karma for pear/HTML_AJAX > > please g

[PHP-DEV] ImageAntialias

2005-09-09 Thread Greg Trounson
Gidday, Not sure if this is best suited for the devel list or the user list, but here goes.: Antialiasing is a basic requirement for generating professional-quality pictures. Unfortunately the php-gd function imageantialias needs work. Only a small subset of drawing primitives currently ma