|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23542 Crash when PDF functions used in class
Submitted: 2003-05-08 06:30 UTC Modified: 2003-05-17 12:39 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: pvy at novosoft dot ru Assigned:
Status: Not a bug Package: PDF related
PHP Version: 4.3.2RC4-dev OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pvy at novosoft dot ru
New email:
PHP Version: OS:


 [2003-05-08 06:30 UTC] pvy at novosoft dot ru
this bug you can reproduce:
see next code:
$p = new pdf();

class pdf {
	function pdf() {
		$p = PDF_new();
		$opened = PDF_open_file ($p, "");
and ran it under IIS5. 
first time you get message about PDF_delete cannot be used in document scope
after reload a page you get violation access error.

but code as next:
	$p = PDF_new();
	$opened = PDF_open_file ($p, "");
working fine (gives error about PDF_Delete and don't hang IIS).
I'm purposely not write pdf_close, and pdf_delete functions
in my case, i would be sure, if some errors happens, IIS still live for any another request.
In case apache under linux, apaches child still lives and eat CPU and memory.

I cannot use CVS PHP versions. I can use only PHP releases.

Russian Federation


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-08 21:25 UTC] pvy at novosoft dot ru
Also, I want only post small addition:
tested on 4.2.3, 4.3.0, and 4.3.2RC2 same results as I wrote
 [2003-05-17 12:39 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Upgrade to pdflib 5.0, after the upgrade the problem went away.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jul 08 02:01:27 2020 UTC