From:             sms at inbox dot ru
Operating system: Windows 2000 SP4
PHP version:      5.2.3
PHP Bug Type:     *General Issues
Bug description:  "Out of memory" errors

Description:
------------
I use binary zip package from php.net on Apache 2.2.4 (via
php5apache2_2.dll). The problem: any version above 5.2.0 generates lots of
"Out of memory" errors in random scripts (for example, Invision Board
2.1.7) and random source code constructions - I can't see any pattern.
It was introduced in 5.2.1 and 5.2.2-5.2.3 didn't fix it. So I'm stuck
with 5.2.0. The same php.ini was used. Tried bigger "memory_limit" with no
luck...

I included 4 lines of source code and 4 corresponding errors.


Reproduce code:
---------------
1. function do_shutdown_insert( $tbl, $arr )

2. $val = preg_replace( "/\\\$/"      , "$"        , $val );

3. foreach ($filter_keys as  $k => $v)

4. if ( strstr( $result['location'], 'post' ) and $result['member_id'] !=
$this->ipsclass->member['id'] )

Expected result:
----------------
I expect no error as it was with 5.2.0 and below

Actual result:
--------------
and get this with 5.2.1-5.2.3:

1. [01-Jun-2007 23:37:14] PHP Fatal error:  Out of memory (allocated
1572864) (tried to allocate 6144 bytes) in
D:\Web\forums\ips_kernel\class_db.php on line 452
2. [01-Jun-2007 23:37:58] PHP Fatal error:  Out of memory (allocated
786432) (tried to allocate 24576 bytes) in
D:\Web\forums\sources\ipsclass.php on line 3748
3. [01-Jun-2007 23:38:34] PHP Fatal error:  Out of memory (allocated
2621440) (tried to allocate 393216 bytes) in
D:\Web\forums\sources\action_public\forums.php on line 912
4. [01-Jun-2007 23:39:00] PHP Fatal error:  Out of memory (allocated
2883584) (tried to allocate 393216 bytes) in
D:\Web\forums\sources\action_public\topics.php on line 523


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

Reply via email to