PHP 4.0 Bug #9718 Updated: Memory leak when passing String values into methods through COM
| From: | Jason at hspace dot net | Date: | Tue, 13 Mar 2001 03:18:49 +0000 |
| Subject: | PHP 4.0 Bug #9718 Updated: Memory leak when passing String values into methods through COM | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-48786@lists.php.net to get a copy of this message | ||
ID: 9718
User Update by: Jason@hspace.net
Status: Open
Bug Type: COM related
Description: Memory leak when passing String values into methods through COM
That wasn't it... I tried it without passing a constant, and it's still leaking memory! So
this is an outstanding serious bug with no workaround.
Previous Comments:
---------------------------------------------------------------------------
[2001-03-12 21:57:39] Jason@hspace.net
Found the problem.
It only leaks memory, if I pass a CONSTANT from PHP to the COM object.
All I have to do now is rewrite the php so that I'm passing a variable, not a constant.
Probably this issue can be closed after someone has a look into it.
---------------------------------------------------------------------------
[2001-03-12 21:48:59] Jason@hspace.net
I added methods to pass String values into the static variables.
Passing String values into method in COM object also leaks memory.
Example:
COM object has method test(String a) and a static variable b
The method sets the variable b to a.
In PHP, I execute the COM object's method:
$t_obj->test("This is a test string.");
Memory leak when passing String into COM object.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9718