Re: [PHP-DEV] [Fwd: Re: [PHP] Howto return multidimensional arraysfrom a PHP module]

2001-02-05 Thread Filip Sielimowicz
I had the same problem. This is, how I managed to do this: extern "C" int fun1(pval** array) { //this is in c++ //here you generate subarrays - alements are added to the parameter array //this generates an array of strings ... int count=; for (int i=0;ivalue.ht,&arr_el,sizeof(zval**),N

Re: [PHP-DEV] PHP 4.0 Bug #8889: Memory is not being freed.

2001-01-31 Thread Filip Sielimowicz
U performance lowers down only a little bit. 5. We've found out that not only the php memory caches are responsible for described effect. When we use oci8 module - the effect comes back (but in smaller size), because there's independent memory management in that module (and in oracle libra

Re: [PHP-DEV] Re: PHP 4.0 Bug #8975 Updated: modulo (%) sets theritht operator to the result

2001-01-31 Thread Filip Sielimowicz
> for ( $i = 0; $i < array_count_values($whatever); $i++ ) > { > print($whatever[$i]); > > if ( $i % $rowcount = 0) >{ > print(""); > >} > > } > > and it kept resetting $rowcount to 0 and looping till it ran out of time. > I did'n know that '=' operator ha

Re: [PHP-DEV] PHP 4.0 Bug #8889: Memory is not being freed.

2001-01-29 Thread Filip Sielimowicz
On Sat, 27 Jan 2001, Rasmus Lerdorf wrote: > > It is not a leak exactly but more of a greed. It seems to be a > > semi-intentional but not necessary thing. It seems that the way Zend/PHP is > > allocating memory is not allowing it to be returned to the system. Once PHP > > has some memory it w

Re: [PHP-DEV] PHP 4.0 Bug #8889: Memory is not being freed.

2001-01-29 Thread Filip Sielimowicz
red in a list and there's a control on it. After my changes the list is not supported and it may cause many memory management problems (including the described, but in some different circumstances). Thanks for your response ! Filip Sielimowicz [EMAIL PROTECTED] -- PHP Development Mailing L

Re: [PHP-DEV] PHP 4.0 Bug #8889: Memory is not being freed.

2001-01-29 Thread Filip Sielimowicz
> A quick fix would be to set your MaxRequestsPerChild to a lower value. Have you ever tried to measure the time of killing and starting httpd process ? You can see that with a bare human eye. -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP-DEV] PHP 4.0 Bug #8889: Memory is not being freed.

2001-01-26 Thread Filip Sielimowicz
On 24 Jan 2001 [EMAIL PROTECTED] wrote: > From: [EMAIL PROTECTED] > Operating system: RH 7 > PHP version: 4.0.4 > PHP Bug Type: Performance problem > Bug description: Memory is not being freed. > > Hi guys, > > I do not have much information. I know that my Apache process

[PHP-DEV] PHP 4.0.x Persistent flag in memory management.

2001-01-23 Thread Filip Sielimowicz
This problem is of course related to the 'PHP holds memory too long', but I changed a title to make people interested in again... Filip Sielimowicz I would be VERY grateful for any response. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PRO

Re: [PHP-DEV] PHP 4.0 Bug #8753: Dynamic load library error

2001-01-17 Thread Filip Sielimowicz
How did you get the library ? Some possible reasons: 1. The source code of the library is wrong written (best way is to use ext_skel tool) or 1. Too old (from some very old php version) or 2. It was compiled with bad options. Every standard dynamic library must be compiled with options -DCOMPILE_

Re: [PHP-DEV] PHP 4.0 Bug #8752: Module compiled with 4.0.3 don'trun with 4.0.4 and v.v.

2001-01-17 Thread Filip Sielimowicz
I had the same problem. But as I think, it is just some safety system, because nobody says that modules from one version must fit to the others. Sometimes the changes in next versions are too deep. The ZEND_MODULE_API_NO parameter is defined in Zend/modules.h and is checked for example in dl fun

Re: [PHP-DEV] PHP4: php_module holds memory too long !

2001-01-15 Thread Filip Sielimowicz
d ? Can we change the size of this buffer ? And what moment is memory cleared at ? Here is a sort script, which I tested: Here is an example script: "; echo "Time:".time().""; //Memory allocation for ($i=0; $i<1000; $i++) { $TAB1['a'.$i]='tekst1&#x

Re: [PHP-DEV] PHP4: php_module holds memory to long !

2001-01-11 Thread Filip Sielimowicz
> The reason is that httpd memory usage patterns significantly differ from > your simple example. E.g., there might be some memory block allocated at > the end of the heap, which is not freed at the end of the request - and it > will prevent all the rest of memory from being returned to the system

Re: [PHP-DEV] PHP4: php_module holds memory to long !

2001-01-10 Thread Filip Sielimowicz
The answer is really not so easy. I have RedHat Linux 6.2 (with standard kernel, I suppose 2.1). I tried such program in c++: //File mall.cc #include #include #include #include int main() { void* v[1000]; for (int i=0;i<1000;i++) { v[i]=malloc(10); /

[PHP-DEV] PHP4: php_module holds memory to long !

2001-01-10 Thread Filip Sielimowicz
ing CACHE_MEMORY_DISABLED to 1 does not help. Also functions shutdown_memory_manager() and set_memory_manager are not simply useable. I suppose it is not Zend's memory cache, that is responsible for described effect. Filip Sielimowicz -- PHP Development Mailing List <http://www.php.net/> T