ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
Re: [PHP] Patch for PHP 4.0.6 memory limit problem posted
by Rouvas Stathis other posts by this author
Jul 1 2001 7:49PM messages near this date
Re: [PHP] Patch for PHP 4.0.6 memory limit problem posted | Re: [PHP] Patch for PHP 4.0.6 memory limit problem posted
Andi Gutmans wrote:
>  
>  At 10:17 PM 7/1/2001 +0300, Rouvas Stathis wrote:
>  >It is indeed strange, since in the sources I have (downloaded about a
>  >week ago), I already have the exact source that the patch presents
>  >(without the lines prefixed with +).
>  >I'm looking at $PHPHOME/Zend/zend_alloc.c file.
>  >
>  >Am I to suppose that there is no need to patch anything?
>  
>  The official package of PHP 4.0.6 (http://www.php.net/downloads.php) does
>  not have this patch. Are you sure you are looking at the release version?
>  Maybe you are using a snapshot or CVS version?

I do not use the CVS version, mainly because I do not know how to handle
CVS :-)
These are the lines from $PHPHOME/Zend/zend_alloc.c that I have.

<lines-from-443-to-454> 
443         if (1 || clean_cache) {
444                 zend_mem_header *ptr;
445 
446                 for (i=1; i<MAX_CACHED_MEMORY; i++) {
447                         for (j=0; j<AG(cache_count)[i]; j++) {
448                                 ptr = (zend_mem_header *)
AG(cache)[i][j];
449                                 REMOVE_POINTER_FROM_LIST(ptr);
450                                 free(ptr);
451                         }
452                         AG(cache_count)[i] = 0;
453                 }
454         }
</lines-from-443-to-454> 

What do you think?

-Stathis.
PS: Thank you for your time. I know how precious it is.

>  
>  Andi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@[...].net
For additional commands, e-mail: php-general-help@[...].net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
Thread:
Andi Gutmans
Rouvas Stathis
Rouvas Stathis
Andi Gutmans
Rouvas Stathis
Andi Gutmans
Rouvas Stathis
Andi Gutmans

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved