ID:               41615
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sms at inbox dot ru
-Status:           Open
+Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: Windows 2000 SP4
 PHP Version:      5.2.3
 New Comment:

Sorry, we can't fix something we can't reproduce.


Previous Comments:
------------------------------------------------------------------------

[2007-06-07 08:07:00] sms at inbox dot ru

I don't see a way to do it. I can't cut a part of a _huge_ board
script. 
If it was a specific code construction I could do some tests and
represent it here...

I had PHP 5.2.2 running for ~32 hours and it generated more than 800
memory errors. My stats show ~40,000 hits for that period. So it doesn't
fall over on every run.

I also found a few errors like this:
[26-May-2007 15:11:17] PHP Fatal error:  Out of memory (allocated
7340032) (tried to allocate 160209 bytes) in Unknown on line 0

When I upgraded to PHP 5.2.3 I thought the problem is gone - it worked
fine for the first 4 hours. And then it started all the same.


As I remember PHP 5.2.1 fixed "Out of memory" bug that some people have
in 5.2.0. So it's quite the contrary for me...

------------------------------------------------------------------------

[2007-06-06 22:41:32] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

Cannot reproduce.

------------------------------------------------------------------------

[2007-06-06 22:25:13] sms at inbox dot ru

memory_limit is now set to 128M.
PHP 5.2.0 works even with 16M though.

------------------------------------------------------------------------

[2007-06-06 22:13:54] [EMAIL PROTECTED]

What's the value of memory_limit?

------------------------------------------------------------------------

[2007-06-06 22:06:20] sms at inbox dot ru

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( "/\\\$/"      , "&#036;"        , $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 this bug report at http://bugs.php.net/?id=41615&edit=1

Reply via email to