Bug #62742 [NEW]: Memory leak in php -s while build with --enable-zend-multibyte
| From: | laruence@php.net | Date: | Fri, 03 Aug 2012 17:18:58 +0000 |
| Subject: | Bug #62742 [NEW]: Memory leak in php -s while build with --enable-zend-multibyte | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-172425@lists.php.net to get a copy of this message | ||
From: laruence
Operating system:
PHP version: 5.3.15
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Memory leak in php -s while build with --enable-zend-multibyte
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 bug report at https://bugs.php.net/bug.php?id=62742&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62742&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62742&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62742&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62742&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62742&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62742&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62742&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62742&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62742&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62742&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62742&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62742&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62742&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62742&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62742&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62742&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62742&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62742&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62742&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62742&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62742&r=mysqlcfg