Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-27 Thread mike
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 Updated by:   m...@php.net
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

Please read up on that topic and stop complaining about nothing.

You may start here or anywhere else:

http://en.wikipedia.org/wiki/Integer_%28computer_science%29


Previous Comments:

[2010-05-26 23:28:15] olafvdspek at gmail dot com

Then just return the negative value.


[2010-05-26 23:26:23] johan...@php.net

This would be a different binary representation, which breaks binary
math, which people often do with IP addresses.


[2010-05-26 17:16:53] olafvdspek at gmail dot com

Returning -107373295 on x64 would make it consistent with x86.



But people might prefer 3221234342, in which case it could be returned
as a string.


[2010-05-26 17:13:14] sala...@php.net

So what are you requesting? That ip2long returns a string representation
of the 

number, or a float? Of which value 3221234342 or -107373295?


[2010-05-26 15:25:29] olafvdspek at gmail dot com

I know perfectly well what an unsigned int is.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=51920


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1


Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-27 Thread olafvdspek at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 User updated by:  olafvdspek at gmail dot com
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

Like I said before, I know what signed and unsigned shorts, ints, longs
and long longs are.


Previous Comments:

[2010-05-27 08:25:49] m...@php.net

Please read up on that topic and stop complaining about nothing.

You may start here or anywhere else:

http://en.wikipedia.org/wiki/Integer_%28computer_science%29


[2010-05-26 23:28:15] olafvdspek at gmail dot com

Then just return the negative value.


[2010-05-26 23:26:23] johan...@php.net

This would be a different binary representation, which breaks binary
math, which people often do with IP addresses.


[2010-05-26 17:16:53] olafvdspek at gmail dot com

Returning -107373295 on x64 would make it consistent with x86.



But people might prefer 3221234342, in which case it could be returned
as a string.


[2010-05-26 17:13:14] sala...@php.net

So what are you requesting? That ip2long returns a string representation
of the 

number, or a float? Of which value 3221234342 or -107373295?




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=51920


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1


Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-26 Thread olafvdspek at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 User updated by:  olafvdspek at gmail dot com
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

I know how to print an uint, that's not my question!


Previous Comments:

[2010-05-26 12:42:49] paj...@php.net

See the example in the PHP manual to know how to print out unsigned
integer.


[2010-05-26 12:39:32] olafvdspek at gmail dot com

Description:

The result of ip2long depends on the plaform. It shouldn't.

Test script:
---
?php

echo ip2long('192.0.34.166');



x86: -1073732954

x64: 3221234342

Expected result:

-1073732954

Actual result:
--
3221234342






-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1


Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-26 Thread pajoye
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 Updated by:   paj...@php.net
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

So what are you asking then? That's exactly what you are experiencing.
There is no bug.


Previous Comments:

[2010-05-26 12:45:09] olafvdspek at gmail dot com

I know how to print an uint, that's not my question!


[2010-05-26 12:42:49] paj...@php.net

See the example in the PHP manual to know how to print out unsigned
integer.


[2010-05-26 12:39:32] olafvdspek at gmail dot com

Description:

The result of ip2long depends on the plaform. It shouldn't.

Test script:
---
?php

echo ip2long('192.0.34.166');



x86: -1073732954

x64: 3221234342

Expected result:

-1073732954

Actual result:
--
3221234342






-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1


Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-26 Thread olafvdspek at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 User updated by:  olafvdspek at gmail dot com
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

I'm asking for ip2long to return the same (negative) values on all
platforms.


Previous Comments:

[2010-05-26 13:10:26] paj...@php.net

So what are you asking then? That's exactly what you are experiencing.
There is no bug.


[2010-05-26 12:45:09] olafvdspek at gmail dot com

I know how to print an uint, that's not my question!


[2010-05-26 12:42:49] paj...@php.net

See the example in the PHP manual to know how to print out unsigned
integer.


[2010-05-26 12:39:32] olafvdspek at gmail dot com

Description:

The result of ip2long depends on the plaform. It shouldn't.

Test script:
---
?php

echo ip2long('192.0.34.166');



x86: -1073732954

x64: 3221234342

Expected result:

-1073732954

Actual result:
--
3221234342






-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1


Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-26 Thread pajoye
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 Updated by:   paj...@php.net
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

So no, you don't know what an unsigned integer value is. Please ask
support in one of the numerous php support channels.


Previous Comments:

[2010-05-26 13:11:53] olafvdspek at gmail dot com

I'm asking for ip2long to return the same (negative) values on all
platforms.


[2010-05-26 13:10:26] paj...@php.net

So what are you asking then? That's exactly what you are experiencing.
There is no bug.


[2010-05-26 12:45:09] olafvdspek at gmail dot com

I know how to print an uint, that's not my question!


[2010-05-26 12:42:49] paj...@php.net

See the example in the PHP manual to know how to print out unsigned
integer.


[2010-05-26 12:39:32] olafvdspek at gmail dot com

Description:

The result of ip2long depends on the plaform. It shouldn't.

Test script:
---
?php

echo ip2long('192.0.34.166');



x86: -1073732954

x64: 3221234342

Expected result:

-1073732954

Actual result:
--
3221234342






-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1


Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-26 Thread olafvdspek at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 User updated by:  olafvdspek at gmail dot com
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

I know perfectly well what an unsigned int is.


Previous Comments:

[2010-05-26 15:06:10] paj...@php.net

So no, you don't know what an unsigned integer value is. Please ask
support in one of the numerous php support channels.


[2010-05-26 13:11:53] olafvdspek at gmail dot com

I'm asking for ip2long to return the same (negative) values on all
platforms.


[2010-05-26 13:10:26] paj...@php.net

So what are you asking then? That's exactly what you are experiencing.
There is no bug.


[2010-05-26 12:45:09] olafvdspek at gmail dot com

I know how to print an uint, that's not my question!


[2010-05-26 12:42:49] paj...@php.net

See the example in the PHP manual to know how to print out unsigned
integer.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=51920


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1


Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-26 Thread salathe
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 Updated by:   sala...@php.net
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

So what are you requesting? That ip2long returns a string representation
of the 

number, or a float? Of which value 3221234342 or -107373295?


Previous Comments:

[2010-05-26 15:25:29] olafvdspek at gmail dot com

I know perfectly well what an unsigned int is.


[2010-05-26 15:06:10] paj...@php.net

So no, you don't know what an unsigned integer value is. Please ask
support in one of the numerous php support channels.


[2010-05-26 13:11:53] olafvdspek at gmail dot com

I'm asking for ip2long to return the same (negative) values on all
platforms.


[2010-05-26 13:10:26] paj...@php.net

So what are you asking then? That's exactly what you are experiencing.
There is no bug.


[2010-05-26 12:45:09] olafvdspek at gmail dot com

I know how to print an uint, that's not my question!




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=51920


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1


Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-26 Thread olafvdspek at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 User updated by:  olafvdspek at gmail dot com
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

Returning -107373295 on x64 would make it consistent with x86.



But people might prefer 3221234342, in which case it could be returned
as a string.


Previous Comments:

[2010-05-26 17:13:14] sala...@php.net

So what are you requesting? That ip2long returns a string representation
of the 

number, or a float? Of which value 3221234342 or -107373295?


[2010-05-26 15:25:29] olafvdspek at gmail dot com

I know perfectly well what an unsigned int is.


[2010-05-26 15:06:10] paj...@php.net

So no, you don't know what an unsigned integer value is. Please ask
support in one of the numerous php support channels.


[2010-05-26 13:11:53] olafvdspek at gmail dot com

I'm asking for ip2long to return the same (negative) values on all
platforms.


[2010-05-26 13:10:26] paj...@php.net

So what are you asking then? That's exactly what you are experiencing.
There is no bug.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=51920


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1


Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-26 Thread johannes
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 Updated by:   johan...@php.net
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

This would be a different binary representation, which breaks binary
math, which people often do with IP addresses.


Previous Comments:

[2010-05-26 17:16:53] olafvdspek at gmail dot com

Returning -107373295 on x64 would make it consistent with x86.



But people might prefer 3221234342, in which case it could be returned
as a string.


[2010-05-26 17:13:14] sala...@php.net

So what are you requesting? That ip2long returns a string representation
of the 

number, or a float? Of which value 3221234342 or -107373295?


[2010-05-26 15:25:29] olafvdspek at gmail dot com

I know perfectly well what an unsigned int is.


[2010-05-26 15:06:10] paj...@php.net

So no, you don't know what an unsigned integer value is. Please ask
support in one of the numerous php support channels.


[2010-05-26 13:11:53] olafvdspek at gmail dot com

I'm asking for ip2long to return the same (negative) values on all
platforms.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=51920


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1


Bug #51920 [Bgs]: ip2long result depends on platform

2010-05-26 Thread olafvdspek at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=51920edit=1

 ID:   51920
 User updated by:  olafvdspek at gmail dot com
 Reported by:  olafvdspek at gmail dot com
 Summary:  ip2long result depends on platform
 Status:   Bogus
 Type: Bug
 Package:  Network related
 Operating System: Debian x64
 PHP Version:  5.3.2

 New Comment:

Then just return the negative value.


Previous Comments:

[2010-05-26 23:26:23] johan...@php.net

This would be a different binary representation, which breaks binary
math, which people often do with IP addresses.


[2010-05-26 17:16:53] olafvdspek at gmail dot com

Returning -107373295 on x64 would make it consistent with x86.



But people might prefer 3221234342, in which case it could be returned
as a string.


[2010-05-26 17:13:14] sala...@php.net

So what are you requesting? That ip2long returns a string representation
of the 

number, or a float? Of which value 3221234342 or -107373295?


[2010-05-26 15:25:29] olafvdspek at gmail dot com

I know perfectly well what an unsigned int is.


[2010-05-26 15:06:10] paj...@php.net

So no, you don't know what an unsigned integer value is. Please ask
support in one of the numerous php support channels.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=51920


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51920edit=1