ID: 41615 Updated by: [EMAIL PROTECTED] Reported By: sms at inbox dot ru -Status: Open +Status: Feedback -Bug Type: *General Issues +Bug Type: Unknown/Other Function Operating System: Windows 2000 SP4 PHP Version: 5.2.3 New Comment:
What's the value of memory_limit? Previous Comments: ------------------------------------------------------------------------ [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( "/\\\$/" , "$" , $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