ID: 29531 Updated by: [EMAIL PROTECTED] Reported By: pk at nodex dot ru -Status: Open +Status: Analyzed Bug Type: *General Issues Operating System: Solaris 9 PHP Version: 4.3.9 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [2004-08-05 11:58:55] pk at nodex dot ru Description: ------------ I`m trying to compile php with sfio lib. for stdio bug workaround. It configures and compiles is fine, but simple test.php script shows: Fatal error: Call to undefined function: fread() in /usr/home/kuzmich/apache/php-4.3.8/sapi/cli/test.php on line 3 Reproduce code: --------------- test.php: <? $p = fopen("./test".microtime(),"w+"); $buf = fread ($p,10); fclose($p); echo $buf; ?> configure script: CFLAGS="-I/home/kuzmich/sfio/include -I/usr/include -I/usr/local/include -I/opt/sfw/include" \ CXXFLAGS="-I/home/kuzmich/sfio/include -I/usr/include -I/usr/local/include -I/opt/sfw/include" \ CPPFLAGS="-I/home/kuzmich/sfio/include -I/usr/include -I/usr/local/include -I/opt/sfw/include" \ LDFLAGS="-L/usr/local/mnogosearch/lib -lmnogosearch -ludmsearch" \ EXTRA_LIBS=" -lstdio -lsfio -liconv -L/usr/local/mnogosearch/lib -lmnogosearch -ludmsearch" \ LIBS=" -lstdio -lsfio -liconv -L/usr/local/mnogosearch/lib -lmnogosearch -ludmsearch" \ ./configure \ --with-apache=/usr/home/export/compile/apache/apache \ --with-mod_charset \ --with-pgsql=/usr/local/pgsql \ --disable-debug \ --enable-calendar \ --enable-inline-otimization \ --with-zlib \ --with-gd=/usr/local \ --with-jpeg-dir=/usr/local/lib \ --with-png-dir=/usr/local/lib \ --with-xpm-dir=/usr/lib \ --with-freetype-dir=/usr/local \ --with-zlib-dir=/usr/lib \ --with-freetype-dir=/usr/local/freetype2 \ --enable-wddx \ --with-curl \ --with-expat \ --enable-trans-sid \ --with-iconv \ --enable-xslt \ --with-xslt-sablot \ --with-imap \ --with-imap-ssl \ --with-openssl=/usr/local/ssl \ --with-mnogosearch=/usr/local/mnogosearch \ --enable-dbase \ --with-mysql=/usr/local/mysql ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29531&edit=1