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-- Test filesize() function: error conditions --FILE-- <?php echo "*** Testing files..

Decoded Output download

*** Testing filesize(): error conditions ***

Did this file decode correctly?

Original Code

--TEST--
Test filesize() function: error conditions
--FILE--
<?php
echo "*** Testing filesize(): error conditions ***";

/* Non-existing file or dir */
var_dump( filesize("/no/such/file") );
var_dump( filesize("/no/such/dir") );

echo "*** Done ***\n";
?>
--EXPECTF--
*** Testing filesize(): error conditions ***
Warning: filesize(): stat failed for /no/such/file in %s on line %d
bool(false)

Warning: filesize(): stat failed for /no/such/dir in %s on line %d
bool(false)
*** Done ***

Function Calls

filesize 1
var_dump 1

Variables

None

Stats

MD5 107dfd8b4478e163019db46bd4624421
Eval Count 0
Decode Time 94 ms