[PHP-CVS] Re: cvs: php-src(PHP_5_2) /main/streams streams.c

2006-06-21 Thread Nuno Lopes
Hi, > @@ -1216,7 +1216,7 @@ > > p = php_stream_mmap_range(src, php_stream_tell(src), > maxlen, PHP_STREAM_MAP_MODE_SHARED_READONLY, &mapped); > > - if (p) { > + if (p && mapped) { > *buf = pemalloc_rel_orig(mapped + 1, persistent); >

Re: [PHP-CVS] Re: cvs: php-src(PHP_5_2) /ext/bz2 bz2_filter.c

2006-06-21 Thread Michael Wallner
Ilia Alshanetsky wrote: On my 2 32 bit machines the compiler complains about int being used where a non-int or a long value is returned. Changing it to long fixes the problem, this is replicated on gcc 3.4 and 4.0.1 Ok, well... this seems to differ for me on i686 (__SIZE_TYPE__ is unsigned in

[PHP-CVS] cvs: php-src /ext/unicode unicode.c /main/streams filter.c streams.c ZendEngine2 zend_constants.c zend_unicode.c zend_unicode.h

2006-06-21 Thread Andrei Zmievski
andrei Wed Jun 21 20:17:21 2006 UTC Modified files: /ZendEngine2zend_constants.c zend_unicode.c zend_unicode.h /php-src/ext/unicodeunicode.c /php-src/main/streams filter.c streams.c Log: Implement user conversion error handler suppo

Re: [PHP-CVS] Re: cvs: php-src(PHP_5_2) /ext/bz2 bz2_filter.c

2006-06-21 Thread Michael Wallner
Stefan Esser wrote: Hi, I don't know what you're running but here size_t is unsigned int. It's probably unsigned long on 64bit boxen, so what's this fix about? The question is: what are you running? size_t usually is unsigned long. [EMAIL PROTECTED]:~/devel/testimonials$ cat printf.c #include

[PHP-CVS] cvs: php-src /main/streams streams.c

2006-06-21 Thread Andrei Zmievski
andrei Wed Jun 21 17:10:13 2006 UTC Modified files: /php-src/main/streams streams.c Log: Typos. http://cvs.php.net/viewvc.cgi/php-src/main/streams/streams.c?r1=1.125&r2=1.126&diff_format=u Index: php-src/main/streams/streams.c diff -u php-src/main/stre

Re: [PHP-CVS] Re: cvs: php-src(PHP_5_2) /ext/bz2 bz2_filter.c

2006-06-21 Thread Ilia Alshanetsky
On my 2 32 bit machines the compiler complains about int being used where a non-int or a long value is returned. Changing it to long fixes the problem, this is replicated on gcc 3.4 and 4.0.1 On 21-Jun-06, at 12:08 PM, Michael Wallner wrote: Ilia Alshanetsky wrote: iliaa Wed Jun

Re: [PHP-CVS] Re: cvs: php-src(PHP_5_2) /ext/bz2 bz2_filter.c

2006-06-21 Thread Stefan Esser
> Hi, I don't know what you're running but here size_t is unsigned int. > It's probably unsigned long on 64bit boxen, so what's this fix about? The question is: what are you running? size_t usually is unsigned long. Stefan -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP-CVS] Re: cvs: php-src(PHP_5_2) /ext/bz2 bz2_filter.c

2006-06-21 Thread Michael Wallner
Ilia Alshanetsky wrote: iliaa Wed Jun 21 15:19:24 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/bz2 bz2_filter.c Log: Fixed compiler warnings. http://cvs.php.net/viewvc.cgi/php-src/ext/bz2/bz2_filter.c?r1=1.3.2.2&r2=1.3.2.2.2.1&diff_format=u In

[PHP-CVS] cvs: php-src /ext/bz2 bz2_filter.c

2006-06-21 Thread Ilia Alshanetsky
iliaa Wed Jun 21 15:19:37 2006 UTC Modified files: /php-src/ext/bz2bz2_filter.c Log: MFB: Fixed compiler warnings. http://cvs.php.net/viewvc.cgi/php-src/ext/bz2/bz2_filter.c?r1=1.7&r2=1.8&diff_format=u Index: php-src/ext/bz2/bz2_filter.c diff -u php-src

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/bz2 bz2_filter.c

2006-06-21 Thread Ilia Alshanetsky
iliaa Wed Jun 21 15:19:24 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/bz2bz2_filter.c Log: Fixed compiler warnings. http://cvs.php.net/viewvc.cgi/php-src/ext/bz2/bz2_filter.c?r1=1.3.2.2&r2=1.3.2.2.2.1&diff_format=u Index: php-src/ext/bz2/bz2_

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/bz2 bz2.c /ext/bz2/tests 001.phpt 002.phpt

2006-06-21 Thread Antony Dovgal
tony2001Wed Jun 21 14:38:28 2006 UTC Added files: (Branch: PHP_5_2) /php-src/ext/bz2/tests 001.phpt 002.phpt Modified files: /php-src/ext/bz2bz2.c Log: MFH: improve check for stream mode, add tests http://cvs.php.net/v

[PHP-CVS] cvs: php-src /ext/bz2 bz2.c /ext/bz2/tests 001.phpt 002.phpt

2006-06-21 Thread Antony Dovgal
tony2001Wed Jun 21 14:38:06 2006 UTC Added files: /php-src/ext/bz2/tests 001.phpt 002.phpt Modified files: /php-src/ext/bz2bz2.c Log: improve check for stream mode, add tests http://cvs.php.net/viewvc.cgi/php-src/ext/

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/bz2 bz2.c

2006-06-21 Thread Antony Dovgal
tony2001Wed Jun 21 13:12:37 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/bz2bz2.c Log: MFH: don't try to read or write from/to a stream if it was open in different mode (leads to segfault in libbz2) http://cvs.php.net/viewvc.cgi/php-src

[PHP-CVS] cvs: php-src /ext/bz2 bz2.c

2006-06-21 Thread Antony Dovgal
tony2001Wed Jun 21 13:12:00 2006 UTC Modified files: /php-src/ext/bz2bz2.c Log: don't try to read or write from/to a stream if it was open in different mode (leads to segfault in libbz2) http://cvs.php.net/viewvc.cgi/php-src/ext/bz2/bz2.c?r1=1.21

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/bz2 bz2.c

2006-06-21 Thread Antony Dovgal
tony2001Wed Jun 21 12:43:27 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/bz2bz2.c Log: MFH: fix invalid read with bzopen("","") and prevent filename from being empty (which causes endless loop somewhere is libbz2) http://cvs.php.net/vie

[PHP-CVS] cvs: php-src /ext/bz2 bz2.c

2006-06-21 Thread Antony Dovgal
tony2001Wed Jun 21 12:42:50 2006 UTC Modified files: /php-src/ext/bz2bz2.c Log: fix invalid read with bzopen("","") and prevent filename from being empty (which causes endless loop somewhere is libbz2) tests will follow http://cvs.php.net/viewv