Date: 09/10/01
- Next message: vreddy <email protected>: "[PHP-DEV] Bug #13233: exec function finishes it's job and returns unsuccess value.."
- Previous message: Alexander Wagner: "Re: [PHP-DEV] Syntax error"
- In reply to: derick <email protected>: "[PHP-DEV] Bug #13230: PDF functions leak"
- Next in thread: derick <email protected>: "[PHP-DEV] Bug #13230 Updated: PDF functions leak"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 13230
Updated by: rjs
Reported By: derick <email protected>
Status: Open
Bug Type: PDF related
Operating System: Linux 2.4.5/RedHat
PHP Version: 4.0CVS-2001-09-10
New Comment:
You should call PDF_delete($); at the end of a script containing PDF functions. This will cleanup the resources allocated by PDFlib.
This might be done in the function given to zend_register_list_destructors_ex (_free_pdf_doc), but as I don't know documentation when this is called it is not yet integrated into the source pdf.c.
For the moment I donot know how to decide whether PDF_delete already was called when _free_pdf_doc() is called.
Regards
Rainer
Previous Comments:
------------------------------------------------------------------------
[2001-09-10 09:05:33] derick <email protected>
This piece of code:
<?php
$p = pdf_new ();
pdf_open_file ($p);
pdf_close ($p);
?>
Gives these leaks:
pdf.c(306) : Freeing 0x0820B324 (65536 bytes), script=3pdf.php
Last leak repeated 2 times
This code:
<?php
$p = pdf_new ();
?>
Gives this leak:
pdf.c(306) : Freeing 0x08200D54 (2116 bytes), script=3pdf.php
Last leak repeated 1 time
regards,
Derick
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13230&edit=1
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: vreddy <email protected>: "[PHP-DEV] Bug #13233: exec function finishes it's job and returns unsuccess value.."
- Previous message: Alexander Wagner: "Re: [PHP-DEV] Syntax error"
- In reply to: derick <email protected>: "[PHP-DEV] Bug #13230: PDF functions leak"
- Next in thread: derick <email protected>: "[PHP-DEV] Bug #13230 Updated: PDF functions leak"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

