Bug #13477 Updated: gethostbyname() result broken if used same variable as argument
| From: | derick@php.net | Date: | Fri, 28 Sep 2001 11:46:29 +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-66763@lists.php.net to get a copy of this message | ||
ID: 13477
Updated by: derick
Reported By: khimich@ukr.net
Status: Feedback
Bug Type: Network related
Operating System: FreeBSD 4.3
PHP Version: 4.0CVS-2001-09-28
New Comment:
Also tried it on php 4.0.8dev on FreeBSD 4.3. Works fine too.
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-09-28 07:02:40] derick@php.net
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
------------------------------------------------------------------------
[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