From:             paulsidekick at gmail dot com
Operating system: *nix
PHP version:      5.3.1
PHP Bug Type:     Performance problem
Bug description:  memory_get_usage() reports higher in php 5.3

Description:
------------
Upgraded to php 5.3 and memory_get_usage reports significantly higher 
for php scripts memory usage both using command line and apache.

To rule out any issues with my code, I removed everything other than the 
call to memory_get_usage();

5.2 consistently reports 70-90k while php 5.3 consistently reports 600-
700k base memory usage for this one line script.  I tried this on mac os 
X and CENT OS/RHEL 5.3, same result.

To make certain it was not something about the way they were compiled I 
downloaded and compiled php 5.2 and 5.3 source from scratch with no 
compile options to make sure I am using the defaults and get the same 
results across several systems.


Reproduce code:
---------------
<?php
echo memory_get_usage();
?>

Expected result:
----------------
70-90k (88232) like PHP 5.2 had.

Actual result:
--------------
600-700k (630752) with php 5.3

-- 
Edit bug report at http://bugs.php.net/?id=50794&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50794&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50794&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50794&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50794&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50794&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50794&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50794&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50794&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50794&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50794&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50794&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50794&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50794&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50794&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50794&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50794&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50794&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50794&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50794&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50794&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50794&r=mysqlcfg

Reply via email to