php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76961 https://bugs.php.net/vote.php throws a Server Error over ipv6
Submitted: 2018-10-02 15:19 UTC Modified: 2018-12-11 00:47 UTC
Votes:6
Avg. Score:3.5 ± 0.8
Reproduced:3 of 4 (75.0%)
Same Version:2 (66.7%)
Same OS:2 (66.7%)
From: sjon at hortensius dot net Assigned:
Status: Verified Package: Systems problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sjon at hortensius dot net
New email:
PHP Version: OS:

 

 [2018-10-02 15:19 UTC] sjon at hortensius dot net
Description:
------------
Voting seems broken - vote.php returns a white page for me


Patches

voting.patch (last revision 2018-12-11 00:48 UTC by petk@php.net)

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-02 15:48 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2018-10-02 15:48 UTC] cmb@php.net
Thanks for reporting!
 [2018-10-02 15:51 UTC] cmb@php.net
-Package: *General Issues +Package: Website problem
 [2018-10-23 03:45 UTC] petk@php.net
Automatic comment on behalf of peterkokot@gmail.com
Revision: http://git.php.net/?p=web/bugs.git;a=commit;h=3b0b87e230f278e0db9b04fbbff05a8a7dd55cc6
Log: Fix #76961: bugs.php.net/vote.php throws a Server Error
 [2018-10-23 03:45 UTC] petk@php.net
-Status: Verified +Status: Closed
 [2018-10-23 03:46 UTC] petk@php.net
-Assigned To: +Assigned To: petk
 [2018-10-23 03:46 UTC] petk@php.net
Hello, I think this should now be fixed via above patch. In case this repeats, let us know.
 [2018-11-15 12:47 UTC] sjon at hortensius dot net
Hi petk, thanks for your fix. However, this issue still / again exists
 [2018-11-15 13:43 UTC] cmb@php.net
While being logged out, I just voted on bug 77155, and it worked
as expected.
 [2018-11-15 14:05 UTC] sjon at hortensius dot net
are you sure? Because your vote doesn't show in that bugreport? I tried voting on https://bugs.php.net/bug.php?id=77163 but I get a 500-server-error. There should be an exception logged somewhere accordingly?
 [2018-11-15 14:10 UTC] sjon at hortensius dot net
-Summary: https://bugs.php.net/vote.php throws a Server Error +Summary: https://bugs.php.net/vote.php throws a Server Error over ipv6
 [2018-11-15 14:10 UTC] sjon at hortensius dot net
Maybe this is caused by me using ipv6. The code uses ip2long which doesn't work for ipv6 - also, the schema uses int(10) instead of varbinary(16)
 [2018-11-15 14:15 UTC] cmb@php.net
-Summary: https://bugs.php.net/vote.php throws a Server Error over ipv6 +Summary: https://bugs.php.net/vote.php throws a Server Error -Status: Closed +Status: Re-Opened
 [2018-11-15 14:15 UTC] cmb@php.net
Oops, I've meant <https://bugs.php.net/bug.php?id=77124>.  Before
I voted, there was only a single vote.

Just voted on <https://bugs.php.net/bug.php?id=77163> (also while
being logged out), and it worked fine.

> The code uses ip2long which doesn't work for ipv6 - also, the
> schema uses int(10) instead of varbinary(16) 

Aha!  Re-opening.
 [2018-11-15 14:15 UTC] cmb@php.net
-Summary: https://bugs.php.net/vote.php throws a Server Error +Summary: https://bugs.php.net/vote.php throws a Server Error over ipv6
 [2018-11-24 00:30 UTC] petk@php.net
-Status: Re-Opened +Status: Verified -Assigned To: petk +Assigned To:
 [2018-11-24 00:32 UTC] petk@php.net
I've attached a pull request https://github.com/php/web-bugs/pull/53

This will also require to change the database schema where the ip column is currently integer to a new varbinary(16) type. Additionally current values should be converted accordingly... Maybe someone with server access can give some more pointers this could be approached and fixed.

Thanks.
 [2018-12-11 00:47 UTC] petk@php.net
-Package: Website problem +Package: Systems problem
 [2018-12-11 00:48 UTC] petk@php.net
The following patch has been added/updated:

Patch Name: voting.patch
Revision:   1544489320
URL:        https://bugs.php.net/patch-display.php?bug=76961&patch=voting.patch&revision=1544489320
 [2019-02-06 19:11 UTC] human2 at phobostech dot in
Since I can't vote - I'll leave a message. I'm getting the same thing. Can't vote on any bugs.
 [2021-09-19 18:01 UTC] ddpm at liscovius dot de
I experience the same problem, but funnily I cannot upvote the bug. ;-)

So it is deadlocked forever because it cannot gain the 5 score. ;-)

There was a patch, but it would require also upgrading the live database:

https://github.com/php/web-bugs/pull/53#issuecomment-922512078
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 06:01:30 2024 UTC