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

From: Date: Fri, 28 Sep 2001 11:02:41 +0000
Subject: Bug #13477 Updated: gethostbyname() result broken if used same variable as argument
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-66761@lists.php.net to get a copy of this message
ID: 13477 Updated by: derick Reported By: khimich@ukr.net Old Status: Open Status: Feedback Bug Type: Network related Operating System: FreeBSD 4.3 PHP Version: 4.0CVS-2001-09-28 New Comment: I could not reproduce this with PHP 4.0.3/OpenBSD, PHP 4.0.6/Linux, PHP 4.0.7RC2/Linux or latest CVS/Linux... Can you please post the whole script, and possible can you show us the failing script on a webserver? Derick Previous Comments: ------------------------------------------------------------------------ [2001-09-28 06:45:18] khimich@ukr.net 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 this bug report at http://bugs.php.net/?id=13477&edit=1

« previous php.dev (#66761) next »