View Single Post
Old 09-17-2005, 04:01 AM   #249
AboutSledge
Junior Member
AboutSledge began at the beginning.
 
Posts: 7
Karma: 24
Join Date: Sep 2005
Quote:
Originally Posted by Unregistered
Hi all,

i use the code founded here https://www.mobileread.com/forums/sho...&postcount=186

Code worked well until i update my php to 5.02 version.

Anyone with same problem ?

for exemple http://www.myserver.com/thephpcode.p...w.example.com/

give me

url: http://www.example.com/
Checksum <2.0.114: 62147402699
Checksum >=2.0.114: 62147378985


So it should gave me somethings like

URL .... http://www.exemple.com/
Checksum <2.0.114: ..... 63090365271
Checksum >=2.0.114: ..... 64144368538


Any idea ?

Thanks in advance.

TT.

PHP Data Type Converting Bug.


<?php

//header("Content-Type: text/plain; charset=utf-8");

$n = -6288256054;
var_dump($n);

$a = intval($n);
var_dump($a);

$b = (int) $n;
var_dump($b);

settype($n,"int");
var_dump($n);

?>

============good==========
float(-6288256054)
int(-1993288758)
int(-1993288758)
int(-1993288758)


============bad=================

float(-6288256054)
int(-2147483648)
int(-2147483648)
int(-2147483648)
AboutSledge is offline   Reply With Quote