Re: Bug #1031: unlink causes seg fault

From: Date: Wed, 06 Jan 1999 02:58:39 +0000
Subject: Re: Bug #1031: unlink causes seg fault
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-3311@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote: > > > When i remove/comment unlink, it works properly.. > > Likely just a side effect of a different problem. > > -Rasmus After a little bit of debugging...i found the answer to my problem.. According to the PHP manual page on PDF_close... "Note: It will not close the file. You need to call an extra fclose() after pdf_close()." This is wrong. I went searching through PDFlib, and found the PDF_function which makes reference to a function called pdf_finalize (p_basic.c:187): void pdf_finalize(PDF *p) { fclose(p->fp); ... This function _does_ close the file stream when PDF_close is called, contrary to the manual. Is there any future plans to have a function write PDFs to stdout? -- Michael Matsumura -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3311) next »