ID:               29531
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pk at nodex dot ru
 Status:           Analyzed
 Bug Type:         *General Issues
 Operating System: Solaris 9
 PHP Version:      4.3.9
 New Comment:

It seems, that http://tony2001.phpclub.net/dev/tmp/fread.diff solves
the problem, but currently I got no possibility to test it myself.
Could anyone (with sfio installed) test it, plz?
The patch was done against HEAD, but similar patch will work with 4.3.9
too.


Previous Comments:
------------------------------------------------------------------------

[2004-08-12 16:18:15] [EMAIL PROTECTED]

Change the line in ext/zlib/zlib.c with 
PHP_FALIAS(gzread,              fread,                  NULL)
to 
PHP_NAMED_FE(gzread,            php_if_fread,           NULL)

------------------------------------------------------------------------

[2004-08-12 15:46:38] pk at nodex dot ru

Result is:
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:93: `zif__stdfread'
undeclared here (not in a function)
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:93: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:93: (near
initialization for `php_zlib_functions[7].handler')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:93: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:93: (near
initialization for `php_zlib_functions[7]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:94: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:94: (near
initialization for `php_zlib_functions[8]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:95: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:95: (near
initialization for `php_zlib_functions[9]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:96: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:96: (near
initialization for `php_zlib_functions[10]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:97: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:97: (near
initialization for `php_zlib_functions[11]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:98: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:98: (near
initialization for `php_zlib_functions[12]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:99: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:99: (near
initialization for `php_zlib_functions[13]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:100: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:100: (near
initialization for `php_zlib_functions[14]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:101: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:101: (near
initialization for `php_zlib_functions[15]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:102: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:102: (near
initialization for `php_zlib_functions[16]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:103: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:103: (near
initialization for `php_zlib_functions[17]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:104: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:104: (near
initialization for `php_zlib_functions[18]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:105: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:105: (near
initialization for `php_zlib_functions[19]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:106: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:106: (near
initialization for `php_zlib_functions[20]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:107: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:107: (near
initialization for `php_zlib_functions[21]')
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:108: initializer
element is not constant
/usr/home/kuzmich/apache/php-4.3.8/ext/zlib/zlib.c:108: (near
initialization for `php_zlib_functions[22]')

------------------------------------------------------------------------

[2004-08-12 15:13:27] [EMAIL PROTECTED]

http://tony2001.phpclub.net/dev/tmp/fread.diff - probably this may help
(diff was done against HEAD).

------------------------------------------------------------------------

[2004-08-12 14:53:16] pk at nodex dot ru

Please find your time for this.
I work with PHP 4.2.3 for now and i can`t upgrade because this 
issue is have a place.

------------------------------------------------------------------------

[2004-08-12 14:35:55] [EMAIL PROTECTED]

If I had the time to patch it, I would have done it already.
Maybe someone else will do it in the meantime.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/29531

-- 
Edit this bug report at http://bugs.php.net/?id=29531&edit=1

Reply via email to