Re: [PHP-DEV] Sablotron leaks

2001-06-25 Thread Stanislav Malyshev
RL>> > $xsl = join("", file("x.xsl")); RL>> RL>> Blah... I see this a lot. We should probably just relent and make a RL>> function that reads an entire file into a string. I said this a year ago... Somehow there were counter-argunets on that (I don't remember what they were, but it's still not

RE: [PHP-DEV] Read a file into a string (RE: [PHP-DEV] Sablotron leaks)

2001-06-24 Thread Brian Tanner
Doesn't this do that? $FilePointer=fopen($FileLocation,"r"); $_MyString.=fread($FilePointer,filesize ($FileLocation)); fclose($FilePointer); Althought I guess this could suck memory pretty hard on large files, and you guys want to get away from that... -Brian > Blah... I see this a l

[PHP-DEV] Read a file into a string (RE: [PHP-DEV] Sablotron leaks)

2001-06-24 Thread Marten Gustafsson
> Blah... I see this a lot. We should probably just relent and make a > function that reads an entire file into a string. Yes, please do :) Regards, Marten. ps. This has been requested in #5008, #7213 and #8882. -- PHP Development Mailing List To unsubscribe, e-mail: [

Re: [PHP-DEV] Sablotron leaks

2001-06-24 Thread Martin Jansen
On Sun, 24 Jun 2001 10:32:06 -0700 (PDT), Rasmus Lerdorf wrote: >> $xsl = join("", file("x.xsl")); > >Blah... I see this a lot. We should probably just relent and make a >function that reads an entire file into a string. +1 - Martin -- PHP Development Mailing List To

Re: [PHP-DEV] Sablotron leaks

2001-06-24 Thread Phil Driscoll
On Sunday 24 June 2001 18:32, Rasmus Lerdorf wrote: > > $xsl = join("", file("x.xsl")); > > Blah... I see this a lot. We should probably just relent and make a > function that reads an entire file into a string. Yes please! -- Phil Driscoll -- PHP Development Mailing List

Re: [PHP-DEV] Sablotron leaks

2001-06-24 Thread Sebastian Bergmann
Rasmus Lerdorf wrote: > Blah... I see this a lot. We should probably just relent and make a > function that reads an entire file into a string. +1 :) -- sebastian bergmann[EMAIL PROTECTED] http://www.sebastian-bergmann.de

Re: [PHP-DEV] Sablotron leaks

2001-06-24 Thread Rasmus Lerdorf
> $xsl = join("", file("x.xsl")); Blah... I see this a lot. We should probably just relent and make a function that reads an entire file into a string. -Rasmus -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: [PHP-DEV] Sablotron leaks

2001-06-24 Thread Stanislav Malyshev
sh>> I'd need to see your test script to give you an answer, that sh>> repeat count does look nasty (with an FYI that I'm no longer sh>> maintaining Sablot, as all my development efforts are now sh>> focused on the XSLT extension..) The script is pretty plain: -- Stanislav Malyshev, Zend Prod

Re: [PHP-DEV] Sablotron leaks

2001-06-24 Thread sterling hughes
On 24 Jun 2001 19:09:24 +0300, Stanislav Malyshev wrote: > Wehn using Sablotron extension, I see the following leaks: > > /home/frodo/php4/ext/sablot/sablot.c(1397) : Freeing 0x083AF0FC (12 > bytes), script=test_xsl.php > Last leak repeated 899 times > /home/frodo/php4/ext/sablot/sablot.c(555) :

[PHP-DEV] Sablotron leaks

2001-06-24 Thread Stanislav Malyshev
Wehn using Sablotron extension, I see the following leaks: /home/frodo/php4/ext/sablot/sablot.c(1397) : Freeing 0x083AF0FC (12 bytes), script=test_xsl.php Last leak repeated 899 times /home/frodo/php4/ext/sablot/sablot.c(555) : Freeing 0x083F11F4 (77 bytes), script=test_xsl.php Last leak repeat