Bug #62742 [Opn]: Memory leak in php -s while build with --enable-zend-multibyte
| From: | nikic@php.net | Date: | Wed, 12 Sep 2018 23:37:24 +0000 |
| Subject: | Bug #62742 [Opn]: Memory leak in php -s while build with --enable-zend-multibyte | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217021@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62742&edit=1
ID: 62742
Updated by: nikic@php.net
Reported by: laruence@php.net
Summary: Memory leak in php -s while build with
--enable-zend-multibyte
Status: Open
Type: Bug
Package: Scripting Engine problem
PHP Version: 5.3.15
Block user comment: N
Private report: N
New Comment:
@laruence: Is this report still relevant?
Previous Comments:
------------------------------------------------------------------------
[2012-08-03 17:19:31] laruence@php.net
I have got a fix, will commit after I tested tomorrow :)
------------------------------------------------------------------------
[2012-08-03 17:18:57] laruence@php.net
Description:
------------
<code><span style="color: #000000">
<span style="color: #0000BB"><?php<br
/>$a </span><span style="color:
#007700">= new </span><span style="color:
#0000BB">SplFileInfo</span>
<span style="color: #007700">(</span><span style="color:
#0000BB">__FILE__</span><span style="color: #007700">);<br
/></span><span
style="color: #0000BB">$b </span><span style="color:
#007700">=
</span><span style="color: #0000BB">$a</span><span style="color:
#007700">->
</span><span style="color: #0000BB">openFile</span><span
style="color: #007700">
(</span><span style="color: #DD0000">'r'</span><span
style="color: #007700">);
<br /></span><span style="color: #0000BB">print_r</span><span
style="color:
#007700">(</span><span style="color: #0000BB">$b</span><span
style="color:
#007700">);<br /></span><span style="color:
#0000BB">print_r</span><span
style="color: #007700">(</span><span style="color:
#0000BB">get_class_methods</span><span style="color:
#007700">(</span><span
style="color: #DD0000">"SplFileObject"</span><span
style="color: #007700">));<br
/></span><span style="color: #0000BB">$file </span><span
style="color:
#007700">= new </span><span style="color:
#0000BB">SplFileObject</span><span style="color:
#007700">(</span><span
style="color: #0000BB">__FILE__</span><span style="color:
#007700">);<br />
</span><span style="color: #0000BB">var_dump</span><span
style="color: #007700">
(</span><span style="color: #0000BB">get_class_vars</span><span
style="color:
#007700">(</span><span style="color:
#DD0000">"SplFileObject"</span><span
style="color: #007700">));<br /></span>
</span>
</code>[Sat Aug 4 01:12:37 2012] Script: '/tmp/1.php'
Zend/zend_language_scanner.l(714) : Freeing 0x091F3600 (201 bytes),
script=/tmp/1.php
[Sat Aug 4 01:12:37 2012] Script: '/tmp/1.php'
Zend/zend_language_scanner.l(288) : Freeing 0x091F3720 (202 bytes),
script=/tmp/1.php
=== Total 2 memory leaks detected ===
Test script:
---------------
a php script, whatever it is
Expected result:
----------------
no leak
Actual result:
--------------
mem leak
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62742&edit=1