Re: [PHP-DEV] GD segfault in 4.3.0RC1

2002-11-18 Thread Brian Havard
On Mon, 18 Nov 2002 13:31:58 +0100, Marcus Börger wrote: >At 13:07 18.11.2002, Derick Rethans wrote: >>On Mon, 18 Nov 2002, Brian Havard wrote: >> >> > Derick Rethans wrote: >> > > On Sun, 17 Nov 2002, Derick Rethans wrote: >> > > >&

Re: [PHP-DEV] GD segfault in 4.3.0RC1

2002-11-18 Thread Brian Havard
Derick Rethans wrote: On Sun, 17 Nov 2002, Derick Rethans wrote: On Sun, 17 Nov 2002, Brian Havard wrote: When trying out the RC1 code I found that my GD test segfaults every time. I traced the problem to the fact that efree is used on memory that was allocated with strdup. See the

[PHP-DEV] GD segfault in 4.3.0RC1

2002-11-17 Thread Brian Havard
When trying out the RC1 code I found that my GD test segfaults every time. I traced the problem to the fact that efree is used on memory that was allocated with strdup. See the fontlist variable in ext\gd\libgd\gdft.c:fontFetch() This started happening when gdhelpers.c was changed to use emallo

Re: [PHP-DEV] T1lib thread safety

2002-04-12 Thread Brian Havard
so we can fiddle with it and >distribute our own modified GD with PHP. I was actually thinking of just the GD PHP extension as the GD library itself doesn't call t1lib. It's the ImagePS* functions that do. >On Sat, 13 Apr 2002, Brian Havard wrote: > >> While doing some tes

[PHP-DEV] T1lib thread safety

2002-04-12 Thread Brian Havard
While doing some testing with Apache 2.0.35+PHP4.2.0RC3 I'm getting random crashes in T1_LoadFont(). Looking through the t1lib source (v1.3.1) I see frequent use of global variables which suggests it isn't thread safe. Is this a known problem? Maybe some mutexes in GD would help -- PHP D

[PHP-DEV] Re: [PATCH] rev. 2 of my apache2filters SEGV fixes

2002-04-11 Thread Brian Havard
On Thu, 11 Apr 2002 01:14:37 -0400 (EDT), Cliff Woolley wrote: >On Thu, 11 Apr 2002, Brian Havard wrote: > >> > - while (str_length > 0) { >... >> > - str += now; >> > - str_length -= now; >> > - } >... >> > >>

[PHP-DEV] Re: [PATCH] rev. 2 of my apache2filters SEGV fixes

2002-04-10 Thread Brian Havard
Aaron Bannert wrote: > I posted this patch earlier, but this has some improvements. First > of all, it's tabified, so we have consistent style. It also has some > performance improvements suggested by Cliff Woolley, including one that > will significantly improve output buffering/copying. > > The

[PHP-DEV] Re: Crash in Apache2Filter

2002-04-09 Thread Brian Havard
Sebastian Bergmann wrote: > Win32, Apache 2.0.36-dev, PHP 4.2.0-dev (both current CVS) > > ap_save_brigade(ap_filter_t * 0x00800e40, apr_bucket_brigade * * > 0x00800a8c, apr_bucket_brigade * * 0x10e6fe6c, apr_pool_t * 0x007ff898) > line 562 + 49 bytes > php_output_filter(ap_filter_t * 0x00800e4