From: sj at ewetel dot de Operating system: Solaris 2.8 PHP version: 4.3.3 PHP Bug Type: PDF related Bug description: pdflib does not generate pdf
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 bug report at http://bugs.php.net/?id=25401&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25401&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25401&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25401&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25401&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25401&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25401&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25401&r=support Expected behavior: http://bugs.php.net/fix.php?id=25401&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25401&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25401&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25401&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25401&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25401&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25401&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25401&r=gnused