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-- Shutdown crash when attached/removed same key segment multiple times --EXTENSIONS..
Decoded Output download
--TEST--
Shutdown crash when attached/removed same key segment multiple times
--EXTENSIONS--
sysvshm
--FILE--
<?php
/*$key = ftok(__FILE__, 't');
var_dump($key);*/
$key = 42;
var_dump($s = shm_attach($key, 1024));
shm_remove($s);
var_dump($s = shm_attach($key, 1024));
shm_remove($s);
?>
--EXPECT--
object(SysvSharedMemory)#1 (0) {
}
object(SysvSharedMemory)#2 (0) {
}
Did this file decode correctly?
Original Code
--TEST--
Shutdown crash when attached/removed same key segment multiple times
--EXTENSIONS--
sysvshm
--FILE--
<?php
/*$key = ftok(__FILE__, 't');
var_dump($key);*/
$key = 42;
var_dump($s = shm_attach($key, 1024));
shm_remove($s);
var_dump($s = shm_attach($key, 1024));
shm_remove($s);
?>
--EXPECT--
object(SysvSharedMemory)#1 (0) {
}
object(SysvSharedMemory)#2 (0) {
}
Function Calls
shm_attach | 1 |
Stats
MD5 | f32aca6cda5d1eee3dcb087dabb27671 |
Eval Count | 0 |
Decode Time | 91 ms |