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-- php://fd wrapper: invalid file descriptor --SKIPIF-- <?php // At least on Mac 10...

Decoded Output download

--TEST--
php://fd wrapper: invalid file descriptor
--SKIPIF--
<?php
// At least on Mac 10.14 Mojave; not sure about older versions
if (strtolower(PHP_OS) == 'darwin') die('skip: the warning output is different on MacOS');
?>
--FILE--
<?php
fopen("php://fd/1023", "w");

echo "
Done.
";
?>
--EXPECTF--
Warning: fopen(php://fd/1023): Failed to open stream: Error duping file descriptor 1023; possibly it doesn't exist: [9]: %s in %s on line %d

Done.

Did this file decode correctly?

Original Code

--TEST--
php://fd wrapper: invalid file descriptor
--SKIPIF--
<?php
// At least on Mac 10.14 Mojave; not sure about older versions
if (strtolower(PHP_OS) == 'darwin') die('skip: the warning output is different on MacOS');
?>
--FILE--
<?php
fopen("php://fd/1023", "w");

echo "\nDone.\n";
?>
--EXPECTF--
Warning: fopen(php://fd/1023): Failed to open stream: Error duping file descriptor 1023; possibly it doesn't exist: [9]: %s in %s on line %d

Done.

Function Calls

None

Variables

None

Stats

MD5 89792357d67d4dedddf21ff73d27953b
Eval Count 0
Decode Time 77 ms