[PHP-DEV] Help, I can't compile with files from ext

2002-02-26 Thread Olga Tonkonog
Hello, all! I did install PHP in Windows and Linux. I can compile standard php4ts.dll. But I can't compile files from /ext. I can't run examples. And it is that I need. I became 22 errors. I wanted to write foo.c program, this help connect our dll to PHP. But I try Extending_PHP and have no succ

[PHP-DEV] SAPI Servlet Module

2002-02-26 Thread Sebastian Bergmann
Hey there, with the advent of SUN's Java 2 SDK 1.4, I can now provide some more details to the already reported segfaults of the Servlet SAPI Module: Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D352F7C Function=JVM_CompilerCommand+0x58FE Library=c:\programme\java\jre\b

Re: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Brad Fisher
Here are the diffs for the unhtmlentities function. Also included is a test script for some rudimentary benchmarking. -Brad unhtmlentities_test.php Description: application/unknown-content-type-microsoft --- html.c Tue Feb 26 22:44:44 2002 +++ html.c Wed Feb 27 00:42:04 2002 @@ -1

Re: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Brad Fisher
No, not an exact reverse, but a function which could take arbitrary input with HTML entities in it and convert that input to a normal string. The input would not neccesarily need to come from the htmlentities function. It could come from any arbitrary HTML code, including hand-coded or generate

Re: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Rasmus Lerdorf
But then we are not talking about the reverse of htmlentities because htmlentities() would never create On Tue, 26 Feb 2002, Brad Fisher wrote: > Not as trivial as you make it seem... > > - Consider the following code: - > >$data = "This is & some text"; >$trans = get

[PHP-DEV] How long does the entire test suite take to run?

2002-02-26 Thread Venkat Raghavan
It seems to be running for nearly an hour now. Or is something wrong? Thanx in advance, Venkat -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Function to retrieve headers for message/rfc822 attachments

2002-02-26 Thread Brad Fisher
Here is my attempt at a unified diff against the current CVS. Let me know if I need to do anything differently. -Brad -- diff for php_imap.c --- --- php_imap.c +++ php_imap.c Tue Feb 26 23:00:58 2002 @@ -91,6 +91,7 @@ PHP_FE(imap_bodystruct, NULL) P

Re: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Andi Gutmans
At 09:37 PM 2/26/2002 -0600, Brad Fisher wrote: >I have looked at the following: > http://www.php.net/anoncvs.php > http://cvs.php.net/cvs.php > >I am rather new to CVS, so perhaps this is a stupid question... I don't see >the HEAD branch anywhere... Can I check it out through anon CVS

Re: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Brad Fisher
Not as trivial as you make it seem... - Consider the following code: - $data = "This is & some text"; $trans = get_html_translation_table(HTML_ENTITIES); $trans = array_flip($trans); $data2 = strtr($data,$trans); echo "Original data is:\n"; echo "$data\n\n";

Re: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Yasuo Ohgaki
Rasmus Lerdorf wrote: > Reversing htmlentities is trivial. I don't think it needs a special > function. > > Simply do: > > $trans = get_html_translation_table(HTML_ENTITIES); > $trans = array_flip($trans); > $data = strtr($data,$trans); > > -Rasmus I agree it's easy. I prefer to have i

Re: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Rasmus Lerdorf
Reversing htmlentities is trivial. I don't think it needs a special function. Simply do: $trans = get_html_translation_table(HTML_ENTITIES); $trans = array_flip($trans); $data = strtr($data,$trans); -Rasmus On Tue, 26 Feb 2002, Brad Fisher wrote: > > I have looked at the following: >

Re: [PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Brad Fisher
I have looked at the following: http://www.php.net/anoncvs.php http://cvs.php.net/cvs.php I am rather new to CVS, so perhaps this is a stupid question... I don't see the HEAD branch anywhere... Can I check it out through anon CVS or would I need dev access? Or is this a reference to p

[PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Yasuo Ohgaki
Quick fix Brad Fisher wrote: > PHPAPI char* php_str_unhtmlentities(char *str, unsigned int *resultlen) PHPAPI char* php_str_unhtmlentities(char *str, unsigned int *resultlen TSRMLS_DC) Use memcpy instead of strcpy/strncpy. strcpy() won't work when user uses UCS-4 or like. > > /* BF 6/11/0

[PHP-DEV] Re: Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Yasuo Ohgaki
Brad Fisher wrote: > Just another function I have found useful.. PHP has a htmlentities > function, but no unhtmlentities function to go the other direction.. (At > least not that I am aware of). So, here you go. Don't think this one > would perform nearly as quickly if it were done using rege

[PHP-DEV] Re: Function to retrieve headers for message/rfc822 attachments

2002-02-26 Thread Yasuo Ohgaki
Brad Fisher wrote: > This is a function I wrote a while back so I could access more of the > headers available in a mail message. The imap_headers and > imap_fetchheaders functions work fine for retrieving headers for the > main body of a given message, but if you receive an email with an > attac

[PHP-DEV] Refinement of wordwrap

2002-02-26 Thread Brad Fisher
Yet another refinement... This function wraps a string at a given width, but also respects embedded HTML, so HTML links are not broken. Basically, this would be a fairly drop-in replacement for the exitsing wordwrap function, with the addition of the HTMLmode parameter... -Brad --

[PHP-DEV] Counterpart to htmlentities function: unhtmlentities

2002-02-26 Thread Brad Fisher
Just another function I have found useful.. PHP has a htmlentities function, but no unhtmlentities function to go the other direction.. (At least not that I am aware of). So, here you go. Don't think this one would perform nearly as quickly if it were done using regexps in PHP... This functio

[PHP-DEV] Function to retrieve headers for message/rfc822 attachments

2002-02-26 Thread Brad Fisher
This is a function I wrote a while back so I could access more of the headers available in a mail message. The imap_headers and imap_fetchheaders functions work fine for retrieving headers for the main body of a given message, but if you receive an email with an attachment which is itself an ema

[PHP-DEV] Re: AC_PROG_LEX invoked multiple times

2002-02-26 Thread Yasuo Ohgaki
Keyser Soze wrote: > Hi, > > I have read the archives and have seen that other ppl had the same problem > using ./buildconf > Have anyone got any solution??? > > I'm using > autoconf 2.5 > automake 1.5 > libtool 1.4.1 > > thanks, > Keyser Soze > > > Take a look at bottom of following URL.

[PHP-DEV] AC_PROG_LEX invoked multiple times

2002-02-26 Thread Keyser Soze
Hi, I have read the archives and have seen that other ppl had the same problem using ./buildconf Have anyone got any solution??? I'm using autoconf 2.5 automake 1.5 libtool 1.4.1 thanks, Keyser Soze -- PHP Development Mailing List To unsubscribe, visit: http://www.php.

Re: [PHP-DEV] PHP Safe Mode Filesystem Circumvention Problem (fwd)

2002-02-26 Thread Jim Segrave
I was looking at the posting from "James E. Flemer" <[EMAIL PROTECTED]> and decided to try adding a bit more to it. ** This code is compiled, but not tested ** As noted in the comments, it would need work in a threaded environment. However, if anyone would like to look at this and see if it ad

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /main main.c

2002-02-26 Thread Sebastian Bergmann
Andi Gutmans wrote: > Only revert the php_request_shutdown_for_exec() the last two things > are OK. I didn't see the second half. These are changes I know I made > but they must have not saved :) Sorry, Sebastian -- Sebastian Bergmann http://sebastian-bergmann.de/ http:/

Re: [PHP-DEV] Mutex deadlock problem?

2002-02-26 Thread Andi Gutmans
Hey, Can you please try the latest CVS of PHP & Zend and let us know if it fixes the problem? Thanks, Andi At 02:01 AM 2/26/2002 -0700, Venkat Raghavan wrote: >Hi. There seems to be a mutex deadlock problem in TSRM / Zend. > >ts_free_thread() function locks the tsmm_mutex mutex and calls func

RE: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-26 Thread August
You've pretty much nailed the plan on the head here. Not even close to running Apache 2 on a production machine, stability/familiarity trumps that thought any day. Was planning on developing against Apache 2 DSO style, and simultaneously trying to nudge things along on the static build side so tha

Re: [PHP-DEV] Apache2 and PHP CVS from today

2002-02-26 Thread Andi Gutmans
I completely understand your point. Some people feel they need those extra 10% for production machines. But are you actually planning on running Apache 2 on a heavily loaded production machine? If yes, I think it might still be a bit early to abandon 1.3.x. If no and you just want to mess aroun

Re: [PHP-DEV] call_user_function()

2002-02-26 Thread Andi Gutmans
Can you send a unified diff of what call_user_function() would look like with your changes? Andi At 06:04 AM 2/25/2002 -0800, brad lafountain wrote: >Ok, > I know ive already posted this but no responded. So I'll do it again. > >Currently call_user_function() doesn't call overloaded class met

[PHP-DEV] Re: Load external modules to PHP programm

2002-02-26 Thread Yasuo Ohgaki
Olga Tonkonog wrote: > Hi, all! > > I try load extern library. How can I do it : compile with PHP-libraries > or at runtime? What I need to do? > Olga, Wrong list for asking these questions. This list for developing PHP itself. Try php-general or php-install. Make sure you've read all manual

Re: [PHP-DEV] code for Alphabetical pager class

2002-02-26 Thread Jan Lehnardt
Hi, On Mon, 25 Feb 2002 17:10:54 -0500 austin swinney <[EMAIL PROTECTED]> wrote: > i think somebody is working on a pager class. this class alpha could you are on the worng list. we set up [EMAIL PROTECTED] for discussion such "classes". We already have a pager class in PEAR [1]. [1] http://pea

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

2002-02-26 Thread Jan Lehnardt
Hi, On 26 Feb 2002 09:12:33 - "Sundaram" <[EMAIL PROTECTED]> wrote: > To develop & submit php programs you don't need a cvs access for that purpose. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List To unsubscribe, visit: http:

Re: [PHP-DEV] SAP DB

2002-02-26 Thread Hartmut Holzgraefe
Lukas Smith wrote: >>Yes, As I didn't know that SAPDB = AdabasD I was unaware... >> > > As far as I know is is pretty much AdabasD but ist not exactly AdabasD > either. Its basically a fork from all I know. that's why i wrote "from a programmers point of view" SAP has bought the right to use t

[PHP-DEV] CVS Account Request: sundaram

2002-02-26 Thread Sundaram
To develop & submit php programs -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Mutex deadlock problem?

2002-02-26 Thread Venkat Raghavan
Hi. There seems to be a mutex deadlock problem in TSRM / Zend. ts_free_thread() function locks the tsmm_mutex mutex and calls functions through function pointers in resource_types_table[i].dtor. One such function is alloc_globals_dtor(), which in turn calls shutdown_memory_manager(), which