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

2002-04-06 Thread Andi Gutmans
If you're at it can you guys please use strlcpy() instead of strncpy(). Thanks, Andi At 15:39 30/03/2002 +0100, Marcus Boerger wrote: >Try this patch. It does the same but it's a better solution. >But where is the configure variable to have your feature >disabled by default? - keep to discussio

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

2002-03-30 Thread Marcus Boerger
Try this patch. It does the same but it's a better solution. But where is the configure variable to have your feature disabled by default? - keep to discussion or say why you ignore discussion points. marcus >At 04:40 30.03.2002, you wrote: >rootshell Fri Mar 29 23:13:29 2002 CET > > Mod

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

2002-03-30 Thread Jan Pavlík
PHP 4.1.2 - it works fine. Sorry for my seek... It will be better to develop it only for me. I really don't know, that some functions in C can't be used JP "Markus Fischer" <[EMAIL PROTECTED]> píse v diskusním príspevku [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 4. It's not condition

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

2002-03-30 Thread Markus Fischer
4. It's not conditional and who says everthing likes it that way just becayse you want it that way? Hmm ... My opinion is this patch/method shouldn't be considered at all. First discuss implementation issues better... On Sat, Mar 30, 2002 at 12:56:11PM +0100, [EMAIL PROTECTED] wr

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

2002-03-29 Thread Jan Pavlík
rootshell Fri Mar 29 23:13:29 2002 CET Modified files: /php4/main/main.c Log: lot of same errors are logged as one, cleans errorlog Index: php4/main/main.c diff -u php4/main/main.c:1.404.2.5 php4/main/main.c:1.404.2.6 --- php4/main/main.c:1.404.2.5 Mon Dec 17 22:19:51 2001 +++ ph

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Marcus Börger
cus >- Original Message - >From: "Marcus Börger" <[EMAIL PROTECTED]> >To: "Jan Pavlík" <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >Sent: Friday, March 29, 2002 1:15 PM >Subject: Re: [PHP-DEV] ErrorLog problem > > >At 10:43 29.03.2002,

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Marcus Börger
At 10:43 29.03.2002, Jan Pavlík wrote: >That not help to me ;) >I will rewrite PHP to log only ONE error when the next errors are the same. >But I ask only, PHP developers think, that will be better make it as >standart. But please configureable with default to current behaviour. I host myself a

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Stefan Roehrich
On 2002-03-29 10:43:17, Jan Pavlík wrote: > I will rewrite PHP to log only ONE error when the next errors are the same. Maybe you can try logging errors to syslog, not to a file. Many syslog daemons seem to have some logic to detect repeating messages and only log something like "last message rep

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Jan Pavlík
Sure :) JP "Markus Fischer" <[EMAIL PROTECTED]> píse v diskusním príspevku [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Fri, Mar 29, 2002 at 10:43:17AM +0100, Jan Pavlík wrote : > > That not help to me ;) > > I will rewrite PHP to log only ONE error when the next errors are the same. > > Bu

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Markus Fischer
On Fri, Mar 29, 2002 at 10:43:17AM +0100, Jan Pavlík wrote : > That not help to me ;) > I will rewrite PHP to log only ONE error when the next errors are the same. > But I ask only, PHP developers think, that will be better make it as > standart. > > I will send the patch here for PHP 4.1.2...

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Jan Pavlík
That not help to me ;) I will rewrite PHP to log only ONE error when the next errors are the same. But I ask only, PHP developers think, that will be better make it as standart. I will send the patch here for PHP 4.1.2... JP "Markus Fischer" <[EMAIL PROTECTED]> píse v diskusním príspevku [EMAIL

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Markus Fischer
On Fri, Mar 29, 2002 at 10:30:18AM +0100, Jan Pavlík wrote : > I know it, but we're freewebhosting with 10.000 users... and when do users > it? That's a general problem of vhosting and allowing user to write/execute arbitrary code if any kind of language. (I *have* a reason not bein

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Jan Pavlík
nt: Friday, March 29, 2002 10:18 AM Subject: Re: [PHP-DEV] ErrorLog problem > Your code is simply broken. You have to make sure $fd is a > proper file handle before you try to use it: > > if ($fd = @fopen($filename, 'r')) { > while(!feof($fd)) { >

Re: [PHP-DEV] ErrorLog problem

2002-03-29 Thread Markus Fischer
Your code is simply broken. You have to make sure $fd is a proper file handle before you try to use it: if ($fd = @fopen($filename, 'r')) { while(!feof($fd)) { ... } fclose($fd); } Btw, next time please ask on php-general@ - Markus On Fri, Mar

[PHP-DEV] ErrorLog problem

2002-03-29 Thread Jan Pavlík
Hi, I have problems with logging events in PHP. When some user write example script from PHP.NET: $fd = fopen ("/tmp/nonexists.txt", "r"); while (!feof ($fd)) { $buffer = fgets($fd, 4096); echo $buffer; } fclose ($fd); And when the file not exists, it run 30 seconds and the ended, but my