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-- SplFixedArray::__construct() with array passed as integer. --CREDITS-- PHPNW Test..

Decoded Output download

--TEST--
SplFixedArray::__construct() with array passed as integer.
--CREDITS--
PHPNW Test Fest 2009 - Jordan Hatch
--FILE--
<?php

try {
    $array = new SplFixedArray( array("string", 1) );
} catch (TypeError $iae) {
    echo "Ok - ".$iae->getMessage().PHP_EOL;
}

?>
--EXPECT--
Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, array given

Did this file decode correctly?

Original Code

--TEST--
SplFixedArray::__construct() with array passed as integer.
--CREDITS--
PHPNW Test Fest 2009 - Jordan Hatch
--FILE--
<?php

try {
    $array = new SplFixedArray( array("string", 1) );
} catch (TypeError $iae) {
    echo "Ok - ".$iae->getMessage().PHP_EOL;
}

?>
--EXPECT--
Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, array given

Function Calls

None

Variables

None

Stats

MD5 5fd5c1934bece219994c0e1bdcbdc12b
Eval Count 0
Decode Time 77 ms