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_autoload_call() function - basic test for spl_autoload_call() --CREDITS-- Jea..
Decoded Output download
--TEST--
spl_autoload_call() function - basic test for spl_autoload_call()
--CREDITS--
Jean-Marc Fontaine <[email protected]>
# Alter Way Contribution Day 2011
--FILE--
<?php
function customAutolader($class) {
require_once __DIR__ . '/testclass.class.inc';
}
spl_autoload_register('customAutolader');
spl_autoload_call('TestClass');
var_dump(class_exists('TestClass', false));
?>
--EXPECTF--
%stestclass.class.inc
bool(true)
Did this file decode correctly?
Original Code
--TEST--
spl_autoload_call() function - basic test for spl_autoload_call()
--CREDITS--
Jean-Marc Fontaine <[email protected]>
# Alter Way Contribution Day 2011
--FILE--
<?php
function customAutolader($class) {
require_once __DIR__ . '/testclass.class.inc';
}
spl_autoload_register('customAutolader');
spl_autoload_call('TestClass');
var_dump(class_exists('TestClass', false));
?>
--EXPECTF--
%stestclass.class.inc
bool(true)
Function Calls
spl_autoload_register | 1 |
Stats
MD5 | 82bde3ec6a23ed514521123a4fcbdca6 |
Eval Count | 0 |
Decode Time | 117 ms |