CHips L MINI SHELL

CHips L pro

Current Path : /opt/cpanel/ea-php54/root/usr/share/tests/pear/Log/tests/
Upload File :
Current File : //opt/cpanel/ea-php54/root/usr/share/tests/pear/Log/tests/sql_ident.phpt

--TEST--
Log: SQL setIdent()
--SKIPIF--
<?php

require_once 'PEAR/Registry.php';
$registry = new PEAR_Registry();

if (!$registry->packageExists('DB')) die("skip\n");
--INI--
date.timezone=UTC
--FILE--
<?php

require_once 'Log.php';

$ident = '12345678901234567890';

$logger = Log::singleton('sql', 'log_table', $ident, array('dsn' => ''));
echo $logger->getIdent() . "\n";

$logger->setIdent($ident);
echo $logger->getIdent() . "\n";

--EXPECT--
1234567890123456
1234567890123456

Copyright 2K16 - 2K18 Indonesian Hacker Rulez