Re: Bug #1031: unlink causes seg fault

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Bug #1031: unlink causes seg fault
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-3312@lists.php.net to get a copy of this message
> 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? Uwe.Steinmann@fernuni-hagen.de would be the guy to ask about this. As for the bug. No combination of user-level function calls should cause a core dump. Was the problem that you were calling fclose() on a descriptor that was already closed? -Rasmus -- 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 (#3312) next »