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-- Bug #54292 (Wrong parameter causes crash in SplFileObject::__construct()) --FILE-..

Decoded Output download

--TEST--
Bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
--FILE--
<?php

try {
    new SplFileObject('foo', array());
} catch (TypeError $e) {
    var_dump($e->getMessage());
}

?>
--EXPECT--
string(85) "SplFileObject::__construct(): Argument #2 ($mode) must be of type string, array given"

Did this file decode correctly?

Original Code

--TEST--
Bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
--FILE--
<?php

try {
    new SplFileObject('foo', array());
} catch (TypeError $e) {
    var_dump($e->getMessage());
}

?>
--EXPECT--
string(85) "SplFileObject::__construct(): Argument #2 ($mode) must be of type string, array given"

Function Calls

None

Variables

None

Stats

MD5 5af0f18ebf586d73dafbf79dbe93028b
Eval Count 0
Decode Time 86 ms