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-- shm_remove() tests --EXTENSIONS-- sysvshm --SKIPIF-- <?php if (!function_exists(..

Decoded Output download

skip

Did this file decode correctly?

Original Code

--TEST--
shm_remove() tests
--EXTENSIONS--
sysvshm
--SKIPIF--
<?php

if (!function_exists('ftok')){ print 'skip'; }
?>
--FILE--
<?php

$key = ftok(__FILE__, 't');
$s = shm_attach($key, 1024);

var_dump(shm_remove($s));

shm_detach($s);
try {
    shm_remove($s);
} catch (Error $exception) {
    echo $exception->getMessage() . "\n";
}

echo "Done\n";
?>
--EXPECT--
bool(true)
Shared memory block has already been destroyed
Done

Function Calls

ftok 1
function_exists 1

Variables

None

Stats

MD5 01083b1c5d00dea6dec0869ae0e0d3e0
Eval Count 0
Decode Time 90 ms