Re: [PHP4BETA] cvs: /php4/ext/standard basic_functions.c

From: Date: Wed, 19 Apr 2000 13:46:32 +0000
Subject: Re: [PHP4BETA] cvs: /php4/ext/standard basic_functions.c
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-13736@lists.php.net to get a copy of this message
On Tue, 18 Apr 2000, Evan Klinger wrote: > evan Tue Apr 18 15:50:54 2000 EDT > > Modified files: > /php4/ext/standard basic_functions.c > Log: > @- Fixed long2ip() to return the correct IP address. (Evan) > # ip2long() is still broken. > > > Index: php4/ext/standard/basic_functions.c > diff -u php4/ext/standard/basic_functions.c:1.183 php4/ext/standard/basic_functions.c:1.184 > --- php4/ext/standard/basic_functions.c:1.183 Wed Apr 12 12:39:02 2000 > +++ php4/ext/standard/basic_functions.c Tue Apr 18 15:50:24 2000 > @@ -760,8 +760,8 @@ > WRONG_PARAM_COUNT; > } > > - convert_to_long_ex(num); > - myaddr.s_addr = (*num)->value.lval; > + convert_to_string_ex(num); > + myaddr.s_addr = strtoul((*num)->value.str.val,NULL,10); > > RETURN_STRING (inet_ntoa(myaddr), 1); > } What is the meaning of this patch? The old version worked fine for me. -Andrei "When I get a little money, I buy books; and if any is left I buy food and clothes." -- Erasmus

« previous php.version4 (#13736) next »