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-- SPL SplTempFileObject constructor sets correct defaults when passed a negative va..

Decoded Output download

--TEST--
SPL SplTempFileObject constructor sets correct defaults when passed a negative value
--FILE--
<?php
var_dump(new SplTempFileObject(-1));
?>
--EXPECT--
object(SplTempFileObject)#1 (5) {
  ["pathName":"SplFileInfo":private]=>
  string(12) "php://memory"
  ["fileName":"SplFileInfo":private]=>
  string(12) "php://memory"
  ["openMode":"SplFileObject":private]=>
  string(2) "wb"
  ["delimiter":"SplFileObject":private]=>
  string(1) ","
  ["enclosure":"SplFileObject":private]=>
  string(1) """
}

Did this file decode correctly?

Original Code

--TEST--
SPL SplTempFileObject constructor sets correct defaults when passed a negative value
--FILE--
<?php
var_dump(new SplTempFileObject(-1));
?>
--EXPECT--
object(SplTempFileObject)#1 (5) {
  ["pathName":"SplFileInfo":private]=>
  string(12) "php://memory"
  ["fileName":"SplFileInfo":private]=>
  string(12) "php://memory"
  ["openMode":"SplFileObject":private]=>
  string(2) "wb"
  ["delimiter":"SplFileObject":private]=>
  string(1) ","
  ["enclosure":"SplFileObject":private]=>
  string(1) """
}

Function Calls

None

Variables

None

Stats

MD5 d5c82c3d1f59583447ca9433c9d392e1
Eval Count 0
Decode Time 76 ms