[PHP-DEV] How do I get a perf. profile ?

2005-11-03 Thread Rolland Santimano
... I grep'ed through most of the files under php-src/, but couldn't find any mention of any profile tools/setup. Other than running oprofile(Linux), is there any support in the build process or Makefiles for generating gprof-like profiles ? TIA, Rolland -- PHP Internals - PHP Runtime Developme

[PHP-DEV] Converting {add,strip}cslashes to Unicode

2005-10-25 Thread Rolland Santimano
Resending, any update on the foll ? TIA, Rolland > Date: Sat, 1 Oct 2005 05:00:28 -0700 (PDT) > From: Rolland Santimano <[EMAIL PROTECTED]> > > > [3] string addcslashes(string text, string charlist) > > [4] string stripcslashes(string text) > > Escape chars &

Re: [PHP-DEV] Re: stristr()

2005-10-24 Thread Rolland Santimano
--- Andrei Zmievski <[EMAIL PROTECTED]> wrote: > > One of the ICU guys had the following suggestion, when I asked > about case insensitive version of u_strstr() a while back: > > > 1. Go one step further and make your string search > > language-sensitive, using ICU's string search API (which is b

[PHP-DEV] run-tests.php broken ?

2005-10-16 Thread Rolland Santimano
$ $ gmake test exit 0; /home/rolland/Work/PHP-unicode/source/php-src/ext/sqlite/libsqlite/src/parse.y Build complete. (It is safe to ignore warnings about tempnam and tmpnam). ERROR: Cannot open file '/home/rolland/Work/PHP-unicode/source/php-src/run-test-info.php' (save_text) gmake: [test] Err

[PHP-DEV] Next batch of strings funcns ...

2005-10-16 Thread Rolland Santimano
... to be converted to handle Unicode - comments ? TIA, Rolland -- [1] int strrpos(string haystack, string needle [, int offset]) Finds position of last occurrence of 'needle' within 'haystack' - 'offset' determines how much of the string is searched. To be impl'ed in terms of u_strFindLast(), wh

[PHP-DEV] {add,strip}cslashes Q - Re: [PHP-DEV] PHP Unicode strings impl proposal

2005-10-01 Thread Rolland Santimano
> [3] string addcslashes(string text, string charlist) > [4] string stripcslashes(string text) > Escape chars < 32 or > 126 with octal sequences, and escape > characters from charlist with backspace. Escaping chars/codepts with values > 126 is a pblm in Unicode strings. Using the 3-digit octal esc

[PHP-DEV] [PATCH] convert_to_explicit_type_ex() macro

2005-09-30 Thread Rolland Santimano
Can someone with perms fix the convert_to_explicit_type_ex() macro in ZendEngine2 ? I don't have commit perms. -- Index: Zend/zend_operators.h === RCS file: /repository/ZendEngine2/zend_operators.h,v retrieving revision 1.100 diff -u

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, Rolla

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/sta

[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

[PHP-DEV] Build & test errors

2005-09-08 Thread Rolland Santimano
I couldn't run the test script(s), I get multiple errors of the foll nature: PHP Warning: fopen(): unable to create or locate filter "unicode.to.utf8" in /home/rolland/Work/PHP-unicode/source/php-src/run-tests.php on line 1104 Is there any setting to be changed in the .ini file(s) ? I have the f

[PHP-DEV] Re: str_pad clarification - Re: [PHP-DEV] PHP Unicode strings impl proposal

2005-09-01 Thread Rolland Santimano
--- Andrei Zmievski <[EMAIL PROTECTED]> wrote: > > >> 4) The string can be truncated to the user's requested character > >> length. The string will be trimmed from the right one unicode > >> utf-8 character (not grapheme, not byte) at a time until the length > >> limit is met. (So a combining char

[PHP-DEV] RE: str_pad clarification - Re: [PHP-DEV] PHP Unicode strings impl proposal

2005-09-01 Thread Rolland Santimano
> So for reasons of performance, simplicity, and practicality, I would > say str_pad should: > > 1) of course surrogates must not be broken up > 2) The pad string can have combining characters. > 3) The length the user specifies should be a character count. I presume that "character" above refers

[PHP-DEV] Link errors in ext/pdo_sqlite from php-src

2005-08-29 Thread Rolland Santimano
gcc version 3.4.4 20050721 (Red Hat 3.4.4-2) GNU ld version 2.15.92.0.2 20040927 Error details follow: ext/pdo_sqlite/sqlite/src/prepare.o(.text+0x647): In function `sqlite3InitOne': /home/rolland/Work/PHP-unicode/source/php-src/ext/pdo_sqlite/sqlite/src/prepare.c:299: undefined reference to `sql

Re: [PHP-DEV] PHP Unicode strings impl proposal

2005-08-23 Thread Rolland Santimano
--- Andrei Zmievski <[EMAIL PROTECTED]> wrote: > On Aug 23, 2005, at 8:23 AM, Rolland Santimano wrote: > > [1] string substr_replace > > Impl: > > The current impl is written in terms of memcpy(), after adjusting > > satrt & length correctly. With Unicode inp

[PHP-DEV] PHP Unicode strings impl proposal

2005-08-23 Thread Rolland Santimano
Comments / impl suggestions please. TIA, Rolland -- [1] string substr_replace(string original, string new, int start[, int length]) Returns string where original[start..length] is replaced with new. Input args can be arrays, in which case case the operation is: substr_replace(original[i], new[i],

[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] CVS Account Request: rolland

2005-08-12 Thread Rolland Santimano
I submitted this request earlier, not sure if it went through. Apologies for the re-post. I am working on adding i18n support, more specifically I'm working on the strings APIs. Andrei Zmievski suggested that I apply for a CVS account here. If my preferred UID(rolland) is not available, please