Re: [PHP4BETA] bugs and a leak

From: Date: Thu, 13 Apr 2000 15:14:33 +0000
Subject: Re: [PHP4BETA] bugs and a leak
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-13501@lists.php.net to get a copy of this message
On Thu, 13 Apr 2000, Chad Cunningham wrote: > > I'm not sure if these are bugs or if I'm just expecting too much... Using > RC1. > > First problem I've noticed is that fread($fp, -128) does not move the > offset at all, much less to 128 bytes from the end... Shouldn't this work? You must be thinking of fseek(). > $byte &= f0; > $byte &= 0xf0; > > The first one, while giving the correct answer, issues the following > > zend_execute.c(1937) : Freeing 0x08142B2C (3 bytes), script=./test.php > zend_variables.c(125) : Actual location (location was relayed) > > The second one, while not giving the correct answer, does not leak. Should > not both of these do the same thing (without leaking memory..)? I've never been aware that PHP treats "f0" as a hex number. I think for hex numbers you always need to use 0x prefix. -Andrei "Freedom comes when you learn to let go. Creation comes when you learn to say no." -madonna

« previous php.version4 (#13501) next »