[PHP-DEV] Re: vhost in mail

2004-11-15 Thread Sara Golemon
> I tried to patch php like: > > cat patch | patch -p1 > then I filed in the patch manually, but it will not work. > > Error: > *shrug*... didn't give me issues, but why not just edit the files directly, the patch is tiny enough 1) Open up ext/standard/mail.c in your favorite editor 2) Look f

Re: [PHP-DEV] Fix for php4 bug #30096

2004-11-15 Thread Vladimir Zidar
On Mon, 2004-11-15 at 18:37, Derick Rethans wrote: > On Mon, 15 Nov 2004, Vladimir Zidar wrote: > > > But then whole function php_mktime() is wrong, as in case where gm=1, > > you expect that parameters you pass are GMT, and still you fill defaults > > with localtime. Also, later, if gm=1, timezo

Re: [PHP-DEV] Fix for php4 bug #30096

2004-11-15 Thread Derick Rethans
On Mon, 15 Nov 2004, Vladimir Zidar wrote: > But then whole function php_mktime() is wrong, as in case where gm=1, > you expect that parameters you pass are GMT, and still you fill defaults > with localtime. Also, later, if gm=1, timezone adjustment is in use, but > with parameters that are in GM

Re: [PHP-DEV] Fix for php4 bug #30096

2004-11-15 Thread Vladimir Zidar
But then whole function php_mktime() is wrong, as in case where gm=1, you expect that parameters you pass are GMT, and still you fill defaults with localtime. Also, later, if gm=1, timezone adjustment is in use, but with parameters that are in GMT. So the real good fix would be to remove timezon

Re: [PHP-DEV] Fix for php4 bug #30096

2004-11-15 Thread Derick Rethans
On Mon, 15 Nov 2004, Vladimir Zidar wrote: > So the fix is easy: > > --- ext/standard/datetime.c.origFri Nov 12 22:35:04 2004 > +++ ext/standard/datetime.c Fri Nov 12 22:35:33 2004 > @@ -256,7 +256,7 @@ > gmadjust = -(is_dst ? timezone - 3600 : timezone); > #endif > #end

Re: [PHP-DEV] Fix for php4 bug #30096

2004-11-15 Thread Antony Dovgal
On Mon, 15 Nov 2004 16:04:46 +0100 Vladimir Zidar <[EMAIL PROTECTED]> wrote: > If anybody cares, > > gmmktime returning completly bogus results. It can be easly checked > out by manually setting TZ shell variable. > > Lets try it like this: > > TZ=GMT+1 php -r "echo gmmktime();" > > gives 1100

[PHP-DEV] Re: Fix for php4 bug #30096

2004-11-15 Thread Vladimir Zidar
Yes, please do so. I just found the fix by carefully reading man pages for localtime and tzset. On Mon, 2004-11-15 at 16:12, Derick Rethans wrote: > On Mon, 15 Nov 2004, Vladimir Zidar wrote: > > > If anybody cares, > > > > gmmktime returning completly bogus results. It can be easly checked o

[PHP-DEV] Re: Fix for php4 bug #30096

2004-11-15 Thread Derick Rethans
On Mon, 15 Nov 2004, Vladimir Zidar wrote: > If anybody cares, > > gmmktime returning completly bogus results. It can be easly checked out > by manually setting TZ shell variable. I can reproduce it, and I'll investigate whether this is not going to break other things. Derick -- Derick Rethans

[PHP-DEV] Fix for php4 bug #30096

2004-11-15 Thread Vladimir Zidar
If anybody cares, gmmktime returning completly bogus results. It can be easly checked out by manually setting TZ shell variable. Lets try it like this: TZ=GMT+1 php -r "echo gmmktime();" gives 1100292805 TZ=GMT+2 php -r "echo gmmktime();" gives 1100289207 TZ=GMT+3 php -r "echo gmmktime();"

[PHP-DEV] PHP 5 Bug Summary Report

2004-11-15 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (437 total including feature requests) ===[*Compile Issues]== 28103 Open During ./configure you get png error instead of iodbc 28700 Open yaz recode conflic

[PHP-DEV] [Maybe OT] Segfaults with mod_php + mod_perl + mysql + mysqli

2004-11-15 Thread =?iso-8859-1?Q?S=F6nke_Ruempler?=
[asked php-install before, no one answered] Hi, Because I upgraded my MySQL server to 4.1.7, I tried to compile my mod_php with mysql + mysqli support. After some problems with double "-lmysqlclient" in Makefile (found solution in bugs.php.net), the new mod_php compiled. But after testing it with

Re: [PHP-DEV] Doh! Wrong CVSROOT

2004-11-15 Thread Derick Rethans
On Sun, 14 Nov 2004, [ISO-8859-1] André Luis Ferreira da Silva Bacci wrote: > Hi, > > I was helping a friend to setup a cvsd, and in the tests I imported a > module in cvs.php.net... My bad :( That's why you never should use the environment variable, but just use the -d parameter! Derick -- De