#29531 [Ana]: fread() undeclared when compiles with sfio

From: Date: Thu, 12 Aug 2004 12:11:03 +0000
Subject: #29531 [Ana]: fread() undeclared when compiles with sfio
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-64483@lists.php.net to get a copy of this message
ID: 29531 User updated by: pk at nodex dot ru Reported By: pk at nodex dot ru Status: Analyzed Bug Type: *General Issues Operating System: Solaris 9 PHP Version: 4.3.9 New Comment: SFIO redefine fopen call with _stdfread in precompilation. And any C sources compilling good with sfio. SFIO is transparent for sources. Can you give me the patch for this issue? Previous Comments: ------------------------------------------------------------------------ [2004-08-12 13:57:49] wez@php.net So, the fread() function will be callable from your script as _stdfread() instead ? We need to use the NAMED variety of the PHP_FUNCTION and PHP_FE macros to avoid this issue. ------------------------------------------------------------------------ [2004-08-12 13:38:08] pk at nodex dot ru Sfio have lines: #define fread _stdfread Difintion of stdfread: extern ssize_t _stdfread _ARG_((Void_t*, size_t, size_t, Sfio_t*)); ------------------------------------------------------------------------ [2004-08-12 13:34:12] wez@php.net Can you confirm that sfio does something along the lines of: #define fread sfio_fread in its headers? ------------------------------------------------------------------------ [2004-08-12 13:02:27] pk at nodex dot ru Can anybody help me with this bug? ------------------------------------------------------------------------ [2004-08-05 13:38:10] pk at nodex dot ru I was try with lastest snapshot and in same error. ------------------------------------------------------------------------ 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

« previous php.bugs (#64483) next »