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: connection test --SKIPIF-- <?php # vim:ft=php if (!extension_loaded('pdo'..

Decoded Output download

--TEST--
PDO_4D: connection test
--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';


//echo "DSN: $dsn<br>
";
try {
       $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
       echo "PDO object created!
";
} catch (PDOException $e) {
       echo 'Connection failed: ' . $e->getMessage()."<br/>
";
}
//echo "<br>
";
?>
--EXPECTF--
PDO object created!

Did this file decode correctly?

Original Code

--TEST--
PDO_4D: connection test
--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';


//echo "DSN: $dsn<br>\n";
try {
       $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
       echo "PDO object created!\n";
} catch (PDOException $e) {
       echo 'Connection failed: ' . $e->getMessage()."<br/>\n";
}
//echo "<br>\n";
?>
--EXPECTF--
PDO object created!

Function Calls

dirname 1
extension_loaded 2

Variables

None

Stats

MD5 308c61c4c1453acf842ac7d723a0d3f7
Eval Count 0
Decode Time 88 ms