CVS update: php3/functions

From: Date: Wed, 06 Jan 1999 06:18:27 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-3318@lists.php.net to get a copy of this message
Date: Wednesday January 6, 1999 @ 1:18 Author: rasmus Update of /repository/php3/functions In directory asf:/home/rasmus/php3/functions Modified Files: pdf.c Log Message: From looking at the pdflib sources the PDF_close() library function calls PDF_finalize() which does an fclose() on the descriptor. So the file is closed which means we need to delete it from the file descriptor list. Index: php3/functions/pdf.c diff -c php3/functions/pdf.c:1.15 php3/functions/pdf.c:1.16 *** php3/functions/pdf.c:1.15 Mon Jan 4 09:25:21 1999 --- php3/functions/pdf.c Wed Jan 6 01:18:26 1999 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: pdf.c,v 1.15 1999/01/04 14:25:21 jah Exp $ */ /* pdflib 0.6 is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997 Thomas Merz. */ --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: pdf.c,v 1.16 1999/01/06 06:18:26 rasmus Exp $ */ /* pdflib 0.6 is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997 Thomas Merz. */ *************** *** 391,398 **** php3_error(E_WARNING,"Unable to find file identifier %d",id); RETURN_FALSE; } - PDF_close(pdf); RETURN_TRUE; } --- 391,398 ---- php3_error(E_WARNING,"Unable to find file identifier %d",id); RETURN_FALSE; } PDF_close(pdf); + php3_list_delete(id); RETURN_TRUE; } -- 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 (#3318) next »