Home » Authentication » LiveUser » Bug #7564
debug => false in conf doesn't work when adding a new application
Details
| Submitted | 2006-05-05 13:00 UTC |
|---|---|
| From | kezban11 at gmx dot de |
| Assigned | lsmith |
| Status | Closed |
| Package | LiveUser |
| PHP Version | 5.0.2 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-05-05 13:00 UTC] kezban11 at gmx dot de
Description:
------------
I'm writing an sajax frontend for LiveUser_Admin and i don't need any kind of output, especially no error reports. So in my $conf i write somethink like 'debug => false,'.
But when adding an application which is already in the DB, the LiveUser_Admin creates an error report. After removing the debug line from the config, no reports occur. So it looks like LU_A is not looking at the value of debug and simply looks only if this exits.
Test script:
---------------
$appid = $LUA->perm->addApplication($data)
if ($appid==false) myerrorhandler();
else continue;
Expected result:
----------------
i expect that when i write 'debug => false,' in the config that while an error occurs, no error report is automatically printed out and i can handle it my way.
[2006-05-08 11:07 UTC] kezban11 at gmx dot de
$conf =
array(
'debug' => true,
'session' => array(
'name' => 'PHPSESSION',
'varname' => 'ludata'
),
'login' => array(
'force' => false,
),
'logout' => array(
'destroy' => true,
),
'authContainers' => array(
'DB' => array(
'type' => 'DB',
'expireTime' => 360000,
'idleTime' => 180000,
'allowDuplicateHandles' => 0,
'allowEmptyPasswords' => 0,
'storage' => array(
'dsn' => $dsn,
'alias' => array(
'lastlogin' => 'lastlogin',
'is_active' => 'is_active',
'email' => 'email',
),
'fields' => array(
'lastlogin' => 'timestamp',
'is_active' => 'boolean',
'email' => 'text',
),
'tables' => array(
'users' => array(
'fields' => array(
'lastlogin' => false,
'is_active' => false,
'email' => false,
),
),
),
)
)
),
'permContainer' => array(
'type' => 'Complex',
'storage' => array('DB' => array('dsn' => $dsn, 'prefix' => 'liveuser_')),
),
);
// the LUA init
$LUA=& LiveUser_Admin::factory($conf);
$LUA->init();
// the usage
$data = array('application_define_name' => $application_name);
$appId = $LUA->perm->addApplication($data);
if ($appId == false){
$response['error']=true;
$response['payload']=$LUA->getErrors();
return $response;
}
/*
so with this conf a get also debug output on error
and it only disapears after removing the hole 'debug' line
*/