CVS update: php3/doc/functions

From: Date: Wed, 10 Feb 1999 10:47:17 +0000
Subject: CVS update: php3/doc/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-4021@lists.php.net to get a copy of this message
Date: Wednesday February 10, 1999 @ 5:47 Author: steinm Update of /repository/php3/doc/functions In directory asf:/u/temp/cvs-serv20762/doc/functions Modified Files: pdf.sgml Log Message: - fixed segm fault when memory for pdf_info was freed - fixed set_color... functions - fixed pdf_add_outline() (small problem now: any call to pdf_add_outline() allocates memory which has to be freed by the php3 memory manager. This is due to a problem with pdflib. Can't see how to solve this in a cleaner way.) Index: php3/doc/functions/pdf.sgml diff -c php3/doc/functions/pdf.sgml:1.15 php3/doc/functions/pdf.sgml:1.16 *** php3/doc/functions/pdf.sgml:1.15 Mon Feb 8 09:52:54 1999 --- php3/doc/functions/pdf.sgml Wed Feb 10 05:47:17 1999 *************** *** 234,240 **** with <function>fopen</function> and the file descriptor passed as argument <parameter>file</parameter>. <parameter>info</parameter> is the an info structure that has to be created with ! <function>pdf_get_info</function>. <note><simpara> The return value is needed as the first parameter in all other --- 234,241 ---- with <function>fopen</function> and the file descriptor passed as argument <parameter>file</parameter>. <parameter>info</parameter> is the an info structure that has to be created with ! <function>pdf_get_info</function>. The info structure will be deleted ! within this function. <note><simpara> The return value is needed as the first parameter in all other *************** *** 1342,1347 **** --- 1343,1354 ---- <para> The <function>PDF_add_outline</function> function adds a bookmark with text <parameter>text</parameter> that points to the current page. + + <simpara> + Unfortunately pdflib does not make a copy of the string, which forces + PHP3 to allocate the memory. Currently this piece of memory is not + been freed by any PDF function but will be taken care of by the + PHP3 memory manager. </refsect1> </refentry> -- 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 (#4021) next »