Re: php 4.0.3pl1 and pdflib 3.02

From: Date: Wed, 25 Oct 2000 10:31:05 +0000
Subject: Re: php 4.0.3pl1 and pdflib 3.02
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-21977@lists.php.net to get a copy of this message
I am using Linux 2.2.17 <?php $fp = fopen("/tmp/php/test.pdf", "w"); $pdf = pdf_open($fp); pdf_set_info($pdf, "Author", "Uwe Steinmann"); pdf_set_info($pdf, "Title", "Test for PHP wrapper of PDFlib 2.0"); pdf_set_info($pdf, "Creator", "See Author"); pdf_set_info($pdf, "Subject", "Testing"); pdf_begin_page($pdf, 595, 842); pdf_add_outline($pdf, "Page 1"); pdf_set_font($pdf, "Times-Roman", 30, "host"); pdf_set_value($pdf, "textrendering", 1); pdf_show_xy($pdf, "Times Roman outlined", 50, 750); pdf_moveto($pdf, 50, 740); pdf_lineto($pdf, 330, 740); pdf_stroke($pdf); pdf_end_page($pdf); pdf_close($pdf); fclose($fp); echo "<A HREF=getpdf.php>finished</A>"; ?> This is an exerpt from www.php.net/manual/ I can not run this... Other apps that use pdf no longer work either How do I use gdb to make a backtrace? Chris Lee In article <Pine.LNX.4.21.0010260142290.5804-100000@sniper.igw.kolumbus.fi>, "Jani Taskinen" <sniper@iki.fi> wrote: > On Wed, 25 Oct 2000, Chris Lee wrote: > >>Ive having a problem getting everything to work right, it all was >>working hunky dory, for awhile, then today I find that generating pdfs >>gives apache 3.3.12 agood old segfault. specifically >> >>pdf_set_font($pdf, "Times-Roman", 10, 'winansi', 1); >> >>causes the fault. Ive configured php with > > Are you sure it is the one causing it? I tried adding that line into > one of my pdf-tests and I couldn't get it segfault. > > On which platform are you running PHP? Do you have any short but > complete script which I could use to try to reproduce this ?? Could you > provide a gdb backtrace? > > > ---Jani > >

« previous php.general (#21977) next »