Commit: 9e2320626559caacef641dd4bedf9450650aeab2 Author: Rasmus Lerdorf <[email protected]> Sat, 21 Jul 2018 06:26:53 -0400 Parents: 196bfff9ba2f35e3b37665f430ea2ba1edf5e7f8 Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=9e2320626559caacef641dd4bedf9450650aeab2 Log: IPV6 support Changed paths: M include/functions.php Diff: diff --git a/include/functions.php b/include/functions.php index 378a7ed..36d8648 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1621,7 +1621,7 @@ function bugs_add_comment($bug_id, $from, $from_name, $comment, $type = 'comment return $dbh->prepare(" INSERT INTO bugdb_comments (bug, email, reporter_name, comment, comment_type, ts, visitor_ip) - VALUES (?, ?, ?, ?, ?, NOW(), INET_ATON(?)) + VALUES (?, ?, ?, ?, ?, NOW(), INET6_ATON(?)) ")->execute(array( $bug_id, $from, $from_name, $comment, $type, (!empty($_SERVER['REMOTE_ADDR'])?$_SERVER['REMOTE_ADDR']:'127.0.0.1') )); -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
