|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-11-15 10:01 UTC] joey at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 08:00:02 2025 UTC |
When using a simple php script to create a pdf file, such as the ones posted on the mailing lists, the server segfaults in the pdf_get_info() function. <? $u = uniqid ("hi"); print "$u\n"; flush(); $a = fopen ("/tmp/$u.pdf", "w"); if (!$a) { print "couldn't open file!"; } else { print "hiasdifjaosidfj"; } flush(); $info = pdf_get_info(); print "two"; flush(); ..... the second print statement ("two") never gets printed. When attached to the process in gdb, the server segfaults at the following line: info->error_handler = pdf_default_error_handler; (line 114 p_basic.c) I couldn't really get any further with gdb, I don't understand why it would be segfaulting there. The sample C applications that come with pdflib work fine, and i've removed the appropriate line from pdf_close as outlined in the php documentation. The web server is apache 1.3.4 with mod_ssl-2.2.3-1.3.4. The configure line for php is: ./configure --with-apache=../apache_1.3.4 --with-gd=/usr/local --with-mysql --with-imap=/usr/local/imap --with-pdflib=/usr/local --enable-debug=no thanks, jason