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: Testing transaction --SKIPIF-- <?php # vim:ft=php if (!extension_loaded('..
Decoded Output download
--TEST--
PDO_4D: Testing transaction
--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');
$db->query('CREATE TABLE foobar (id INT)');
$db->query("INSERT INTO foobar VALUES (1)");
$db->query("INSERT INTO foobar VALUES (2)");
$r = $db->query('SELECT * FROM foobar');
var_dump($r->rowCount());
$db->query('DROP TABLE foobar');
?>
--EXPECTF--
int(2)
Did this file decode correctly?
Original Code
--TEST--
PDO_4D: Testing transaction
--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');
$db->query('CREATE TABLE foobar (id INT)');
$db->query("INSERT INTO foobar VALUES (1)");
$db->query("INSERT INTO foobar VALUES (2)");
$r = $db->query('SELECT * FROM foobar');
var_dump($r->rowCount());
$db->query('DROP TABLE foobar');
?>
--EXPECTF--
int(2)
Function Calls
dirname | 1 |
extension_loaded | 2 |
Stats
MD5 | c9250b1a72ed53c703597123cb74b081 |
Eval Count | 0 |
Decode Time | 92 ms |