ID:               29531
 User updated by:  pk at nodex dot ru
-Summary:          fread undeclared when compiles with sfio
 Reported By:      pk at nodex dot ru
 Status:           Open
-Bug Type:         *Compile Issues
+Bug Type:         *General Issues
 Operating System: Solaris 9
-PHP Version:      4.3.8
+PHP Version:      4.3.9
 New Comment:

Can anybody help me with this bug?


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

[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

Reply via email to