#29531 [Ana->Fbk]: fread() undeclared when compiles with sfio
| From: | sniper@php.net | Date: | Fri, 01 Oct 2004 08:14:42 +0000 |
| Subject: | #29531 [Ana->Fbk]: fread() undeclared when compiles with sfio | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66979@lists.php.net to get a copy of this message | ||
ID: 29531
Updated by: sniper@php.net
Reported By: pk at nodex dot ru
-Status: Analyzed
+Status: Feedback
Bug Type: *General Issues
Operating System: Solaris 9
PHP Version: 4.3.9
New Comment:
Try the patch again using latest CVS snapshot.
Previous Comments:
------------------------------------------------------------------------
[2004-08-17 07:26:07] tony2001@php.net
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.
------------------------------------------------------------------------
[2004-08-12 16:18:15] tony2001@php.net
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] tony2001@php.net
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.
------------------------------------------------------------------------
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