[PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Tom
hey there, I'm using the cvs and ZE2, there seems to be some huge memory usage when concatenating a string to a length over 262080 bytes, when the string length gets to that size the malloc call inside zend_mm_add_memory_block starts grabing memory 262168 bytes at a time, every 8th concatenation

Re: [PHP-DEV] Re: Latest ZE2 changes

2002-12-08 Thread Marcus Börger
At 00:41 08.12.2002, Marcus Börger wrote: At 16:48 07.12.2002, Zeev Suraski wrote: At 17:02 07/12/2002, Marcus Börger wrote: Hi Zeev, I have changed the test files and encountered some problems with the way you modified my patch: 1) private_002.phpt fails with 004- Fatal error: Call to

Re: [PHP-DEV] Re: Default Return-Path with mail() and qmail

2002-12-08 Thread Daniel Lorch
hi, Somehow this is starting to annoy me -- sorry for the unnecessary noise I am causing on this list. I just thought people who are having the same problem would be looking on marc.theaimsgroup.com or google and find a possible fix. I'm not forcing anyone to use it. Setting Return-Path is

Re: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Philip Olson
Can someone provide a history of this and the problems one will see when trying to run php.exe as a cgi (i.e. follows one of the many install texts out there). This is _sorta_ documented but not really, only the apache2 docs make any mention of it thus far. Regards, Philip On Sun, 8 Dec 2002,

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread John Coggeshall
I believe the issue here is that PHP won't display the proper HTTP headers in the CLI version: C:\ Php.exe test.php X-Powered-By: PHP/4.2.2 Content-type: text/html Testing 1 2 3 C:\ C:\ Php-cli.exe test.php Testing 1 2 3 C:\ -Original Message- From: Philip Olson [mailto:[EMAIL

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Philip Olson
Wait, so there used to be a php-cli.exe ? Add that to the history request question :) And so a user tries to install via some install tutorial on foo.com, what problems/errors will they see when accessing via the browser? Philip On Sun, 8 Dec 2002, John Coggeshall wrote: I believe the

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Marcus Börger
At 17:55 08.12.2002, Philip Olson wrote: Wait, so there used to be a php-cli.exe ? Add that to the history request question :) And so a user tries to install via some install tutorial on foo.com, what problems/errors will they see when accessing via the browser? Philip There was no spoon

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Preston L. Bannister
Admittedly I didn't hear whatever discussion went on before, but I wonder why the need for two different executables? It seems that the presence of the CGI variables SERVER_NAME and SERVER_SOFTWARE are pretty big hints, so you could decide at runtime whether to act as CGI or CLI. For

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Philip Olson
On Sun, 8 Dec 2002, Marcus [iso-8859-1] Börger wrote: At 17:55 08.12.2002, Philip Olson wrote: Wait, so there used to be a php-cli.exe ? Add that to the history request question :) And so a user tries to install via some install tutorial on foo.com, what problems/errors will they see

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Andi Gutmans
At 12:30 AM 12/8/2002 -0800, Tom wrote: hey there, I'm using the cvs and ZE2, there seems to be some huge memory usage when concatenating a string to a length over 262080 bytes, when the string length gets to that size the malloc call inside zend_mm_add_memory_block starts grabing memory 262168

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Mike Robinson
Marcus Börger wrote: There was no cli and only cgi binary called php.exe. Then we decided to have a command line executable (abbrevation CLI). And the we decided to use 'php.exe' for the new CLI and to avoid confusion we chose to rename the CGI binary from 'php.exe'. So now there will be

Re: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Christoph Grottolo
Marcus Börger wrote: There was no cli and only cgi binary called php.exe. Then we decided to have a command line executable (abbrevation CLI). And the we decided to use 'php.exe' for the new CLI and to avoid confusion we chose to rename the CGI binary from 'php.exe'. So now there will be

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Marcus Börger
At 19:28 08.12.2002, Philip Olson wrote: On Sun, 8 Dec 2002, Marcus [iso-8859-1] Börger wrote: At 17:55 08.12.2002, Philip Olson wrote: Wait, so there used to be a php-cli.exe ? Add that to the history request question :) And so a user tries to install via some install tutorial on

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Mike Robinson
Christoph Grottolo wrote: It's worse. At least PHP 4.2.2 and 4.2.3. have php-cli.exe (CLI) and php.exe (CGI). This is the way it should stay. I'm trying to find the archive of the discussion that lead to this being changed. I'm having a huge problem getting my head around why the name of

[PHP-DEV] mail() problem

2002-12-08 Thread stormryder
Hi, I'm using the mail() function to send out mails. The problem I'm having is the subject line shows up in the message body. Anybody has any ideas? TIA -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Marcus Börger
At 20:37 08.12.2002, Christoph Grottolo wrote: Marcus Börger wrote: There was no cli and only cgi binary called php.exe. Then we decided to have a command line executable (abbrevation CLI). And the we decided to use 'php.exe' for the new CLI and to avoid confusion we chose to rename the CGI

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Marcus Börger
At 22:08 08.12.2002, Mike Robinson wrote: Christoph Grottolo wrote: It's worse. At least PHP 4.2.2 and 4.2.3. have php-cli.exe (CLI) and php.exe (CGI). This is the way it should stay. I'm trying to find the archive of the discussion that lead to this being changed. I'm having a huge problem

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Melvyn Sopacua
On Sun, 8 Dec 2002, Marcus Börger wrote: MBr Just because you only need to type the name of the CGI sapi once: MBr In other word one single time until we decide the name changes. MBr But you will use a command line interface hopefully very often. I MBr for one do and i am not going to type

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread John Coggeshall
As much as I understand the point of view that renaming the CGI version of PHP from php(.exe) to php-cgi(.exe) so that we don't have to type 'php-cli' perhaps isn't such a good idea, I am completely against changing it now. Changing it the first time is obviously causing problems, changing it

[PHP-DEV] Pear installer and case-insensative OS's

2002-12-08 Thread Melvyn Sopacua
Hi, pear won't install on cygwin, simply because the 'PEAR' dir is missing from the cvs checkout - culprit: pear/.cvsignore contains 'pear' (yes lowercase). Result: Warning: main(PEAR/Installer.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Mike Robinson
Marcus Börger wrote: At 22:08 08.12.2002, Mike Robinson wrote: Christoph Grottolo wrote: It's worse. At least PHP 4.2.2 and 4.2.3. have php-cli.exe (CLI) and php.exe (CGI). This is the way it should stay. I'm trying to find the archive of the discussion that lead to this being

[PHP-DEV] Bug #20807

2002-12-08 Thread Melvyn Sopacua
Hi, the attached patch fixes bug #20807. It's against current HEAD. Verified to install 'php' and 'php-cli' (without the exe extension). -- With kind regards, Melvyn Sopacua ?php include(not_reflecting_employers_views.txt); ? Index: sapi/cli/config.m4

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-08 Thread Melvyn Sopacua
On Sun, 8 Dec 2002, John Coggeshall wrote: JC JC As much as I understand the point of view that renaming the CGI version JC of PHP from php(.exe) to php-cgi(.exe) so that we don't have to type JC 'php-cli' perhaps isn't such a good idea, I am completely against JC changing it now. Changing it

[PHP-DEV] mail() problem

2002-12-08 Thread stormryder
Hi, I'm using the mail() function to send out mails. The problem I'm having is the subject line shows up in the message body. Anybody has any ideas? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] mail() problem

2002-12-08 Thread Melvyn Sopacua
On Sun, 8 Dec 2002, stormryder wrote: s Hi, s I'm using the mail() function to send out mails. s The problem I'm having is the subject line shows up in the message body. s s Anybody has any ideas? If you ask on the right list, like [EMAIL PROTECTED], then maybe somebody get's inspired. PS: it

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Tom Fishwick
I was reading an email from stdin. But regardless of bad coding style :-), the script is using _way_ more memory than it should. $s = ''; while(strlen($s) 266768) { $s.= 'd'; } this code uses 151Megs on my system. the same code uses about 2megs with php4.3. php4.3 seems to

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Andi Gutmans
I'll try and see what I can do about this. Andi At 11:56 AM 12/8/2002 -0800, Tom Fishwick wrote: I was reading an email from stdin. But regardless of bad coding style :-), the script is using _way_ more memory than it should. $s = ''; while(strlen($s) 266768) { $s.= 'd'; } this code