Bug #60218 [Ana->Csd]: instantiating unknown class leads to memory leak in cli
| From: | dsp@php.net | Date: | Sat, 12 Nov 2011 17:22:28 +0000 |
| Subject: | Bug #60218 [Ana->Csd]: instantiating unknown class leads to memory leak in cli | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165090@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60218&edit=1
ID: 60218
Updated by: dsp@php.net
Reported by: yohgaki at ohgaki dot net
Summary: instantiating unknown class leads to memory leak in
cli
-Status: Analyzed
+Status: Closed
Type: Bug
Package: Unknown/Other Function
Operating System: Linux x86_64
PHP Version: 5.4SVN-2011-11-04 (SVN)
-Assigned To:
+Assigned To: dsp
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-11-12 16:49:38] dsp@php.net
updated the title
------------------------------------------------------------------------
[2011-11-12 16:40:48] dsp@php.net
The following patch has been added/updated:
Patch Name: ensure-efree-of-oparray
Revision: 1321116048
URL: https://bugs.php.net/patch-display.php?bug=60218&patch=ensure-efree-of-oparray&revision=1321116048
------------------------------------------------------------------------
[2011-11-12 16:39:04] dsp@php.net
The following patch has been added/updated:
Patch Name: 60218-try-catch-efree-op-array
Revision: 1321115944
URL: https://bugs.php.net/patch-display.php?bug=60218&patch=60218-try-catch-efree-op-array&revision=1321115944
------------------------------------------------------------------------
[2011-11-12 16:38:41] dsp@php.net
I added a patch that fixes it for me
------------------------------------------------------------------------
[2011-11-05 00:32:16] yohgaki at ohgaki dot net
> 1. The documentation examples don't use 'new'. This works:
> php -r '$o = dir(".");'
It should always raise error for it, I suppose.
Strange thing is 'It works' sometimes.
If leak and other problem(works for sometimes) are specific to dir(), I think
dropping dir() is an option.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=60218
--
Edit this bug report at https://bugs.php.net/bug.php?id=60218&edit=1