Bug #21854
closedURL's with a very long Number in type returns a false Number in error message
0%
Description
If a page-type (pageNum) doesn't exist I get an Error, that's okay
E.g http://localhost/index.php?type=2
I get a page with:
Error!
The page is not configured! [type= 2][]
That's okay.
On the other hand, if I use a very long number in URL-paramter 'type' it returns a false Number in the error message, e.g.:
http://localhost/index.php?type=11111111111111111111
--> The page is not configured! [type= 9223372036854775807][]
or even
http://localhost/index.php?type=1111111111111111111111111
--> The page is not configured! [type= 9223372036854775807][]
(the same wrong number)
It seems to stand in context with data type 'int'
Number 9223372036854775807 is 2^63 - 1
(issue imported from #M13027)
Updated by Georg Ringer almost 15 years ago
this happens in class.tslib_fe.php line 933 >
$this->type = intval($this->type);
and its normal behaviour of php, see php.net
------------------------------
The maximum value depends on the system. 32 bit systems have a maximum signed integer range of 2147483648 to 2147483647. So for example on such a system, intval('1000000000000') will return 2147483647. The maximum signed integer value for 64 bit systems is 9223372036854775807.
-----------------------------
can be closed IMO
Updated by Simon Schaufelberger about 12 years ago
- Target version deleted (
0)
this is nothing typo3 related. can be closed.
Updated by Stefan Galinski about 12 years ago
- Category deleted (
Communication) - Status changed from New to Closed