[PHP-DEV] Re: PHP 5 RC3RC2

2004-06-08 Thread Andreas Goetz
Andi, I'm suspecting a memory leak: - apache2 - php5.0.0rc3rc2 - winxp When opening php applications (phpMyAdmin or videoDB) and reloading the page (single user), memory keeps growing until swap file runs out of space- this was not experienced with previous versions. Let me know if I can help wit

[PHP-DEV] Confusing pointers in PHP 4 and 5

2004-06-08 Thread Taco van den Broek
While venus is crossing the sun I'm trying to model a tree using two arrays; one containing the structure of the tree and the other containing the data of the nodes. The second array also contains pointers to 'subtrees' of the first array. Anyway, I discovered a strange behavior when I dumped th

Re: [PHP-DEV] readfile() improvements

2004-06-08 Thread Alexander Valyalkin
On Mon, 7 Jun 2004 20:02:54 +0400, Antony Dovgal <[EMAIL PROTECTED]> wrote: On Mon, 07 Jun 2004 18:55:52 +0300 "Alexander Valyalkin" <[EMAIL PROTECTED]> wrote: On Mon, 07 Jun 2004 17:07:06 +0300, Andi Gutmans <[EMAIL PROTECTED]> wrote: > Can you send a unified diff? > `cvs diff -u`, plz or `diff

[PHP-DEV] Mem Leak in Tidy, ZE2 Bug?

2004-06-08 Thread Christian Stocker
Hi I'm not sure, who to blame about this one, but I run against a memory leak if I run the following code: *** $html = "foo"; $options = array("char-encoding" => "utf8"); $tidy = new tidy(); $tidy->parseString($html,$options,$options['char-encoding']); print $tidy; *** If the 3rd param is not par

Re: [PHP-DEV] Mem Leak in Tidy, ZE2 Bug?

2004-06-08 Thread Nuno Lopes
> Hi > > I'm not sure, who to blame about this one, but I run against a memory > leak if I run the following code: > *** > $html = "foo"; > $options = array("char-encoding" => "utf8"); > $tidy = new tidy(); > $tidy->parseString($html,$options,$options['char-encoding']); > print $tidy; > *** > > If

Re: [PHP-DEV] readfile() improvements

2004-06-08 Thread Morten K. Poulsen
On Tue, 2004-06-08 at 11:32, Alexander Valyalkin wrote: > +/* get the length of local file connected to descriptor fd */ > fstat(fd, &sbuf); [snip] > +if (errno) { Oh-oh! You need to check the return value of fstat(). Errno is only set if fstat() fails (returns -1), otherw

Re: [PHP-DEV] Mem Leak in Tidy, ZE2 Bug?

2004-06-08 Thread Derick Rethans
On Tue, 8 Jun 2004, Nuno Lopes wrote: > You shouldn't use the char-encoding as option (the second paramether)!! You > should just set the last parameter, as it will set the input and ouput > charset!! No need for those extra exclamation marks, and even *if* he used the function wrongly it shouldn

Re: [PHP-DEV] Mem Leak in Tidy, ZE2 Bug?

2004-06-08 Thread Christian Stocker
On 8.6.2004 12:42 Uhr, Nuno Lopes wrote: Hi I'm not sure, who to blame about this one, but I run against a memory leak if I run the following code: *** $html = "foo"; $options = array("char-encoding" => "utf8"); $tidy = new tidy(); $tidy->parseString($html,$options,$options['char-encoding']); prin

Re: [PHP-DEV] Mem Leak in Tidy, ZE2 Bug?

2004-06-08 Thread John Coggeshall
I'll poke around at it today John On Tue, 2004-06-08 at 07:58, Christian Stocker wrote: > On 8.6.2004 12:42 Uhr, Nuno Lopes wrote: > > >>Hi > >> > >>I'm not sure, who to blame about this one, but I run against a memory > >>leak if I run the following code: > >>*** > >>$html = "foo"; > >>$options

Re: [PHP-DEV] PHP5 rocks!

2004-06-08 Thread Jason Garber
To add.. The 18 of us here at IonZoft wish to thank all members of the PHP team and everyone who has helped make it happen. We have built a fast growing company totally focused on solutions based on PHP, and are very excited about the release of PHP5. Thanks! Jason Garber At 6/7/2004 09:51 PM

[PHP-DEV] stripslashes() improvements

2004-06-08 Thread Alexander Valyalkin
Today I checked stripslashes() function. My version of the function if faster, more clearer and bugs free (I hope :)) Below you can see the source and unified diff: source= PHPAPI void php_stripslashes(char *str, size_t *len TSRMLS_DC) { char *s, *t; size_t l;

Re: [PHP-DEV] stripslashes() improvements

2004-06-08 Thread Derick Rethans
On Tue, 8 Jun 2004, Alexander Valyalkin wrote: > Today I checked stripslashes() function. > My version of the function if faster, more clearer and bugs free (I hope > :)) You'll have to proof that by writing testcases, for example try it with the test cases in the current source and write new one

[PHP-DEV] Bouncer Test

2004-06-08 Thread Aidan Lister
This is a test message to detect any automated spam. Please don't reply, or you may be removed from the list accidently. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Mem Leak in Tidy, ZE2 Bug?

2004-06-08 Thread Ilia Alshanetsky
The leak had been fixed. Ilia -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/mysqli mysqli_api.c

2004-06-08 Thread Sebastian Bergmann
Steph wrote: > win32 build's failing now only on one export: Fails on 10 for me: mysqli.obj: error LNK2001: Unresolved external symbol _client_errors mysqli_repl.obj: error LNK2019: Unresolved external symbol '[EMAIL PROTECTED]', in '_zif_mysqli_disable_reads_from_master' mysqli_repl.obj: error

RE: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/mysqli mysqli_api.c

2004-06-08 Thread Steph
Sorry Sebastian, I should've been more clear. I'm working from mysql src here, I fixed 10 of the 11 4.1.2 ext/mysqli export errors I started out with by adding them to the defs file; this final error didn't want to be fixed that way. I just don't get how something can be listed as an export and b

[PHP-DEV] date('w') return type

2004-06-08 Thread dharana
I know I can just cast to int, but is it ok to return an string for things that can only be numbers? prints false, but I expected it to return an int. Am I wrong? I imagine it's the same thing with the rest of date's return values. Btw, I don't hope it will be changed because it would probably bre

Re: [PHP-DEV] date('w') return type

2004-06-08 Thread Curt Zirzow
* Thus wrote dharana ([EMAIL PROTECTED]): > I know I can just cast to int, but is it ok to return an string for > things that can only be numbers? > > > // imagine today is sunday > var_export(date('w') === 0); > ?> > > prints false, but I expected it to return an int. Am I wrong? I imagine > i

Re: [PHP-DEV] date('w') return type

2004-06-08 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > > Looks like it returns a string. > oops.. sorry I thought this was a php-general question. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -

[PHP-DEV] 'false' - boolean interpratation

2004-06-08 Thread Robert Janeczek
is there any way that string 'false' (and its variations with capital letters) could be interpeted as boolean of value false? i have xml configuration file that has some switches (true/false) in it. when i use this values in functions that require booleans i get true every time (as string isn`t emp

[PHP-DEV] Re: 'false' - boolean interpratation

2004-06-08 Thread Hans Lellelid
Robert Janeczek wrote: is there any way that string 'false' (and its variations with capital letters) could be interpeted as boolean of value false? i have xml configuration file that has some switches (true/false) in it. when i use this values in functions that require booleans i get true every ti

[PHP-DEV] suddenly I have mysqli 4.1.2 lib & headers :)

2004-06-08 Thread Steph
Anyone want to play? - Steph DevZone Editor www.zend.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] 'false' - boolean interpratation

2004-06-08 Thread Derrell . Lipman
"Robert Janeczek" <[EMAIL PROTECTED]> writes: > is there any way that string 'false' (and its variations with capital > letters) could be interpeted as boolean of value false? i have xml > configuration file that has some switches (true/false) in it. when i use > this values in functions that requ

[PHP-DEV] Re: Confusing pointers in PHP 4 and 5

2004-06-08 Thread Sara Golemon
> As you can see the original tree now contains a pointer, how can that > be, I didn't change the original array!? > So what I'd like to know is: Is this intended behavior, and if so: why > does it work like this and would it make some operations impossible? > The truth of it is, this was true in

Re: [PHP-DEV] 'false' - boolean interpratation

2004-06-08 Thread Nick Loeve
Derrell Lipman wrote: "Robert Janeczek" <[EMAIL PROTECTED]> writes: is there any way that string 'false' (and its variations with capital letters) could be interpeted as boolean of value false? i have xml configuration file that has some switches (true/false) in it. when i use this values in funct