ID: 25401 User updated by: sj at ewetel dot de Reported By: sj at ewetel dot de -Status: Feedback +Status: Open Bug Type: PDF related Operating System: Solaris 2.8 PHP Version: 4.3.3 New Comment:
configure is: ./configure --prefix=/webserver/libs/php-4.3.3 --enable-force-cgi-redirect --with-openssl=/webserver/libs/openssl-0.9.7b --with-zlib --with-zlib-dir=/webserver/libs/zlib-1.1.4 --enable-bcmath --enable-calendar --with-jpeg-dir=/webserver/gfx-libs --with-tiff-dir=/webserver/gfx-libs --enable-ftp --with-gd --with-png-dir=/webserver/gfx-libs --with-jpeg-dir=/webserver/gfx-libs --with-freetype-dir=/webserver/gfx-libs --enable-gd-native-ttf --with-mysql=/webserver/mysql --with-pdflib=/webserver/libs/pdflib-4.0.3-SunOS/bind/c --with-tiff-dir=/webserver/gfx-libs --enable-wddx --enable-memory-limit --with-ldap=/webserver/libs/openldap-2.1.22 --enable-sysvsem --enable-sysvshm --with-apxs=/webserver/server/apache-1.3.28/bin/apxs --with-config-file-path=/webserver/apache/conf/php --with-curl=/webserver/libs/curl-7.10.7 it seems to work with the cli interpreter. (in the php version i used before pdflib works with exactly the same configure, lib versions and apache) here's the telnet output: HTTP/1.1 200 OK Date: Sat, 06 Sep 2003 17:16:24 GMT Server: Apache/1.3.28 (Unix) PHP/4.3.3 mod_ssl/2.8.15 OpenSSL/0.9.7b X-Powered-By: PHP/4.3.3 Transfer-Encoding: chunked Content-Type: text/html 0 Previous Comments: ------------------------------------------------------------------------ [2003-09-06 10:05:45] [EMAIL PROTECTED] Works fine for me with PHP 4.3.3 (and latest CVS too). What configure line did you use? What if you run the script on command line (using CLI)? Are you sure you're not getting some error there? etc. etc. ------------------------------------------------------------------------ [2003-09-06 09:19:47] sj at ewetel dot de Description: ------------ Since Upgrading to 4.3.3 the supplied test script does not generate any output. A telnet session gives only "0" back as body, last known working version is php4-STABLE-200303261230. Tried with pdflib 4.0.3 (.so) and 5.0.1 (.a) same error with both, nothing to see in the logs. Reproduce code: --------------- <?php $p = PDF_new(); PDF_open_file($p, ""); PDF_set_info($p, "Creator", "hello.php"); PDF_set_info($p, "Author", "Rainer Schaaf"); PDF_set_info($p, "Title", "Hello world (PHP)"); PDF_begin_page($p, 595, 842); # Change "host" encoding to "winansi" or whatever you need! $font = PDF_findfont($p, "Helvetica-Bold", "host", 0); PDF_setfont($p, $font, 18.0); PDF_set_text_pos($p, 50, 700); PDF_show($p, "Hello world!"); PDF_continue_text($p, "(says PHP)"); PDF_end_page($p); PDF_close($p); $buf = PDF_get_buffer($p); $len = strlen($buf); header("Content-type: application/pdf"); header("Content-Length: $len"); header("Content-Disposition: inline; filename=hello.pdf"); print $buf; PDF_delete($p); ?> Expected result: ---------------- The generated PDF should show up in the browser. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25401&edit=1