Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Negative parse_iv2 edge cases --SKIPIF-- <?php if (PHP_INT_SIZE != 8) die("skip 6..

Decoded Output download

--TEST--
Negative parse_iv2 edge cases
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
--FILE--
<?php

var_dump(unserialize('i:-9223372036854775808;'));
var_dump(unserialize('i:-0;'));

?>
--EXPECT--
int(-9223372036854775808)
int(0)

Did this file decode correctly?

Original Code

--TEST--
Negative parse_iv2 edge cases
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip 64-bit only"); ?>
--FILE--
<?php

var_dump(unserialize('i:-9223372036854775808;'));
var_dump(unserialize('i:-0;'));

?>
--EXPECT--
int(-9223372036854775808)
int(0)

Function Calls

None

Variables

None

Stats

MD5 1bc627c545405689d18d6708c3159dc6
Eval Count 0
Decode Time 95 ms