Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Tom Fishwick
I was reading an email from stdin. But regardless of bad coding style :-), the script is using _way_ more memory than it should. $s = ''; while(strlen($s) < 266768) { $s.= 'd'; } this code uses 151Megs on my system. the same code uses about 2megs with php4.3. php4.3 seems to realloc/mem

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-09 Thread Tom Fishwick
yup, works for me, thanks andi. Andi Gutmans <[EMAIL PROTECTED]> wrote: > > Tom, > > This should be fixed now. Please update your Zend CVS and let me know if it > works for you. > > Andi > > At 08:06 PM 12/8/2002 -0800, Tom Fishwick wrote: > >

[PHP-DEV] caller function?

2001-02-10 Thread Tom Fishwick
hi people, I was just wondering if the caller() function is being worked on? I have this application that's about 6000 lines of php code, and aprox, 1/4 done. I've been starting to put in my methods stuff like if(get_class($foo) != 'foo')) trigger_error('$foo is not of type foo',E_USER