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-- PDO_4D: 4D in the PDO drivers list --SKIPIF-- <?php # vim:ft=php if (!extension_l..

Decoded Output download

--TEST--
PDO_4D: 4D in the PDO drivers list
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded('pdo')) die('skip no PDO');
if (!extension_loaded('pdo_4d')) die('skip no PDO for 4D extension');

require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';

PDOTest::skip();
?>
--FILE--
<?php
require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');

$r = $ext=PDO::getAvailableDrivers();

var_dump(array_search('4D', $r) !== false);

?>
--EXPECTF--
bool(true)

Did this file decode correctly?

Original Code

--TEST--
PDO_4D: 4D in the PDO drivers list
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded('pdo')) die('skip no PDO');
if (!extension_loaded('pdo_4d')) die('skip no PDO for 4D extension');

require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';

PDOTest::skip();
?>
--FILE--
<?php
require dirname(__FILE__) . '/../../../ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');

$r = $ext=PDO::getAvailableDrivers();

var_dump(array_search('4D', $r) !== false);

?>
--EXPECTF--
bool(true)

Function Calls

dirname 1
extension_loaded 2

Variables

None

Stats

MD5 cf18a748cc25f75f22ba9732c7178879
Eval Count 0
Decode Time 100 ms