From: admin at evodot dot de
Operating system: debian linux 3.0
PHP version: 4.3.3
PHP Bug Type: FDF related
Bug description: fdf-functions so not work
Description:
------------
On a debian linux 3.0 with all-standard packages the phplib
is to be substituted by a self-compiled one incl. fdf-support.
Got the sources of php 4.3.3 and FdfTk v5.0 and compiled
without severe problems (only some develop-packages, which
had to be added).
But of the fdf-functions is actually available, i.e. any
of 'fdf_open( $file )', 'fdf_open_string( "$HTTP_FDF_DATA" )'
or even 'fdf_create()' fails without any further comment.
In the log you can only find the complaints of
'fdf_close()', 'fdf_save()' and so on ...
Btw. I tried both, fdf as shared object and statical linked
into php:
./configure --prefix=/usr/local --with-exec-dir=/usr/local/lib/php
--with-pgsql=no --with-mysql=shared,/usr --with-gd=shared,/usr
--with-tiff-dir=shared,/usr --with-jpeg-dir=shared,/usr
--with-png-dir=shared,/usr --with-xpm-dir=shared,/usr/X11R6
--with-pdflib=no
--with-imap=no --with-ldap=no --with-zlib=yes --with-xml --with-ttf
--with-sablot --with-readline --with-ftp --with-gettext=no --with-mm
--with-freetype-dir=shared,/usr --enable-versioning --enable-yp=no
--enable-bcmath --enable-trans-sid --enable-inline-optimization
--enable-track-vars --enable-magic-quotes --enable-safe-mode
--enable-sockets --enable-sysvsem --enable-sysvshm --enable-shmop
--enable-exif --enable-ftp --enable-memory-limit --enable-wddx
--enable-filepro --enable-dbase --with-config-file-path=/etc/php4/apache
--with-apxs=/usr/bin/apxs --with-fdftk=/usr/local
resp. --with-fdftk=shared,/usr/local
Reproduce code:
---------------
$fdf_doc = fdf_create () or error_log ( "test.php: \
fdf_create() failed", 0 );
fdf_save ( $fdf_doc, "/tmp/test.fdf" ) or error_log ( \
"test.php: fdf_save() failed", 0 );
fdf_close ( $fdf_doc );
Expected result:
----------------
to have a fdf-file named /tmp/test.fdf ... sort of :-}
Actual result:
--------------
[04-Nov-2003 17:10:24] test.php: fdf_create() failed
[04-Nov-2003 17:10:24] PHP Warning: fdf_save() expects \
parameter 1 to be resource, boolean given in \
/var/apache/htdocs/test.php on line 15
[04-Nov-2003 17:10:24] test.php: fdf_save() failed
[04-Nov-2003 17:10:24] PHP Warning: fdf_close(): supplied \
argument is not a valid fdf resource in \
/var/apache/htdocs/test.php on line 17
--
Edit bug report at http://bugs.php.net/?id=26118&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26118&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26118&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26118&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26118&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26118&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26118&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26118&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26118&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26118&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26118&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26118&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26118&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26118&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26118&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26118&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26118&r=float