Bug #13477: gethostbyname() result broken if used same variable as argument

From: Date: Fri, 28 Sep 2001 10:45:19 +0000
Subject: Bug #13477: gethostbyname() result broken if used same variable as argument
Groups: php.dev 
Request: Send a blank email to php-dev+get-66760@lists.php.net to get a copy of this message
From: khimich@ukr.net Operating system: FreeBSD 4.3 PHP version: 4.0CVS-2001-09-28 PHP Bug Type: Network related Bug description: gethostbyname() result broken if used same variable as argument This expression returns corrupted value: $host=gethostbyname($host); This variant is good: $temp=gethostbyname($host); $host=$temp; Even this: $host=$temp=gethostbyname($host); Return two corrupted values for $temp and $host Oleg Khimich. -- Edit bug report at: http://bugs.php.net/?id=13477&edit=1

« previous php.dev (#66760) next »