php.net |  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
Votes:2
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pvy at novosoft dot ru
New email:
PHP Version: OS:

 

 [2003-05-08 06:30 UTC] pvy at novosoft dot ru
hello!
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.

vladimir.
Novosibirsk,
Russian Federation
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] iliaa@php.net
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 http://www.php.net/support.php 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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 23:01:29 2024 UTC