cvs: /php4/ext/standard basic_functions.c

From: Date: Wed, 19 Apr 2000 18:37:20 +0000
Subject: cvs: /php4/ext/standard basic_functions.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-13761@lists.php.net to get a copy of this message
andrei Wed Apr 19 11:37:20 2000 EDT Modified files: /php4/ext/standard basic_functions.c Log: Just a type cast is sufficient. Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.184 php4/ext/standard/basic_functions.c:1.185 --- php4/ext/standard/basic_functions.c:1.184 Tue Apr 18 15:50:24 2000 +++ php4/ext/standard/basic_functions.c Wed Apr 19 11:36:50 2000 @@ -760,8 +760,8 @@ WRONG_PARAM_COUNT; } - convert_to_string_ex(num); - myaddr.s_addr = strtoul((*num)->value.str.val,NULL,10); + convert_to_long_ex(num); + myaddr.s_addr = (unsigned long)(*num)->value.lval; RETURN_STRING (inet_ntoa(myaddr), 1); }

« previous php.version4 (#13761) next »